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
7EXPORTS.mozilla += [
8    "SandboxBroker.h",
9    "SandboxBrokerCommon.h",
10    "SandboxBrokerPolicyFactory.h",
11]
12
13UNIFIED_SOURCES += [
14    "SandboxBroker.cpp",
15    "SandboxBrokerCommon.cpp",
16    "SandboxBrokerPolicyFactory.cpp",
17    "SandboxBrokerRealpath.cpp",
18]
19
20LOCAL_INCLUDES += [
21    "/security/sandbox/linux",  # SandboxLogging.h, SandboxInfo.h
22]
23
24# Need this for mozilla::ipc::FileDescriptor etc.
25include("/ipc/chromium/chromium-config.mozbuild")
26
27# Need this for safe_sprintf.h used by SandboxLogging.h,
28# but it has to be after ipc/chromium/src.
29LOCAL_INCLUDES += [
30    "/security/sandbox/chromium",
31]
32
33if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk":
34    CXXFLAGS += CONFIG["GLIB_CFLAGS"]
35    CXXFLAGS += CONFIG["TK_CFLAGS"]
36
37FINAL_LIBRARY = "xul"
38