moz.build (2044B)
1 # -*- Mode: python; python-indent: 4; 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 EXPORTS.mozilla += [ 8 "SandboxLaunch.h", 9 ] 10 11 UNIFIED_SOURCES += [ 12 "LinuxCapabilities.cpp", 13 "SandboxLaunch.cpp", 14 ] 15 16 SOURCES += [ 17 "../../chromium-shim/base/logging.cpp", 18 "../../chromium/base/check.cc", 19 "../../chromium/base/check_op.cc", 20 "../../chromium/base/debug/alias.cc", 21 "../../chromium/base/debug/crash_logging.cc", 22 "../../chromium/base/location.cc", 23 "../../chromium/base/strings/string_number_conversions.cc", 24 "../../chromium/base/strings/string_util_constants.cc", 25 "../../chromium/base/strings/stringprintf.cc", 26 "../../chromium/base/trace_event/trace_event_stub.cc", 27 "../../chromium/sandbox/linux/services/syscall_wrappers.cc", 28 ] 29 30 if CONFIG["CC_TYPE"] in ("clang", "gcc"): 31 SOURCES["../../chromium/sandbox/linux/services/syscall_wrappers.cc"].flags += [ 32 "-Wno-empty-body", 33 ] 34 35 # The include of chromium-config.mozbuild will add include path of the other 36 # chromium headers living within ipc/chromium where base/compiler_specific.h 37 # exists but is not the right version used in syscall_wrappers.cc 38 LOCAL_INCLUDES += [ 39 # Need this for safe_sprintf.h used by SandboxLogging.h, 40 # but it has to be after ipc/chromium/src. 41 "/security/sandbox/chromium", 42 "/security/sandbox/chromium-shim", 43 "/security/sandbox/chromium-shim/base/allocator/partition_allocator/src", 44 "/security/sandbox/chromium/base/allocator/partition_allocator/src", 45 "/security/sandbox/linux", 46 "/third_party/abseil-cpp", 47 ] 48 49 include("/ipc/chromium/chromium-config.mozbuild") 50 51 USE_LIBS += [ 52 "mozsandbox", 53 ] 54 55 # For the X11 socket domain inspection in SandboxLaunch: 56 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk": 57 CXXFLAGS += CONFIG["MOZ_GTK3_CFLAGS"] 58 59 FINAL_LIBRARY = "xul"