Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(621)

Side by Side Diff: ppapi/native_client/native_client.gyp

Issue 10546140: Add untrusted NaCl build for PPAPI proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/common.gypi', 7 '../../native_client/build/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', {
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
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 ['disable_nacl==0 and disable_nacl_untrusted==0 and build_ppapi_ipc_proxy_un trusted==0', {
59 'targets': [
56 { 60 {
57 'target_name': 'nacl_irt', 61 'target_name': 'nacl_irt',
58 'type': 'none', 62 'type': 'none',
59 'variables': { 63 'variables': {
60 'nexe_target': 'nacl_irt', 64 'nexe_target': 'nacl_irt',
61 # These out_* fields override the default filenames, which 65 # These out_* fields override the default filenames, which
62 # include a "_newlib" suffix. 66 # include a "_newlib" suffix.
63 'out_newlib64': '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe', 67 'out_newlib64': '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe',
64 'out_newlib32': '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe', 68 'out_newlib32': '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe',
65 'out_newlib_arm': '<(PRODUCT_DIR)/nacl_irt_arm.nexe', 69 'out_newlib_arm': '<(PRODUCT_DIR)/nacl_irt_arm.nexe',
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 'src/shared/ppapi_proxy/ppapi_proxy_untrusted.gyp:ppruntime_lib', 176 'src/shared/ppapi_proxy/ppapi_proxy_untrusted.gyp:ppruntime_lib',
173 '../../native_client/src/untrusted/irt/irt.gyp:irt_browser_lib', 177 '../../native_client/src/untrusted/irt/irt.gyp:irt_browser_lib',
174 '../../native_client/src/shared/srpc/srpc.gyp:srpc_lib', 178 '../../native_client/src/shared/srpc/srpc.gyp:srpc_lib',
175 '../../native_client/src/shared/platform/platform.gyp:platform_lib', 179 '../../native_client/src/shared/platform/platform.gyp:platform_lib',
176 '../../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', 180 '../../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib',
177 '../../native_client/src/shared/gio/gio.gyp:gio_lib', 181 '../../native_client/src/shared/gio/gio.gyp:gio_lib',
178 ], 182 ],
179 }, 183 },
180 ], 184 ],
181 }], 185 }],
186 ['disable_nacl==0 and disable_nacl_untrusted==0 and build_ppapi_ipc_proxy_un trusted==1', {
187 'targets': [
188 {
189 'target_name': 'nacl_irt',
190 'type': 'none',
191 'variables': {
192 'nexe_target': 'nacl_irt',
193 # These out_* fields override the default filenames, which
194 # include a "_newlib" suffix.
195 'out_newlib64': '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe',
196 'out_newlib32': '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe',
197 'out_newlib_arm': '<(PRODUCT_DIR)/nacl_irt_arm.nexe',
198 'build_glibc': 0,
199 'build_newlib': 1,
200 'include_dirs': [
201 'lib/gl/include',
202 '..',
203 ],
204 'link_flags': [
205 '-Wl,--start-group',
206 '-lirt_browser',
207 '-lppapi_proxy_untrusted',
208 '-lppapi_shared_untrusted',
209 '-lipc_untrusted',
210 '-lbase_untrusted',
211 '-lsrpc',
212 '-limc_syscalls',
213 '-lplatform',
214 '-lgio',
215 '-Wl,--end-group',
216 '-lm',
217 ],
218 # See http://code.google.com/p/nativeclient/issues/detail?id=2691.
219 # The PNaCl linker (gold) does not implement the "-Ttext-segment"
220 # option. However, with the linker for x86, the "-Ttext" option
221 # does not affect the executable's base address.
222 # TODO(olonho): simplify flags handling and avoid duplication
223 # with NaCl logic.
224 'conditions': [
225 ['target_arch!="arm"',
226 {
227 'link_flags': [
228 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)',
229 '-Wl,-Ttext-segment=<(NACL_IRT_TEXT_START)',
230 ]
231 }, { # target_arch == "arm"
232 'link_flags': [
233 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)',
234 '-Wl,-Ttext=<(NACL_IRT_TEXT_START)',
235 '--pnacl-allow-native',
236 '-arch', 'arm',
237 '-Wt,-mtls-use-call',
238 ],
239 },
240 ],
241 ],
242 'sources': [
243 ],
244 'extra_args': [
245 '--strip-debug',
246 ],
247 # TODO(bradchen): get rid of extra_deps64 and extra_deps32
248 # once native_client/build/untrusted.gypi no longer needs them.
249 'extra_deps64': [
250 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_proxy_untrust ed.a',
251 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_shared_untrus ted.a',
252 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libipc_untrusted.a',
253 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libbase_untrusted.a',
254 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libirt_browser.a',
255 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libsrpc.a',
256 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libplatform.a',
257 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libimc_syscalls.a',
258 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libgio.a',
259 ],
260 'extra_deps32': [
261 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi_proxy_untrust ed.a',
262 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi_shared_untrus ted.a',
263 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libipc_untrusted.a',
264 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libbase_untrusted.a',
265 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libirt_browser.a',
266 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libsrpc.a',
267 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libplatform.a',
268 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libimc_syscalls.a',
269 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libgio.a',
270 ],
271 'extra_deps_newlib64': [
272 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_proxy_untrust ed.a',
273 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppapi_shared_untrus ted.a',
274 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libipc_untrusted.a',
275 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libbase_untrusted.a',
276 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libirt_browser.a',
277 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libsrpc.a',
278 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libplatform.a',
279 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libimc_syscalls.a',
280 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libgio.a',
281 ],
282 'extra_deps_newlib32': [
283 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi_proxy_untrust ed.a',
284 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppapi_shared_untrus ted.a',
285 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libipc_untrusted.a',
286 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libbase_untrusted.a',
287 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libirt_browser.a',
288 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libsrpc.a',
289 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libplatform.a',
290 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libimc_syscalls.a',
291 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libgio.a',
292 ],
293 'extra_deps_glibc64': [
294 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libppapi_proxy_untruste d.a',
295 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libppapi_shared_untrust ed.a',
296 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libipc_untrusted.a',
297 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libbase_untrusted.a',
298 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libirt_browser.a',
299 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libsrpc.a',
300 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libplatform.a',
301 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libimc_syscalls.a',
302 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64/libgio.a',
303 ],
304 'extra_deps_glibc32': [
305 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libppapi_proxy_untruste d.a',
306 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libppapi_shared_untrust ed.a',
307 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libipc_untrusted.a',
308 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libbase_untrusted.a',
309 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libirt_browser.a',
310 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libsrpc.a',
311 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libplatform.a',
312 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libimc_syscalls.a',
313 '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32/libgio.a',
314 ],
315 'extra_deps_arm': [
316 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libppapi_proxy_untrus ted.a',
317 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libppapi_shared_untru sted.a',
318 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libipc_untrusted.a',
319 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libbase_untrusted.a',
320 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libirt_browser.a',
321 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libsrpc.a',
322 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libplatform.a',
323 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libimc_syscalls.a',
324 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libgio.a',
325 ],
326 },
327 'dependencies': [
328 '../ppapi_proxy_untrusted.gyp:ppapi_proxy_untrusted',
329 '../ppapi_shared_untrusted.gyp:ppapi_shared_untrusted',
330 '../../ipc/ipc_untrusted.gyp:ipc_untrusted',
331 '../../base/base_untrusted.gyp:base_untrusted',
332 '../../native_client/src/untrusted/irt/irt.gyp:irt_browser_lib',
333 '../../native_client/src/shared/srpc/srpc.gyp:srpc_lib',
334 '../../native_client/src/shared/platform/platform.gyp:platform_lib',
335 '../../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib',
336 '../../native_client/src/shared/gio/gio.gyp:gio_lib',
337 ],
338 },
339 ],
340 }],
182 ], 341 ],
183 } 342 }
OLDNEW
« no previous file with comments | « ipc/ipc_untrusted.gyp ('k') | ppapi/ppapi_internal.gyp » ('j') | ppapi/ppapi_proxy_untrusted.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698