Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(478)

Unified Diff: sandbox/mac/BUILD.gn

Issue 2869203003: Add the SeatbeltExec classes to facilitate the V2 sandbox. (Closed)
Patch Set: Fix the last few nits. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sandbox/mac/sandbox_mac_compiler_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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",
« no previous file with comments | « no previous file | sandbox/mac/sandbox_mac_compiler_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698