OLD | NEW |
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 | 7 |
8 generate_stubs_script = "//tools/generate_stubs/generate_stubs.py" | 8 generate_stubs_script = "//tools/generate_stubs/generate_stubs.py" |
9 generate_stubs_header = "xpc_stubs_header.fragment" | 9 generate_stubs_header = "xpc_stubs_header.fragment" |
10 generate_stubs_sig_public = "xpc_stubs.sig" | 10 generate_stubs_sig_public = "xpc_stubs.sig" |
(...skipping 30 matching lines...) Expand all Loading... |
41 "-x", | 41 "-x", |
42 "SANDBOX_EXPORT", | 42 "SANDBOX_EXPORT", |
43 ] | 43 ] |
44 args += rebase_path(sources, root_build_dir) | 44 args += rebase_path(sources, root_build_dir) |
45 } | 45 } |
46 | 46 |
47 component("sandbox") { | 47 component("sandbox") { |
48 sources = [ | 48 sources = [ |
49 "bootstrap_sandbox.cc", | 49 "bootstrap_sandbox.cc", |
50 "bootstrap_sandbox.h", | 50 "bootstrap_sandbox.h", |
51 "dispatch_source_mach.cc", | |
52 "dispatch_source_mach.h", | |
53 "launchd_interception_server.cc", | 51 "launchd_interception_server.cc", |
54 "launchd_interception_server.h", | 52 "launchd_interception_server.h", |
55 "mach_message_server.cc", | 53 "mach_message_server.cc", |
56 "mach_message_server.h", | 54 "mach_message_server.h", |
57 "message_server.h", | 55 "message_server.h", |
58 "os_compatibility.cc", | 56 "os_compatibility.cc", |
59 "os_compatibility.h", | 57 "os_compatibility.h", |
60 "policy.cc", | 58 "policy.cc", |
61 "policy.h", | 59 "policy.h", |
62 "xpc.cc", | 60 "xpc.cc", |
(...skipping 15 matching lines...) Expand all Loading... |
78 # necessary. | 76 # necessary. |
79 if (mac_sdk_version == "10.6") { | 77 if (mac_sdk_version == "10.6") { |
80 deps += [ ":generate_stubs" ] | 78 deps += [ ":generate_stubs" ] |
81 sources += get_target_outputs(":generate_stubs") | 79 sources += get_target_outputs(":generate_stubs") |
82 } | 80 } |
83 } | 81 } |
84 | 82 |
85 test("sandbox_mac_unittests") { | 83 test("sandbox_mac_unittests") { |
86 sources = [ | 84 sources = [ |
87 "bootstrap_sandbox_unittest.mm", | 85 "bootstrap_sandbox_unittest.mm", |
88 "dispatch_source_mach_unittest.cc", | |
89 "policy_unittest.cc", | 86 "policy_unittest.cc", |
90 "xpc_message_server_unittest.cc", | 87 "xpc_message_server_unittest.cc", |
91 ] | 88 ] |
92 | 89 |
93 libs = [ | 90 libs = [ |
94 "CoreFoundation.framework", | 91 "CoreFoundation.framework", |
95 "Foundation.framework", | 92 "Foundation.framework", |
96 ] | 93 ] |
97 | 94 |
98 deps = [ | 95 deps = [ |
99 ":sandbox", | 96 ":sandbox", |
100 "//base", | 97 "//base", |
101 "//base/test:run_all_unittests", | 98 "//base/test:run_all_unittests", |
102 "//testing/gtest", | 99 "//testing/gtest", |
103 ] | 100 ] |
104 } | 101 } |
OLD | NEW |