moz.build (1219B)
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 UNIFIED_SOURCES += [ 8 "../SandboxLogging.cpp", 9 "SandboxCrash.cpp", 10 "SandboxPrefBridge.cpp", 11 ] 12 13 SOURCES += [ 14 "../../chromium/base/strings/safe_sprintf.cc", 15 ] 16 17 # Avoid Chromium logging dependency, because this is going into 18 # libxul. See also the comment in SandboxLogging.h. 19 SOURCES["../../chromium/base/strings/safe_sprintf.cc"].flags += ["-DNDEBUG"] 20 21 # Need this for mozilla::ipc::FileDescriptor etc. 22 include("/ipc/chromium/chromium-config.mozbuild") 23 24 LOCAL_INCLUDES += [ 25 # Need this for safe_sprintf.h used by SandboxLogging.h, 26 # but it has to be after ipc/chromium/src. 27 "/security/sandbox/chromium", 28 "/security/sandbox/chromium-shim", 29 "/security/sandbox/chromium-shim/base/allocator/partition_allocator/src", 30 "/security/sandbox/chromium/base/allocator/partition_allocator/src", 31 "/security/sandbox/linux", 32 ] 33 34 USE_LIBS += [ 35 "mozsandbox", 36 ] 37 38 FINAL_LIBRARY = "xul"