OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 'include': [ | 6 'variables': { |
| 7 'chromium_code': 1, |
| 8 }, |
| 9 'includes': [ |
7 '../native_client/build/untrusted.gypi', | 10 '../native_client/build/untrusted.gypi', |
| 11 'nacl/nacl_defines.gypi', |
8 ], | 12 ], |
9 'target_defaults': { | 13 'target_defaults': { |
10 'variables': { | 14 'variables': { |
11 'nacl_target': 0, | 15 'nacl_target': 0, |
12 }, | 16 }, |
13 'target_conditions': [ | 17 'target_conditions': [ |
14 # This part is shared between the targets defined below. Only files and | 18 # This part is shared between the targets defined below. Only files and |
15 # settings relevant for building the Win64 target should be added here. | 19 # settings relevant for building the Win64 target should be added here. |
16 ['nacl_target==1', { | 20 ['nacl_target==1', { |
17 'include_dirs': [ | 21 'include_dirs': [ |
18 '<(INTERMEDIATE_DIR)', | 22 '<(INTERMEDIATE_DIR)', |
19 ], | 23 ], |
20 'defines': [ | 24 'defines': [ |
21 '<@(nacl_defines)', | 25 '<@(nacl_defines)', |
22 ], | 26 ], |
23 'sources': [ | 27 'sources': [ |
24 # .cc, .h, and .mm files under nacl that are used on all | 28 # .cc, .h, and .mm files under nacl that are used on all |
25 # platforms, including both 32-bit and 64-bit Windows. | 29 # platforms, including both 32-bit and 64-bit Windows. |
26 # Test files are also not included. | 30 # Test files are also not included. |
27 '../components/nacl/loader/nacl_ipc_adapter.cc', | 31 'nacl/loader/nacl_ipc_adapter.cc', |
28 '../components/nacl/loader/nacl_ipc_adapter.h', | 32 'nacl/loader/nacl_ipc_adapter.h', |
29 '../components/nacl/loader/nacl_main.cc', | 33 'nacl/loader/nacl_main.cc', |
30 '../components/nacl/loader/nacl_main_platform_delegate.h', | 34 'nacl/loader/nacl_main_platform_delegate.h', |
31 '../components/nacl/loader/nacl_main_platform_delegate_linux.cc', | 35 'nacl/loader/nacl_main_platform_delegate_linux.cc', |
32 '../components/nacl/loader/nacl_main_platform_delegate_mac.mm', | 36 'nacl/loader/nacl_main_platform_delegate_mac.mm', |
33 '../components/nacl/loader/nacl_main_platform_delegate_win.cc', | 37 'nacl/loader/nacl_main_platform_delegate_win.cc', |
34 '../components/nacl/loader/nacl_listener.cc', | 38 'nacl/loader/nacl_listener.cc', |
35 '../components/nacl/loader/nacl_listener.h', | 39 'nacl/loader/nacl_listener.h', |
36 '../components/nacl/loader/nacl_validation_db.h', | 40 'nacl/loader/nacl_validation_db.h', |
37 '../components/nacl/loader/nacl_validation_query.cc', | 41 'nacl/loader/nacl_validation_query.cc', |
38 '../components/nacl/loader/nacl_validation_query.h', | 42 'nacl/loader/nacl_validation_query.h', |
39 ], | 43 ], |
40 # TODO(gregoryd): consider switching NaCl to use Chrome OS defines | 44 # TODO(gregoryd): consider switching NaCl to use Chrome OS defines |
41 'conditions': [ | 45 'conditions': [ |
42 ['OS=="win"', { | 46 ['OS=="win"', { |
43 'defines': [ | 47 'defines': [ |
44 '__STDC_LIMIT_MACROS=1', | 48 '__STDC_LIMIT_MACROS=1', |
45 ], | 49 ], |
46 'include_dirs': [ | 50 'include_dirs': [ |
47 '<(DEPTH)/third_party/wtl/include', | 51 '<(DEPTH)/third_party/wtl/include', |
48 ], | 52 ], |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 }, | 135 }, |
132 }, | 136 }, |
133 'direct_dependent_settings': { | 137 'direct_dependent_settings': { |
134 'defines': [ | 138 'defines': [ |
135 '<@(nacl_defines)', | 139 '<@(nacl_defines)', |
136 ], | 140 ], |
137 }, | 141 }, |
138 }, | 142 }, |
139 ], | 143 ], |
140 }], | 144 }], |
141 ['OS=="linux"', { | |
142 'targets': [ | |
143 { | |
144 'target_name': 'nacl_helper', | |
145 'type': 'executable', | |
146 'include_dirs': [ | |
147 '..', | |
148 ], | |
149 'dependencies': [ | |
150 '../components/nacl_common.gyp:nacl_common', | |
151 '../crypto/crypto.gyp:crypto', | |
152 '../sandbox/sandbox.gyp:libc_urandom_override', | |
153 '../sandbox/sandbox.gyp:sandbox', | |
154 'nacl', | |
155 ], | |
156 'sources': [ | |
157 'nacl/nacl_helper_linux.cc', | |
158 '../base/posix/unix_domain_socket_linux.cc', | |
159 '../components/nacl/loader/nacl_sandbox_linux.cc', | |
160 '../content/common/child_process_sandbox_support_impl_shm_linux.
cc', | |
161 '../content/common/sandbox_init_linux.cc', | |
162 '../content/common/sandbox_seccomp_bpf_linux.cc', | |
163 '../content/public/common/content_switches.cc', | |
164 ], | |
165 'conditions': [ | |
166 ['toolkit_uses_gtk == 1', { | |
167 'dependencies': [ | |
168 '../build/linux/system.gyp:gtk', | |
169 ], | |
170 }], | |
171 ['use_glib == 1', { | |
172 'dependencies': [ | |
173 '../build/linux/system.gyp:glib', | |
174 ], | |
175 }], | |
176 ['os_posix == 1 and OS != "mac"', { | |
177 'conditions': [ | |
178 ['linux_use_tcmalloc==1', { | |
179 'dependencies': [ | |
180 '../base/allocator/allocator.gyp:allocator', | |
181 ], | |
182 }], | |
183 ], | |
184 }], | |
185 ], | |
186 'cflags': ['-fPIE'], | |
187 'link_settings': { | |
188 'ldflags': ['-pie'], | |
189 }, | |
190 }, | |
191 ], | |
192 }], | |
193 ], | 145 ], |
194 }, { # else (disable_nacl==1) | 146 }, { # else (disable_nacl==1) |
195 'targets': [ | 147 'targets': [ |
196 { | 148 { |
197 'target_name': 'nacl', | 149 'target_name': 'nacl', |
198 'type': 'none', | 150 'type': 'none', |
199 'sources': [], | 151 'sources': [], |
200 }, | 152 }, |
201 ], | 153 ], |
202 'conditions': [ | 154 'conditions': [ |
203 ['OS=="win"', { | 155 ['OS=="win"', { |
204 'targets': [ | 156 'targets': [ |
205 { | 157 { |
206 'target_name': 'nacl_win64', | 158 'target_name': 'nacl_win64', |
207 'type': 'none', | 159 'type': 'none', |
208 'sources': [], | 160 'sources': [], |
209 }, | 161 }, |
210 ], | 162 ], |
211 }], | 163 }], |
212 ], | 164 ], |
213 }], | 165 }], |
214 ], | 166 ], |
215 } | 167 } |
OLD | NEW |