Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/mac/mac_sdk.gni") | 5 import("//build/config/mac/mac_sdk.gni") |
| 6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 | 7 |
| 8 component("sandbox") { | 8 component("sandbox") { |
| 9 sources = [ | 9 sources = [ |
| 10 "bootstrap_sandbox.cc", | 10 "bootstrap_sandbox.cc", |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 26 ] | 26 ] |
| 27 | 27 |
| 28 defines = [ "SANDBOX_IMPLEMENTATION" ] | 28 defines = [ "SANDBOX_IMPLEMENTATION" ] |
| 29 libs = [ "bsm" ] | 29 libs = [ "bsm" ] |
| 30 | 30 |
| 31 deps = [ | 31 deps = [ |
| 32 "//base", | 32 "//base", |
| 33 ] | 33 ] |
| 34 } | 34 } |
| 35 | 35 |
| 36 component("seatbelt") { | |
| 37 sources = [ | |
| 38 "seatbelt.cc", | |
| 39 "seatbelt.h", | |
|
Nico
2016/04/05 18:37:18
(consider adding seatbelt_exports.h here too)
| |
| 40 ] | |
| 41 libs = [ "sandbox" ] | |
| 42 defines = [ "SANDBOX_IMPLEMENTATION" ] | |
| 43 } | |
| 44 | |
| 36 test("sandbox_mac_unittests") { | 45 test("sandbox_mac_unittests") { |
| 37 sources = [ | 46 sources = [ |
| 38 "bootstrap_sandbox_unittest.mm", | 47 "bootstrap_sandbox_unittest.mm", |
| 39 "policy_unittest.cc", | 48 "policy_unittest.cc", |
| 40 "xpc_message_server_unittest.cc", | 49 "xpc_message_server_unittest.cc", |
| 41 ] | 50 ] |
| 42 | 51 |
| 43 libs = [ | 52 libs = [ |
| 44 "CoreFoundation.framework", | 53 "CoreFoundation.framework", |
| 45 "Foundation.framework", | 54 "Foundation.framework", |
| 46 ] | 55 ] |
| 47 | 56 |
| 48 deps = [ | 57 deps = [ |
| 49 ":sandbox", | 58 ":sandbox", |
| 50 "//base", | 59 "//base", |
| 51 "//base/test:run_all_unittests", | 60 "//base/test:run_all_unittests", |
| 52 "//testing/gtest", | 61 "//testing/gtest", |
| 53 ] | 62 ] |
| 54 } | 63 } |
| OLD | NEW |