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

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

Issue 10565015: 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
« no previous file with comments | « ipc/ipc_untrusted.gyp ('k') | ppapi/ppapi_internal.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 # 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': [
56 { 62 {
57 'target_name': 'nacl_irt', 63 'target_name': 'nacl_irt',
58 'type': 'none', 64 'type': 'none',
59 'variables': { 65 'variables': {
60 'nexe_target': 'nacl_irt', 66 'nexe_target': 'nacl_irt',
61 # These out_* fields override the default filenames, which 67 # These out_* fields override the default filenames, which
62 # include a "_newlib" suffix. 68 # include a "_newlib" suffix.
63 'out_newlib64': '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe', 69 'out_newlib64': '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe',
64 'out_newlib32': '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe', 70 'out_newlib32': '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe',
65 'out_newlib_arm': '<(PRODUCT_DIR)/nacl_irt_arm.nexe', 71 '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', 178 'src/shared/ppapi_proxy/ppapi_proxy_untrusted.gyp:ppruntime_lib',
173 '../../native_client/src/untrusted/irt/irt.gyp:irt_browser_lib', 179 '../../native_client/src/untrusted/irt/irt.gyp:irt_browser_lib',
174 '../../native_client/src/shared/srpc/srpc.gyp:srpc_lib', 180 '../../native_client/src/shared/srpc/srpc.gyp:srpc_lib',
175 '../../native_client/src/shared/platform/platform.gyp:platform_lib', 181 '../../native_client/src/shared/platform/platform.gyp:platform_lib',
176 '../../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', 182 '../../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib',
177 '../../native_client/src/shared/gio/gio.gyp:gio_lib', 183 '../../native_client/src/shared/gio/gio.gyp:gio_lib',
178 ], 184 ],
179 }, 185 },
180 ], 186 ],
181 }], 187 }],
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 }],
182 ], 343 ],
183 } 344 }
OLDNEW
« no previous file with comments | « ipc/ipc_untrusted.gyp ('k') | ppapi/ppapi_internal.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698