summaryrefslogtreecommitdiffstats
path: root/sandbox
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-10 17:51:51 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-10 17:51:51 +0000
commit6e0990e17bc2ada4353c0b1dac1d61bce24e02e0 (patch)
tree6f2abf257559cfd92fd0b3c894f59d932f6802dc /sandbox
parent43f253da10d5a2c7e24df81fd6d8c9ef7c03cf1b (diff)
downloadchromium_src-6e0990e17bc2ada4353c0b1dac1d61bce24e02e0.zip
chromium_src-6e0990e17bc2ada4353c0b1dac1d61bce24e02e0.tar.gz
chromium_src-6e0990e17bc2ada4353c0b1dac1d61bce24e02e0.tar.bz2
Add Mac sandbox to the GN build.
R=mark@chromium.org Review URL: https://codereview.chromium.org/320353002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276069 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox')
-rw-r--r--sandbox/BUILD.gn5
-rw-r--r--sandbox/mac/BUILD.gn42
2 files changed, 44 insertions, 3 deletions
diff --git a/sandbox/BUILD.gn b/sandbox/BUILD.gn
index 71de29f..e3a8b62 100644
--- a/sandbox/BUILD.gn
+++ b/sandbox/BUILD.gn
@@ -6,9 +6,8 @@
group("sandbox") {
if (is_win) {
deps = [ "//sandbox/win:sandbox" ]
- # TODO(GYP)
- #} else if (is_mac) {
- # deps = [ "//sandbox/mac:sandbox" ]
+ } else if (is_mac) {
+ deps = [ "//sandbox/mac:sandbox" ]
} else if (is_linux || is_android) {
deps = [ "//sandbox/linux:sandbox" ]
}
diff --git a/sandbox/mac/BUILD.gn b/sandbox/mac/BUILD.gn
new file mode 100644
index 0000000..71b4aa2
--- /dev/null
+++ b/sandbox/mac/BUILD.gn
@@ -0,0 +1,42 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+component("sandbox") {
+ sources = [
+ "bootstrap_sandbox.cc",
+ "bootstrap_sandbox.h",
+ "launchd_interception_server.cc",
+ "launchd_interception_server.h",
+ "os_compatibility.cc",
+ "os_compatibility.h",
+ "policy.cc",
+ "policy.h",
+ ]
+
+ defines = [ "SANDBOX_IMPLEMENTATION" ]
+ libs = [ "bsm" ]
+
+ deps = [
+ "//base",
+ ]
+}
+
+test("sandbox_mac_unittests") {
+ sources = [
+ "bootstrap_sandbox_unittest.mm",
+ "policy_unittest.cc",
+ ]
+
+ libs = [
+ "CoreFoundation.framework",
+ "Foundation.framework",
+ ]
+
+ deps = [
+ ":sandbox",
+ "//base",
+ "//base/test:run_all_unittests",
+ "//testing/gtest",
+ ]
+}