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

Side by Side Diff: sandbox/mac/BUILD.gn

Issue 2869203003: Add the SeatbeltExec classes to facilitate the V2 sandbox. (Closed)
Patch Set: Quiet logging from unit tests 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
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") {
Robert Sesek 2017/05/10 15:25:28 Restrict |visibility = [":*"]|.
Greg K 2017/05/11 17:44:14 Done.
38 sources = [
39 "seatbelt.proto",
40 ]
41 }
42
36 component("seatbelt") { 43 component("seatbelt") {
37 sources = [ 44 sources = [
38 "sandbox_compiler.cc", 45 "sandbox_compiler.cc",
39 "sandbox_compiler.h", 46 "sandbox_compiler.h",
40 "seatbelt.cc", 47 "seatbelt.cc",
41 "seatbelt.h", 48 "seatbelt.h",
49 "seatbelt_exec.cc",
50 "seatbelt_exec.h",
42 "seatbelt_export.h", 51 "seatbelt_export.h",
43 ] 52 ]
44 libs = [ "sandbox" ] 53 libs = [ "sandbox" ]
54 deps = [
55 ":seatbelt_proto",
56 "//base",
57 ]
58 public_deps = [
59 "//third_party/protobuf:protobuf_lite",
60 ]
45 defines = [ "SEATBELT_IMPLEMENTATION" ] 61 defines = [ "SEATBELT_IMPLEMENTATION" ]
46 } 62 }
47 63
48 test("sandbox_mac_unittests") { 64 test("sandbox_mac_unittests") {
49 sources = [ 65 sources = [
50 "bootstrap_sandbox_unittest.mm", 66 "bootstrap_sandbox_unittest.mm",
51 "policy_unittest.cc", 67 "policy_unittest.cc",
52 "sandbox_mac_compiler_unittest.mm", 68 "sandbox_mac_compiler_unittest.mm",
53 "sandbox_mac_compiler_v2_unittest.mm", 69 "sandbox_mac_compiler_v2_unittest.mm",
70 "sandbox_mac_seatbelt_exec_unittest.cc",
54 "xpc_message_server_unittest.cc", 71 "xpc_message_server_unittest.cc",
55 ] 72 ]
56 73
57 libs = [ 74 libs = [
58 "CoreFoundation.framework", 75 "CoreFoundation.framework",
59 "Foundation.framework", 76 "Foundation.framework",
60 ] 77 ]
61 78
62 deps = [ 79 deps = [
63 ":sandbox", 80 ":sandbox",
64 ":seatbelt", 81 ":seatbelt",
82 ":seatbelt_proto",
65 "//base", 83 "//base",
66 "//base/test:run_all_unittests", 84 "//base/test:run_all_unittests",
67 "//testing/gtest", 85 "//testing/gtest",
68 ] 86 ]
69 } 87 }
OLDNEW
« no previous file with comments | « no previous file | sandbox/mac/sandbox_mac_compiler_unittest.mm » ('j') | sandbox/mac/sandbox_mac_seatbelt_exec_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698