| 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", |
| 40 "seatbelt_export.h", |
| 41 ] |
| 42 libs = [ "sandbox" ] |
| 43 defines = [ "SEATBELT_IMPLEMENTATION" ] |
| 44 } |
| 45 |
| 36 test("sandbox_mac_unittests") { | 46 test("sandbox_mac_unittests") { |
| 37 sources = [ | 47 sources = [ |
| 38 "bootstrap_sandbox_unittest.mm", | 48 "bootstrap_sandbox_unittest.mm", |
| 39 "policy_unittest.cc", | 49 "policy_unittest.cc", |
| 40 "xpc_message_server_unittest.cc", | 50 "xpc_message_server_unittest.cc", |
| 41 ] | 51 ] |
| 42 | 52 |
| 43 libs = [ | 53 libs = [ |
| 44 "CoreFoundation.framework", | 54 "CoreFoundation.framework", |
| 45 "Foundation.framework", | 55 "Foundation.framework", |
| 46 ] | 56 ] |
| 47 | 57 |
| 48 deps = [ | 58 deps = [ |
| 49 ":sandbox", | 59 ":sandbox", |
| 50 "//base", | 60 "//base", |
| 51 "//base/test:run_all_unittests", | 61 "//base/test:run_all_unittests", |
| 52 "//testing/gtest", | 62 "//testing/gtest", |
| 53 ] | 63 ] |
| 54 } | 64 } |
| OLD | NEW |