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 '../../build/common_untrusted.gypi', | 7 '../../build/common_untrusted.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', { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 }, | 64 }, |
65 { | 65 { |
66 'destination': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm', | 66 'destination': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm', |
67 'files': [ | 67 'files': [ |
68 'src/untrusted/irt_stub/libppapi.a', | 68 'src/untrusted/irt_stub/libppapi.a', |
69 ], | 69 ], |
70 }, | 70 }, |
71 ], | 71 ], |
72 }, | 72 }, |
73 { | 73 { |
74 'target_name': 'nacl_irt_srpc', | |
75 'type': 'none', | |
76 'variables': { | |
77 'nexe_target': 'nacl_irt_srpc', | |
78 # These out_* fields override the default filenames, which | |
79 # include a "_newlib" suffix. | |
80 'out_newlib64': '<(PRODUCT_DIR)/nacl_irt_srpc_x86_64.nexe', | |
81 'out_newlib32': '<(PRODUCT_DIR)/nacl_irt_srpc_x86_32.nexe', | |
82 'out_newlib_arm': '<(PRODUCT_DIR)/nacl_irt_srpc_arm.nexe', | |
83 'build_glibc': 0, | |
84 'build_newlib': 1, | |
85 'include_dirs': [ | |
86 'lib/gl/include', | |
87 '..', | |
88 ], | |
89 'link_flags': [ | |
90 '-Wl,--start-group', | |
91 '-lirt_browser', | |
92 '-lppruntime', | |
93 '-lsrpc', | |
94 '-limc_syscalls', | |
95 '-lplatform', | |
96 '-lbase_untrusted', | |
97 '-lshared_memory_support_untrusted', | |
98 '-lgio', | |
99 '-Wl,--end-group', | |
100 '-lm', | |
101 ], | |
102 # See http://code.google.com/p/nativeclient/issues/detail?id=2691. | |
103 # The PNaCl linker (gold) does not implement the "-Ttext-segment" | |
104 # option. However, with the linker for x86, the "-Ttext" option | |
105 # does not affect the executable's base address. | |
106 # TODO(olonho): simplify flags handling and avoid duplication | |
107 # with NaCl logic. | |
108 'conditions': [ | |
109 ['target_arch!="arm"', | |
110 { | |
111 'sources': [ | |
112 ], | |
113 'link_flags': [ | |
114 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', | |
115 '-Wl,-Ttext-segment=<(NACL_IRT_TEXT_START)', | |
116 ] | |
117 }, { # target_arch == "arm" | |
118 # TODO(mcgrathr): This knowledge really belongs in | |
119 # native_client/src/untrusted/irt/irt.gyp instead of here. | |
120 # But that builds libirt_browser.a as bitcode, so a native | |
121 # object does not fit happily there. | |
122 'sources': [ | |
123 '../../native_client/src/untrusted/irt/aeabi_read_tp.S', | |
124 ], | |
125 'link_flags': [ | |
126 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', | |
127 '-Wl,-Ttext=<(NACL_IRT_TEXT_START)', | |
128 '--pnacl-allow-native', | |
129 '-arch', 'arm', | |
130 '-Wt,-mtls-use-call', | |
131 '-Wl,--pnacl-irt-link', | |
132 ], | |
133 }, | |
134 ], | |
135 ], | |
136 'extra_args': [ | |
137 '--strip-debug', | |
138 ], | |
139 # TODO(bradchen): get rid of extra_deps64 and extra_deps32 | |
140 # once native_client/build/untrusted.gypi no longer needs them. | |
141 'extra_deps64': [ | |
142 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppruntime.a', | |
143 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libbase_untrusted.a', | |
144 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libirt_browser.a', | |
145 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libshared_memory_suppo
rt_untrusted.a', | |
146 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libsrpc.a', | |
147 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libplatform.a', | |
148 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libimc_syscalls.a', | |
149 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libgio.a', | |
150 ], | |
151 'extra_deps32': [ | |
152 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppruntime.a', | |
153 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libbase_untrusted.a', | |
154 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libirt_browser.a', | |
155 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libshared_memory_suppo
rt_untrusted.a', | |
156 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libsrpc.a', | |
157 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libplatform.a', | |
158 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libimc_syscalls.a', | |
159 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libgio.a', | |
160 ], | |
161 'extra_deps_newlib64': [ | |
162 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppruntime.a', | |
163 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libbase_untrusted.a', | |
164 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libirt_browser.a', | |
165 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libshared_memory_suppo
rt_untrusted.a', | |
166 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libsrpc.a', | |
167 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libplatform.a', | |
168 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libimc_syscalls.a', | |
169 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libgio.a', | |
170 ], | |
171 'extra_deps_newlib32': [ | |
172 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppruntime.a', | |
173 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libbase_untrusted.a', | |
174 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libirt_browser.a', | |
175 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libshared_memory_suppo
rt_untrusted.a', | |
176 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libsrpc.a', | |
177 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libplatform.a', | |
178 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libimc_syscalls.a', | |
179 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libgio.a', | |
180 ], | |
181 'extra_deps_glibc64': [ | |
182 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libppruntime.a', | |
183 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libbase_untrusted.a', | |
184 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libirt_browser.a', | |
185 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libshared_memory_suppor
t_untrusted.a', | |
186 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libsrpc.a', | |
187 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libplatform.a', | |
188 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libimc_syscalls.a', | |
189 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libgio.a', | |
190 ], | |
191 'extra_deps_glibc32': [ | |
192 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libppruntime.a', | |
193 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libbase_untrusted.a', | |
194 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libirt_browser.a', | |
195 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libshared_memory_suppor
t_untrusted.a', | |
196 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libsrpc.a', | |
197 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libplatform.a', | |
198 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libimc_syscalls.a', | |
199 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libgio.a', | |
200 ], | |
201 'extra_deps_arm': [ | |
202 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libppruntime.a', | |
203 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libbase_untrusted.a', | |
204 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libirt_browser.a', | |
205 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libshared_memory_supp
ort_untrusted.a', | |
206 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libsrpc.a', | |
207 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libplatform.a', | |
208 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libimc_syscalls.a', | |
209 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libgio.a', | |
210 ], | |
211 }, | |
212 'dependencies': [ | |
213 'src/shared/ppapi_proxy/ppapi_proxy_untrusted.gyp:ppruntime_lib', | |
214 '../../base/base_untrusted.gyp:base_untrusted', | |
215 '../../media/media_untrusted.gyp:shared_memory_support_untrusted', | |
216 '../../native_client/src/untrusted/irt/irt.gyp:irt_browser_lib', | |
217 '../../native_client/src/shared/srpc/srpc.gyp:srpc_lib', | |
218 '../../native_client/src/shared/platform/platform.gyp:platform_lib', | |
219 '../../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', | |
220 '../../native_client/src/shared/gio/gio.gyp:gio_lib', | |
221 ], | |
222 }, | |
223 { | |
224 'target_name': 'nacl_irt', | 74 'target_name': 'nacl_irt', |
225 'type': 'none', | 75 'type': 'none', |
226 'variables': { | 76 'variables': { |
227 'nexe_target': 'nacl_irt', | 77 'nexe_target': 'nacl_irt', |
228 # These out_* fields override the default filenames, which | 78 # These out_* fields override the default filenames, which |
229 # include a "_newlib" suffix. | 79 # include a "_newlib" suffix. |
230 'out_newlib64': '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe', | 80 'out_newlib64': '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe', |
231 'out_newlib32': '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe', | 81 'out_newlib32': '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe', |
232 'out_newlib_arm': '<(PRODUCT_DIR)/nacl_irt_arm.nexe', | 82 'out_newlib_arm': '<(PRODUCT_DIR)/nacl_irt_arm.nexe', |
233 'build_glibc': 0, | 83 'build_glibc': 0, |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 '../../native_client/src/shared/srpc/srpc.gyp:srpc_lib', | 307 '../../native_client/src/shared/srpc/srpc.gyp:srpc_lib', |
458 '../../native_client/src/shared/platform/platform.gyp:platform_lib', | 308 '../../native_client/src/shared/platform/platform.gyp:platform_lib', |
459 '../../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', | 309 '../../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', |
460 '../../native_client/src/shared/gio/gio.gyp:gio_lib', | 310 '../../native_client/src/shared/gio/gio.gyp:gio_lib', |
461 ], | 311 ], |
462 }, | 312 }, |
463 ], | 313 ], |
464 }], | 314 }], |
465 ], | 315 ], |
466 } | 316 } |
OLD | NEW |