Chromium Code Reviews| Index: sandbox/mac/BUILD.gn |
| diff --git a/sandbox/mac/BUILD.gn b/sandbox/mac/BUILD.gn |
| index 5174b54f812b016156045871a5013fc34bfcbc48..ed352fe5c8714b3bcb25df8ca88a99e8ba16f5b7 100644 |
| --- a/sandbox/mac/BUILD.gn |
| +++ b/sandbox/mac/BUILD.gn |
| @@ -4,6 +4,7 @@ |
| import("//build/config/mac/mac_sdk.gni") |
| import("//testing/test.gni") |
| +import("//third_party/protobuf/proto_library.gni") |
| component("sandbox") { |
| sources = [ |
| @@ -33,15 +34,30 @@ component("sandbox") { |
| ] |
| } |
| +proto_library("seatbelt_proto") { |
|
Robert Sesek
2017/05/10 15:25:28
Restrict |visibility = [":*"]|.
Greg K
2017/05/11 17:44:14
Done.
|
| + sources = [ |
| + "seatbelt.proto", |
| + ] |
| +} |
| + |
| component("seatbelt") { |
| sources = [ |
| "sandbox_compiler.cc", |
| "sandbox_compiler.h", |
| "seatbelt.cc", |
| "seatbelt.h", |
| + "seatbelt_exec.cc", |
| + "seatbelt_exec.h", |
| "seatbelt_export.h", |
| ] |
| libs = [ "sandbox" ] |
| + deps = [ |
| + ":seatbelt_proto", |
| + "//base", |
| + ] |
| + public_deps = [ |
| + "//third_party/protobuf:protobuf_lite", |
| + ] |
| defines = [ "SEATBELT_IMPLEMENTATION" ] |
| } |
| @@ -51,6 +67,7 @@ test("sandbox_mac_unittests") { |
| "policy_unittest.cc", |
| "sandbox_mac_compiler_unittest.mm", |
| "sandbox_mac_compiler_v2_unittest.mm", |
| + "sandbox_mac_seatbelt_exec_unittest.cc", |
| "xpc_message_server_unittest.cc", |
| ] |
| @@ -62,6 +79,7 @@ test("sandbox_mac_unittests") { |
| deps = [ |
| ":sandbox", |
| ":seatbelt", |
| + ":seatbelt_proto", |
| "//base", |
| "//base/test:run_all_unittests", |
| "//testing/gtest", |