OLD | NEW |
---|---|
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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/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', { |
(...skipping 11 matching lines...) Expand all Loading... | |
22 'files': [ | 22 'files': [ |
23 '<(DEPTH)/native_client/src/untrusted/irt_stub/libppapi.a', | 23 '<(DEPTH)/native_client/src/untrusted/irt_stub/libppapi.a', |
24 ], | 24 ], |
25 }, | 25 }, |
26 { | 26 { |
27 'destination': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64', | 27 'destination': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64', |
28 'files': [ | 28 'files': [ |
29 '<(DEPTH)/native_client/src/untrusted/irt_stub/libppapi.a', | 29 '<(DEPTH)/native_client/src/untrusted/irt_stub/libppapi.a', |
30 ], | 30 ], |
31 }, | 31 }, |
32 { | |
33 'destination': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm', | |
34 'files': [ | |
35 '<(DEPTH)/native_client/src/untrusted/irt_stub/libppapi.a', | |
36 ], | |
37 }, | |
32 ], | 38 ], |
33 }, | 39 }, |
34 { | 40 { |
35 'target_name': 'nacl_irt', | 41 'target_name': 'nacl_irt', |
36 'type': 'none', | 42 'type': 'none', |
37 'variables': { | 43 'variables': { |
38 'nexe_target': 'nacl_irt', | 44 'nexe_target': 'nacl_irt', |
39 'out64': '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe', | 45 'out64': '<(PRODUCT_DIR)/nacl_irt_x86_64.nexe', |
40 'out32': '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe', | 46 'out32': '<(PRODUCT_DIR)/nacl_irt_x86_32.nexe', |
47 'outarm': '<(PRODUCT_DIR)/nacl_irt_arm.nexe', | |
41 'build_glibc': 0, | 48 'build_glibc': 0, |
42 'build_newlib': 1, | 49 'build_newlib': 1, |
43 'include_dirs': [ | 50 'include_dirs': [ |
44 'lib/gl/include', | 51 'lib/gl/include', |
45 '..', | 52 '..', |
46 ], | 53 ], |
47 # Link offsets taken from native_client/build/untrusted.gypi | 54 # Link offsets taken from native_client/build/untrusted.gypi |
48 'link_flags': [ | 55 'link_flags': [ |
49 '-lirt_browser', | 56 '-lirt_browser', |
50 '-lppruntime', | 57 '-lppruntime', |
51 '-lsrpc', | 58 '-lsrpc', |
52 '-limc_syscalls', | 59 '-limc_syscalls', |
53 '-lplatform', | 60 '-lplatform', |
54 '-lgio', | 61 '-lgio', |
55 '-lm', | 62 '-lm', |
56 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', | 63 '-lpthread', |
57 '-Wl,-Ttext-segment=<(NACL_IRT_TEXT_START)', | 64 ], |
65 'conditions': [ | |
66 ['target_arch!="arm"', | |
67 { | |
68 'link_flags': [ | |
69 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', | |
70 '-Wl,-Ttext-segment=<(NACL_IRT_TEXT_START)', | |
71 ] | |
72 }, { # target_arch == "arm" | |
73 'link_flags': [ | |
74 '-Wl,--section-start,.rodata=<(NACL_IRT_DATA_START)', | |
75 '-Wl,-Ttext=<(NACL_IRT_TEXT_START)', | |
76 '--pnacl-allow-native', | |
77 '-arch', 'arm', | |
78 '-Wt,-mtls-use-call', | |
79 # TODO(olonho): rethink | |
80 '-L<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm', | |
81 ], | |
82 }, | |
83 ], | |
58 ], | 84 ], |
59 'sources': [ | 85 'sources': [ |
60 ], | 86 ], |
61 'extra_args': [ | 87 'extra_args': [ |
62 '--strip-debug', | 88 '--strip-debug', |
63 ], | 89 ], |
64 'extra_deps64': [ | 90 'extra_deps64': [ |
robertm
2012/03/23 14:10:47
it would be nice if those could be factored.
but t
| |
65 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppruntime.a', | 91 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libppruntime.a', |
66 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libirt_browser.a', | 92 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libirt_browser.a', |
67 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libsrpc.a', | 93 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libsrpc.a', |
68 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libplatform.a', | 94 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libplatform.a', |
69 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libimc_syscalls.a', | 95 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libimc_syscalls.a', |
70 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libgio.a', | 96 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/libgio.a', |
71 ], | 97 ], |
72 'extra_deps32': [ | 98 'extra_deps32': [ |
73 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppruntime.a', | 99 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libppruntime.a', |
74 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libirt_browser.a', | 100 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libirt_browser.a', |
75 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libsrpc.a', | 101 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libsrpc.a', |
76 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libplatform.a', | 102 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libplatform.a', |
77 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libimc_syscalls.a', | 103 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libimc_syscalls.a', |
78 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libgio.a', | 104 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/libgio.a', |
79 ], | 105 ], |
106 'extra_depsarm': [ | |
107 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libppruntime.a', | |
108 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libirt_browser.a', | |
109 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libsrpc.a', | |
110 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libplatform.a', | |
111 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libimc_syscalls.a', | |
112 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libgio.a', | |
113 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/libpthread.a', | |
114 ], | |
80 }, | 115 }, |
81 'dependencies': [ | 116 'dependencies': [ |
82 'src/shared/ppapi_proxy/ppapi_proxy_untrusted.gyp:ppruntime_lib', | 117 'src/shared/ppapi_proxy/ppapi_proxy_untrusted.gyp:ppruntime_lib', |
83 '../../native_client/src/untrusted/irt/irt.gyp:irt_browser_lib', | 118 '../../native_client/src/untrusted/irt/irt.gyp:irt_browser_lib', |
84 '../../native_client/src/shared/srpc/srpc.gyp:srpc_lib', | 119 '../../native_client/src/shared/srpc/srpc.gyp:srpc_lib', |
85 '../../native_client/src/shared/platform/platform.gyp:platform_lib', | 120 '../../native_client/src/shared/platform/platform.gyp:platform_lib', |
86 '../../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', | 121 '../../native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', |
122 '../../native_client/src/untrusted/pthread/pthread.gyp:pthread_lib', | |
87 '../../native_client/src/shared/gio/gio.gyp:gio_lib', | 123 '../../native_client/src/shared/gio/gio.gyp:gio_lib', |
88 ], | 124 ], |
89 }, | 125 }, |
90 ], | 126 ], |
91 }], | 127 }], |
92 ], | 128 ], |
93 } | 129 } |
OLD | NEW |