mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
492c4f4f7d
--HG-- rename : security/sandbox/moz.build => security/sandbox/objs.mozbuild extra : rebase_source : e0b1515a4729ecfe82a67b6439d9a38453f7556a
44 lines
1.4 KiB
Python
44 lines
1.4 KiB
Python
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# vim: set filetype=python:
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
if CONFIG['OS_ARCH'] == 'Linux':
|
|
DIRS += ['linux']
|
|
elif CONFIG['OS_ARCH'] == 'Darwin':
|
|
DIRS += ['mac']
|
|
elif CONFIG['OS_ARCH'] == 'WINNT':
|
|
LIBRARY_NAME = 'sandbox_s'
|
|
FORCE_STATIC_LIB = True
|
|
|
|
DIRS += [
|
|
'staticruntime',
|
|
'win/src/sandboxbroker',
|
|
'win/src/sandboxtarget',
|
|
]
|
|
|
|
include('objs.mozbuild')
|
|
SOURCES += security_sandbox_cppsrcs
|
|
|
|
for var in ('UNICODE', '_UNICODE', 'NS_NO_XPCOM', 'SANDBOX_EXPORTS',
|
|
'NOMINMAX', '_CRT_RAND_S', 'CHROMIUM_SANDBOX_BUILD'):
|
|
DEFINES[var] = True
|
|
|
|
LOCAL_INCLUDES += ['/security/sandbox/chromium/base/shim']
|
|
LOCAL_INCLUDES += ['/security/sandbox/chromium']
|
|
LOCAL_INCLUDES += ['/security']
|
|
LOCAL_INCLUDES += ['/nsprpub']
|
|
|
|
DISABLE_STL_WRAPPING = True
|
|
|
|
# Suppress warnings in third-party code.
|
|
if CONFIG['_MSC_VER']:
|
|
CXXFLAGS += [
|
|
'-wd4275', # non dll-interface class exception used as base for dll-interface class
|
|
'-wd4717', # recursive on all control paths, function will cause runtime stack overflow
|
|
'-wd4996', # 'GetVersionExW': was declared deprecated
|
|
]
|
|
|
|
FAIL_ON_WARNINGS = True
|