moz.build (1361B)
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- 2 # vim: set filetype=python: 3 # This Source Code Form is subject to the terms of the Mozilla Public 4 # License, v. 2.0. If a copy of the MPL was not distributed with this 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 6 7 with Files("**"): 8 BUG_COMPONENT = ("Core", "Security: Process Sandboxing") 9 10 UNIFIED_SOURCES += [ 11 "SandboxSettings.cpp", 12 ] 13 14 XPCOM_MANIFESTS += [ 15 "components.conf", 16 ] 17 18 XPIDL_SOURCES += [ 19 "mozISandboxSettings.idl", 20 ] 21 22 XPIDL_MODULE = "sandbox" 23 24 if CONFIG["MOZ_SANDBOX"] and CONFIG["MOZ_DEBUG"] and CONFIG["ENABLE_TESTS"]: 25 UNIFIED_SOURCES += [ 26 "test/SandboxTest.cpp", 27 "test/SandboxTestingChild.cpp", 28 "test/SandboxTestingParent.cpp", 29 ] 30 31 EXPORTS.mozilla += [ 32 "test/SandboxTestingChild.h", 33 "test/SandboxTestingParent.h", 34 ] 35 36 IPDL_SOURCES += [ 37 "test/PSandboxTesting.ipdl", 38 ] 39 40 XPIDL_SOURCES += [ 41 "test/mozISandboxTest.idl", 42 ] 43 44 LOCAL_INCLUDES += [ 45 "/netwerk/base", 46 ] 47 48 if CONFIG["MOZ_SANDBOX"]: 49 EXTRA_JS_MODULES += [ 50 "SandboxUtils.sys.mjs", 51 ] 52 53 include("/ipc/chromium/chromium-config.mozbuild") 54 55 FINAL_LIBRARY = "xul" 56 57 EXPORTS.mozilla += [ 58 "SandboxSettings.h", 59 ] 60 61 DEFINES["MOZ_GPU_PROCESS_BUNDLEID"] = '"%s"' % CONFIG["MOZ_GPU_PROCESS_BUNDLEID"]