| Index: sandbox/mac/BUILD.gn
|
| diff --git a/sandbox/mac/BUILD.gn b/sandbox/mac/BUILD.gn
|
| index 5174b54f812b016156045871a5013fc34bfcbc48..ee15cd116fbff92b989199626d2781dab45fe57e 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,31 @@ component("sandbox") {
|
| ]
|
| }
|
|
|
| +proto_library("seatbelt_proto") {
|
| + visibility = [ ":*" ]
|
| + 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",
|
| + ]
|
| + public_deps = [
|
| + "//base",
|
| + "//third_party/protobuf:protobuf_lite",
|
| + ]
|
| defines = [ "SEATBELT_IMPLEMENTATION" ]
|
| }
|
|
|
| @@ -51,6 +68,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 +80,7 @@ test("sandbox_mac_unittests") {
|
| deps = [
|
| ":sandbox",
|
| ":seatbelt",
|
| + ":seatbelt_proto",
|
| "//base",
|
| "//base/test:run_all_unittests",
|
| "//testing/gtest",
|
|
|