security/sandbox/linux/moz.build
author Paul Rouget <paul@mozilla.com>
Mon, 15 Sep 2014 16:23:04 +0200
changeset 205412 4a953a406eaa6999b55091673dd2133494638846
parent 204229 dc971e50ebf08dcf64a23a5841b04f9f383d8579
child 205423 36170873ecb99db1034833045931c39886e161eb
permissions -rw-r--r--
Backed out changeset a6d02cff43d3 (bug 1037235) for breaking WebIDE (bug 1067331)

# -*- 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/.

FAIL_ON_WARNINGS = True

SharedLibrary('mozsandbox')

EXPORTS.mozilla += [
    'Sandbox.h',
]

SOURCES += [
    '../chromium/base/shim/base/logging.cpp',
    '../chromium/sandbox/linux/seccomp-bpf/basicblock.cc',
    '../chromium/sandbox/linux/seccomp-bpf/codegen.cc',
    '../chromium/sandbox/linux/seccomp-bpf/die.cc',
    '../chromium/sandbox/linux/seccomp-bpf/syscall.cc',
    'Sandbox.cpp',
    'SandboxAssembler.cpp',
    'SandboxFilter.cpp',
]

DEFINES['NS_NO_XPCOM'] = True
DISABLE_STL_WRAPPING = True

LOCAL_INCLUDES += ['/security/sandbox/chromium/base/shim']
LOCAL_INCLUDES += ['/security/sandbox/chromium']
LOCAL_INCLUDES += ['/security/sandbox']

if CONFIG['OS_TARGET'] != 'Android':
    # Needed for clock_gettime with glibc < 2.17:
    OS_LIBS += [
        'rt',
    ]

DIRS += [
    'glue',
]