2013-08-12 23:58:35 +04:00
|
|
|
# -*- 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/.
|
|
|
|
|
2013-10-29 01:54:36 +04:00
|
|
|
if CONFIG['OS_ARCH'] == 'Linux':
|
|
|
|
DIRS += ['linux']
|
2014-08-08 20:55:22 +04:00
|
|
|
elif CONFIG['OS_ARCH'] == 'Darwin':
|
|
|
|
DIRS += ['mac']
|
2013-10-29 01:54:36 +04:00
|
|
|
elif CONFIG['OS_ARCH'] == 'WINNT':
|
2014-09-03 09:10:54 +04:00
|
|
|
Library('sandbox_s')
|
2013-10-31 03:58:45 +04:00
|
|
|
FORCE_STATIC_LIB = True
|
|
|
|
|
2014-02-14 20:07:16 +04:00
|
|
|
DIRS += [
|
2014-08-28 06:50:10 +04:00
|
|
|
'staticruntime',
|
2014-02-14 20:07:16 +04:00
|
|
|
'win/src/sandboxbroker',
|
|
|
|
'win/src/sandboxtarget',
|
|
|
|
]
|
2013-08-12 23:58:35 +04:00
|
|
|
|
2014-11-29 20:12:18 +03:00
|
|
|
EXPORTS.mozilla.sandboxing += [
|
|
|
|
'win/src/logging/loggingCallbacks.h',
|
|
|
|
'win/src/logging/loggingTypes.h',
|
|
|
|
'win/src/logging/sandboxLogging.h',
|
|
|
|
]
|
2014-06-11 18:32:37 +04:00
|
|
|
|
2014-08-28 06:50:10 +04:00
|
|
|
include('objs.mozbuild')
|
|
|
|
SOURCES += security_sandbox_cppsrcs
|
2014-03-28 08:59:16 +04:00
|
|
|
|
2014-11-18 16:48:21 +03:00
|
|
|
# Bug 1102853 tracks looking at removing this.
|
|
|
|
if CONFIG['CPU_ARCH'] == 'x86_64':
|
|
|
|
SOURCES['%s/security/sandbox/win/src/sharedmem_ipc_client.cc' % TOPSRCDIR].no_pgo = True
|
|
|
|
|
2013-11-27 17:55:07 +04:00
|
|
|
for var in ('UNICODE', '_UNICODE', 'NS_NO_XPCOM', 'SANDBOX_EXPORTS',
|
2014-02-28 17:17:22 +04:00
|
|
|
'NOMINMAX', '_CRT_RAND_S', 'CHROMIUM_SANDBOX_BUILD'):
|
2013-11-27 17:55:07 +04:00
|
|
|
DEFINES[var] = True
|
2014-02-18 17:49:12 +04:00
|
|
|
|
|
|
|
LOCAL_INCLUDES += ['/security/sandbox/chromium/base/shim']
|
|
|
|
LOCAL_INCLUDES += ['/security/sandbox/chromium']
|
|
|
|
LOCAL_INCLUDES += ['/security']
|
|
|
|
LOCAL_INCLUDES += ['/nsprpub']
|
2014-03-05 04:39:06 +04:00
|
|
|
|
|
|
|
DISABLE_STL_WRAPPING = True
|
2014-08-10 01:25:24 +04:00
|
|
|
|
|
|
|
# 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
|
2014-08-19 23:09:03 +04:00
|
|
|
'-wd4996', # 'GetVersionExW': was declared deprecated
|
2014-08-10 01:25:24 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
FAIL_ON_WARNINGS = True
|