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 'includes': [ | 6 'includes': [ |
7 '../../native_client/build/untrusted.gypi', | 7 '../../native_client/build/common.gypi', |
8 ], | 8 ], |
9 'conditions': [ | 9 'conditions': [ |
10 ['disable_nacl==0 and disable_nacl_untrusted==0', { | 10 ['disable_nacl==0 and disable_nacl_untrusted==0', { |
11 'targets': [ | 11 'targets': [ |
12 { | 12 { |
13 'target_name': 'ppapi_lib', | 13 'target_name': 'ppapi_lib', |
14 'type': 'none', | 14 'type': 'none', |
15 'dependencies': [ | 15 'dependencies': [ |
16 '../../native_client/src/untrusted/pthread/pthread.gyp:pthread_lib'
, | 16 '../../native_client/src/untrusted/pthread/pthread.gyp:pthread_lib'
, |
17 '../../native_client/src/untrusted/irt_stub/irt_stub.gyp:ppapi_stub
_lib', | 17 '../../native_client/src/untrusted/irt_stub/irt_stub.gyp:ppapi_stub
_lib', |
(...skipping 28 matching lines...) Expand all Loading... |
46 ], | 46 ], |
47 }, | 47 }, |
48 { | 48 { |
49 'destination': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm', | 49 'destination': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm', |
50 'files': [ | 50 'files': [ |
51 '<(DEPTH)/native_client/src/untrusted/irt_stub/libppapi.a', | 51 '<(DEPTH)/native_client/src/untrusted/irt_stub/libppapi.a', |
52 ], | 52 ], |
53 }, | 53 }, |
54 ], | 54 ], |
55 }, | 55 }, |
56 ], | |
57 }], | |
58 # TODO(bbudge) Remove the build_ppapi_ipc_proxy_untrusted flag, factor out c
ommon | |
59 # properties from both IRT flavors, and build them side by side. | |
60 ['disable_nacl==0 and disable_nacl_untrusted==0 and build_ppapi_ipc_proxy_un
trusted==0', { | |
61 'targets': [ | |
62 { | 56 { |
63 'target_name': 'nacl_irt', | 57 'target_name': 'nacl_irt', |
64 'type': 'none', | 58 'type': 'none', |
65 'variables': { | 59 'variables': { |
66 'nexe_target': 'nacl_irt', | 60 'nexe_target': 'nacl_irt', |
67 # These out_* fields override the default filenames, which | 61 # These out_* fields override the default filenames, which |
68 # include a "_newlib" suffix. | 62 # include a "_newlib" suffix. |
69 'out_newlib64': '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe', | 63 'out_newlib64': '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe', |
70 'out_newlib32': '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe', | 64 'out_newlib32': '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe', |
71 'out_newlib_arm': '<(PRODUCT_DIR)/nacl_irt_arm.nexe', | 65 'out_newlib_arm': '<(PRODUCT_DIR)/nacl_irt_arm.nexe', |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 'src/shared/ppapi_proxy/ppapi_proxy_untrusted.gyp:ppruntime_lib', | 172 'src/shared/ppapi_proxy/ppapi_proxy_untrusted.gyp:ppruntime_lib', |
179 '../../native_client/src/untrusted/irt/irt.gyp:irt_browser_lib', | 173 '../../native_client/src/untrusted/irt/irt.gyp:irt_browser_lib', |
180 '../../native_client/src/shared/srpc/srpc.gyp:srpc_lib', | 174 '../../native_client/src/shared/srpc/srpc.gyp:srpc_lib', |
181 '../../native_client/src/shared/platform/platform.gyp:platform_lib', | 175 '../../native_client/src/shared/platform/platform.gyp:platform_lib', |
182 '../../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', | 176 '../../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', |
183 '../../native_client/src/shared/gio/gio.gyp:gio_lib', | 177 '../../native_client/src/shared/gio/gio.gyp:gio_lib', |
184 ], | 178 ], |
185 }, | 179 }, |
186 ], | 180 ], |
187 }], | 181 }], |
188 ['disable_nacl==0 and disable_nacl_untrusted==0 and build_ppapi_ipc_proxy_un
trusted==1', { | |
189 'targets': [ | |
190 { | |
191 'target_name': 'nacl_irt', | |
192 'type': 'none', | |
193 'variables': { | |
194 'nexe_target': 'nacl_irt', | |
195 # These out_* fields override the default filenames, which | |
196 # include a "_newlib" suffix. | |
197 'out_newlib64': '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe', | |
198 'out_newlib32': '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe', | |
199 'out_newlib_arm': '<(PRODUCT_DIR)/nacl_irt_arm.nexe', | |
200 'build_glibc': 0, | |
201 'build_newlib': 1, | |
202 'include_dirs': [ | |
203 'lib/gl/include', | |
204 '..', | |
205 ], | |
206 'link_flags': [ | |
207 '-Wl,--start-group', | |
208 '-lirt_browser', | |
209 '-lppapi_proxy_untrusted', | |
210 '-lppapi_shared_untrusted', | |
211 '-lipc_untrusted', | |
212 '-lbase_untrusted', | |
213 '-lsrpc', | |
214 '-limc_syscalls', | |
215 '-lplatform', | |
216 '-lgio', | |
217 '-Wl,--end-group', | |
218 '-lm', | |
219 ], | |
220 # See http://code.google.com/p/nativeclient/issues/detail?id=2691. | |
221 # The PNaCl linker (gold) does not implement the "-Ttext-segment" | |
222 # option. However, with the linker for x86, the "-Ttext" option | |
223 # does not affect the executable's base address. | |
224 # TODO(olonho): simplify flags handling and avoid duplication | |
225 # with NaCl logic. | |
226 'conditions': [ | |
227 ['target_arch!="arm"', | |
228 { | |
229 'link_flags': [ | |
230 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', | |
231 '-Wl,-Ttext-segment=<(NACL_IRT_TEXT_START)', | |
232 ] | |
233 }, { # target_arch == "arm" | |
234 'link_flags': [ | |
235 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', | |
236 '-Wl,-Ttext=<(NACL_IRT_TEXT_START)', | |
237 '--pnacl-allow-native', | |
238 '-arch', 'arm', | |
239 '-Wt,-mtls-use-call', | |
240 ], | |
241 }, | |
242 ], | |
243 ], | |
244 'sources': [ | |
245 ], | |
246 'extra_args': [ | |
247 '--strip-debug', | |
248 ], | |
249 # TODO(bradchen): get rid of extra_deps64 and extra_deps32 | |
250 # once native_client/build/untrusted.gypi no longer needs them. | |
251 'extra_deps64': [ | |
252 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_proxy_untrust
ed.a', | |
253 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_shared_untrus
ted.a', | |
254 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libipc_untrusted.a', | |
255 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libbase_untrusted.a', | |
256 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libirt_browser.a', | |
257 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libsrpc.a', | |
258 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libplatform.a', | |
259 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libimc_syscalls.a', | |
260 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libgio.a', | |
261 ], | |
262 'extra_deps32': [ | |
263 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi_proxy_untrust
ed.a', | |
264 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi_shared_untrus
ted.a', | |
265 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libipc_untrusted.a', | |
266 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libbase_untrusted.a', | |
267 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libirt_browser.a', | |
268 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libsrpc.a', | |
269 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libplatform.a', | |
270 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libimc_syscalls.a', | |
271 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libgio.a', | |
272 ], | |
273 'extra_deps_newlib64': [ | |
274 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_proxy_untrust
ed.a', | |
275 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_shared_untrus
ted.a', | |
276 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libipc_untrusted.a', | |
277 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libbase_untrusted.a', | |
278 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libirt_browser.a', | |
279 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libsrpc.a', | |
280 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libplatform.a', | |
281 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libimc_syscalls.a', | |
282 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libgio.a', | |
283 ], | |
284 'extra_deps_newlib32': [ | |
285 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi_proxy_untrust
ed.a', | |
286 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi_shared_untrus
ted.a', | |
287 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libipc_untrusted.a', | |
288 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libbase_untrusted.a', | |
289 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libirt_browser.a', | |
290 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libsrpc.a', | |
291 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libplatform.a', | |
292 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libimc_syscalls.a', | |
293 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libgio.a', | |
294 ], | |
295 'extra_deps_glibc64': [ | |
296 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libppapi_proxy_untruste
d.a', | |
297 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libppapi_shared_untrust
ed.a', | |
298 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libipc_untrusted.a', | |
299 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libbase_untrusted.a', | |
300 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libirt_browser.a', | |
301 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libsrpc.a', | |
302 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libplatform.a', | |
303 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libimc_syscalls.a', | |
304 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libgio.a', | |
305 ], | |
306 'extra_deps_glibc32': [ | |
307 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libppapi_proxy_untruste
d.a', | |
308 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libppapi_shared_untrust
ed.a', | |
309 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libipc_untrusted.a', | |
310 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libbase_untrusted.a', | |
311 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libirt_browser.a', | |
312 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libsrpc.a', | |
313 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libplatform.a', | |
314 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libimc_syscalls.a', | |
315 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libgio.a', | |
316 ], | |
317 'extra_deps_arm': [ | |
318 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libppapi_proxy_untrus
ted.a', | |
319 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libppapi_shared_untru
sted.a', | |
320 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libipc_untrusted.a', | |
321 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libbase_untrusted.a', | |
322 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libirt_browser.a', | |
323 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libsrpc.a', | |
324 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libplatform.a', | |
325 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libimc_syscalls.a', | |
326 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libgio.a', | |
327 ], | |
328 }, | |
329 'dependencies': [ | |
330 '../ppapi_proxy_untrusted.gyp:ppapi_proxy_untrusted', | |
331 '../ppapi_shared_untrusted.gyp:ppapi_shared_untrusted', | |
332 '../../ipc/ipc_untrusted.gyp:ipc_untrusted', | |
333 '../../base/base_untrusted.gyp:base_untrusted', | |
334 '../../native_client/src/untrusted/irt/irt.gyp:irt_browser_lib', | |
335 '../../native_client/src/shared/srpc/srpc.gyp:srpc_lib', | |
336 '../../native_client/src/shared/platform/platform.gyp:platform_lib', | |
337 '../../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', | |
338 '../../native_client/src/shared/gio/gio.gyp:gio_lib', | |
339 ], | |
340 }, | |
341 ], | |
342 }], | |
343 ], | 182 ], |
344 } | 183 } |
OLD | NEW |