1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
7 '../../native_client/build/common.gypi',
10 ['disable_nacl==0 and disable_nacl_untrusted==0', {
13 'target_name': 'ppapi_lib',
16 '../../native_client/src/untrusted/pthread/pthread.gyp:pthread_lib',
17 '../../native_client/src/untrusted/irt_stub/irt_stub.gyp:ppapi_stub_lib',
21 'destination': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32',
23 '<(DEPTH)/native_client/src/untrusted/irt_stub/libppapi.a',
27 'destination': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64',
29 '<(DEPTH)/native_client/src/untrusted/irt_stub/libppapi.a',
33 'destination': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm',
35 '<(DEPTH)/native_client/src/untrusted/irt_stub/libppapi.a',
41 'target_name': 'nacl_irt',
44 'nexe_target': 'nacl_irt',
45 'out64': '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe',
46 'out32': '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe',
47 'out_arm': '<(PRODUCT_DIR)/nacl_irt_arm.nexe',
65 # See http://code.google.com/p/nativeclient/issues/detail?id=2691.
66 # The PNaCl linker (gold) does not implement the "-Ttext-segment"
67 # option. However, with the linker for x86, the "-Ttext" option
68 # does not affect the executable's base address.
69 # TODO(olonho): simplify flags handling and avoid duplication
72 ['target_arch!="arm"',
75 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)',
76 '-Wl,-Ttext-segment=<(NACL_IRT_TEXT_START)',
78 }, { # target_arch == "arm"
80 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)',
81 '-Wl,-Ttext=<(NACL_IRT_TEXT_START)',
82 '--pnacl-allow-native',
95 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppruntime.a',
96 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libirt_browser.a',
97 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libsrpc.a',
98 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libplatform.a',
99 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libimc_syscalls.a',
100 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libgio.a',
103 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppruntime.a',
104 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libirt_browser.a',
105 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libsrpc.a',
106 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libplatform.a',
107 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libimc_syscalls.a',
108 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libgio.a',
111 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libppruntime.a',
112 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libirt_browser.a',
113 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libsrpc.a',
114 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libplatform.a',
115 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libimc_syscalls.a',
116 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libgio.a',
120 'src/shared/ppapi_proxy/ppapi_proxy_untrusted.gyp:ppruntime_lib',
121 '../../native_client/src/untrusted/irt/irt.gyp:irt_browser_lib',
122 '../../native_client/src/shared/srpc/srpc.gyp:srpc_lib',
123 '../../native_client/src/shared/platform/platform.gyp:platform_lib',
124 '../../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib',
125 '../../native_client/src/shared/gio/gio.gyp:gio_lib',