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 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | 7 { |
8 'target_name': 'sandbox', | 8 'target_name': 'sandbox', |
9 'type': '<(component)', | 9 'type': '<(component)', |
10 'sources': [ | 10 'sources': [ |
11 'bootstrap_sandbox.cc', | 11 'bootstrap_sandbox.cc', |
12 'bootstrap_sandbox.h', | 12 'bootstrap_sandbox.h', |
13 'dispatch_source_mach.cc', | 13 'dispatch_source_mach.cc', |
14 'dispatch_source_mach.h', | 14 'dispatch_source_mach.h', |
15 'launchd_interception_server.cc', | 15 'launchd_interception_server.cc', |
16 'launchd_interception_server.h', | 16 'launchd_interception_server.h', |
17 'mach_message_server.cc', | 17 'mach_message_server.cc', |
18 'mach_message_server.h', | 18 'mach_message_server.h', |
19 'message_server.h', | 19 'message_server.h', |
20 'os_compatibility.cc', | 20 'os_compatibility.cc', |
21 'os_compatibility.h', | 21 'os_compatibility.h', |
22 'policy.cc', | 22 'policy.cc', |
23 'policy.h', | 23 'policy.h', |
| 24 'xpc.cc', |
24 'xpc.h', | 25 'xpc.h', |
| 26 'xpc_message_server.cc', |
| 27 'xpc_message_server.h', |
25 ], | 28 ], |
26 'dependencies': [ | 29 'dependencies': [ |
27 '../base/base.gyp:base', | 30 '../base/base.gyp:base', |
28 ], | 31 ], |
29 'include_dirs': [ | 32 'include_dirs': [ |
30 '..', | 33 '..', |
31 '<(SHARED_INTERMEDIATE_DIR)', | 34 '<(SHARED_INTERMEDIATE_DIR)', |
32 ], | 35 ], |
33 'defines': [ | 36 'defines': [ |
34 'SANDBOX_IMPLEMENTATION', | 37 'SANDBOX_IMPLEMENTATION', |
(...skipping 26 matching lines...) Expand all Loading... |
61 ], | 64 ], |
62 'action': [ | 65 'action': [ |
63 'python', | 66 'python', |
64 '<(generate_stubs_script)', | 67 '<(generate_stubs_script)', |
65 '-i', '<(INTERMEDIATE_DIR)', | 68 '-i', '<(INTERMEDIATE_DIR)', |
66 '-o', '<(SHARED_INTERMEDIATE_DIR)/<(generate_stubs_project)', | 69 '-o', '<(SHARED_INTERMEDIATE_DIR)/<(generate_stubs_project)', |
67 '-t', 'posix_stubs', | 70 '-t', 'posix_stubs', |
68 '-e', '<(generate_stubs_header_path)', | 71 '-e', '<(generate_stubs_header_path)', |
69 '-s', '<(generate_stubs_output_stem)', | 72 '-s', '<(generate_stubs_output_stem)', |
70 '-p', '<(generate_stubs_project)', | 73 '-p', '<(generate_stubs_project)', |
| 74 '-x', 'SANDBOX_EXPORT', |
71 '<(generate_stubs_sig_public_path)', | 75 '<(generate_stubs_sig_public_path)', |
72 '<(generate_stubs_sig_private_path)', | 76 '<(generate_stubs_sig_private_path)', |
73 ], | 77 ], |
74 'process_outputs_as_sources': 1, | 78 'process_outputs_as_sources': 1, |
75 'message': 'Generating XPC stubs for 10.6 compatability.', | 79 'message': 'Generating XPC stubs for 10.6 compatability.', |
76 }, | 80 }, |
77 ], | 81 ], |
78 }, | 82 }, |
79 { | 83 { |
80 'target_name': 'sandbox_mac_unittests', | 84 'target_name': 'sandbox_mac_unittests', |
81 'type': 'executable', | 85 'type': 'executable', |
82 'sources': [ | 86 'sources': [ |
83 'bootstrap_sandbox_unittest.mm', | 87 'bootstrap_sandbox_unittest.mm', |
84 'dispatch_source_mach_unittest.cc', | 88 'dispatch_source_mach_unittest.cc', |
85 'policy_unittest.cc', | 89 'policy_unittest.cc', |
| 90 'xpc_message_server_unittest.cc', |
86 ], | 91 ], |
87 'dependencies': [ | 92 'dependencies': [ |
88 'sandbox', | 93 'sandbox', |
89 '../base/base.gyp:base', | 94 '../base/base.gyp:base', |
90 '../base/base.gyp:run_all_unittests', | 95 '../base/base.gyp:run_all_unittests', |
91 '../testing/gtest.gyp:gtest', | 96 '../testing/gtest.gyp:gtest', |
92 ], | 97 ], |
93 'include_dirs': [ | 98 'include_dirs': [ |
94 '..', | 99 '..', |
95 ], | 100 ], |
96 'link_settings': { | 101 'link_settings': { |
97 'libraries': [ | 102 'libraries': [ |
98 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', | 103 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', |
99 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | 104 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
100 ], | 105 ], |
101 }, | 106 }, |
102 }, | 107 }, |
103 ], | 108 ], |
104 } | 109 } |
OLD | NEW |