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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | sandbox/mac/sandbox_mac_compiler_unittest.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 import("//third_party/protobuf/proto_library.gni")
7 8
8 component("sandbox") { 9 component("sandbox") {
9 sources = [ 10 sources = [
10 "bootstrap_sandbox.cc", 11 "bootstrap_sandbox.cc",
11 "bootstrap_sandbox.h", 12 "bootstrap_sandbox.h",
12 "launchd_interception_server.cc", 13 "launchd_interception_server.cc",
13 "launchd_interception_server.h", 14 "launchd_interception_server.h",
14 "mach_message_server.cc", 15 "mach_message_server.cc",
15 "mach_message_server.h", 16 "mach_message_server.h",
16 "message_server.h", 17 "message_server.h",
17 "os_compatibility.cc", 18 "os_compatibility.cc",
18 "os_compatibility.h", 19 "os_compatibility.h",
19 "policy.cc", 20 "policy.cc",
20 "policy.h", 21 "policy.h",
21 "pre_exec_delegate.cc", 22 "pre_exec_delegate.cc",
22 "pre_exec_delegate.h", 23 "pre_exec_delegate.h",
23 "xpc.h", 24 "xpc.h",
24 "xpc_message_server.cc", 25 "xpc_message_server.cc",
25 "xpc_message_server.h", 26 "xpc_message_server.h",
26 ] 27 ]
27 28
28 defines = [ "SANDBOX_IMPLEMENTATION" ] 29 defines = [ "SANDBOX_IMPLEMENTATION" ]
29 libs = [ "bsm" ] 30 libs = [ "bsm" ]
30 31
31 deps = [ 32 deps = [
32 "//base", 33 "//base",
33 ] 34 ]
34 } 35 }
35 36
37 proto_library("seatbelt_proto") {
38 visibility = [ ":*" ]
39 sources = [
40 "seatbelt.proto",
41 ]
42 }
43
36 component("seatbelt") { 44 component("seatbelt") {
37 sources = [ 45 sources = [
38 "sandbox_compiler.cc", 46 "sandbox_compiler.cc",
39 "sandbox_compiler.h", 47 "sandbox_compiler.h",
40 "seatbelt.cc", 48 "seatbelt.cc",
41 "seatbelt.h", 49 "seatbelt.h",
50 "seatbelt_exec.cc",
51 "seatbelt_exec.h",
42 "seatbelt_export.h", 52 "seatbelt_export.h",
43 ] 53 ]
44 libs = [ "sandbox" ] 54 libs = [ "sandbox" ]
55 deps = [
56 ":seatbelt_proto",
57 ]
58 public_deps = [
59 "//base",
60 "//third_party/protobuf:protobuf_lite",
61 ]
45 defines = [ "SEATBELT_IMPLEMENTATION" ] 62 defines = [ "SEATBELT_IMPLEMENTATION" ]
46 } 63 }
47 64
48 test("sandbox_mac_unittests") { 65 test("sandbox_mac_unittests") {
49 sources = [ 66 sources = [
50 "bootstrap_sandbox_unittest.mm", 67 "bootstrap_sandbox_unittest.mm",
51 "policy_unittest.cc", 68 "policy_unittest.cc",
52 "sandbox_mac_compiler_unittest.mm", 69 "sandbox_mac_compiler_unittest.mm",
53 "sandbox_mac_compiler_v2_unittest.mm", 70 "sandbox_mac_compiler_v2_unittest.mm",
71 "sandbox_mac_seatbelt_exec_unittest.cc",
54 "xpc_message_server_unittest.cc", 72 "xpc_message_server_unittest.cc",
55 ] 73 ]
56 74
57 libs = [ 75 libs = [
58 "CoreFoundation.framework", 76 "CoreFoundation.framework",
59 "Foundation.framework", 77 "Foundation.framework",
60 ] 78 ]
61 79
62 deps = [ 80 deps = [
63 ":sandbox", 81 ":sandbox",
64 ":seatbelt", 82 ":seatbelt",
83 ":seatbelt_proto",
65 "//base", 84 "//base",
66 "//base/test:run_all_unittests", 85 "//base/test:run_all_unittests",
67 "//testing/gtest", 86 "//testing/gtest",
68 ] 87 ]
69 } 88 }
OLDNEW
« 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