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 ###################################################################### | 6 ###################################################################### |
7 'includes': [ | 7 'includes': [ |
8 'build/common.gypi', | 8 'build/common.gypi', |
9 ], | 9 ], |
10 ###################################################################### | 10 ###################################################################### |
11 'conditions': [ | 11 'targets' : [ |
12 ['target_arch!="arm"', { | 12 { |
13 'targets' : [ | 13 'target_name': 'prep_toolchain', |
| 14 'type': 'none', |
| 15 'conditions': [ |
| 16 ['target_arch=="ia32"', { |
| 17 'dependencies': [ |
| 18 'crt_init_32', |
| 19 'crt_fini_32', |
| 20 ], |
| 21 }], |
| 22 ['target_arch=="x64" or OS=="win"', { |
| 23 'dependencies': [ |
| 24 'crt_init_64', |
| 25 'crt_fini_64', |
| 26 ], |
| 27 }], |
| 28 ['target_arch=="arm"', { |
| 29 'dependencies': [ |
| 30 'crt_init_arm', |
| 31 'crt_fini_arm', |
| 32 ], |
| 33 }], |
| 34 ], |
| 35 }, |
| 36 { |
| 37 'target_name': 'copy_headers', |
| 38 'type': 'none', |
| 39 'actions': [ |
14 { | 40 { |
15 'target_name': 'prep_toolchain', | 41 'action_name': 'Install crt1.o 32', |
16 'type': 'none', | 42 'msvs_cygwin_shell': 0, |
17 'conditions': [ | 43 'description': 'Install crt1.o 32', |
18 ['target_arch=="ia32"', { | 44 'inputs': [ |
19 'dependencies': [ | 45 'src/untrusted/stubs/crt1.x', |
20 'crt_init_32', | 46 ], |
21 'crt_fini_32', | 47 'outputs': [ |
22 ], | 48 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/32/crt1.o', |
23 }], | 49 ], |
24 ['target_arch=="x64" or OS=="win"', { | 50 'action': [ |
25 'dependencies': [ | 51 '>(python_exe)', |
26 'crt_init_64', | 52 '<(DEPTH)/native_client/build/copy_sources.py', |
27 'crt_fini_64', | 53 'src/untrusted/stubs/crt1.x', |
28 ], | 54 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/32/crt1.o', |
29 }], | |
30 ], | 55 ], |
31 }, | 56 }, |
32 { | 57 { |
33 'target_name': 'copy_headers', | 58 'action_name': 'Install crt1.o 64', |
34 'type': 'none', | 59 'msvs_cygwin_shell': 0, |
35 'actions': [ | 60 'description': 'Install crt1.o 64', |
36 { | 61 'inputs': [ |
37 'action_name': 'Install crt1.o 32', | 62 'src/untrusted/stubs/crt1.x', |
38 'msvs_cygwin_shell': 0, | 63 ], |
39 'description': 'Install crt1.o 32', | 64 'outputs': [ |
40 'inputs': [ | 65 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/crt1.o', |
41 'src/untrusted/stubs/crt1.x', | 66 ], |
42 ], | 67 'action': [ |
43 'outputs': [ | 68 '>(python_exe)', |
44 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/32/crt1.o', | 69 '<(DEPTH)/native_client/build/copy_sources.py', |
45 ], | 70 'src/untrusted/stubs/crt1.x', |
46 'action': [ | 71 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/crt1.o', |
47 '>(python_exe)', | 72 ], |
48 '<(DEPTH)/native_client/build/copy_sources.py', | 73 }, |
49 'src/untrusted/stubs/crt1.x', | 74 { |
50 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/32/crt1.o', | 75 'action_name': 'Install crt1.o arm', |
51 ], | 76 'msvs_cygwin_shell': 0, |
52 }, | 77 'description': 'Install crt1.o arm', |
53 { | 78 'inputs': [ |
54 'action_name': 'Install crt1.o 64', | 79 'pnacl/support/crt1.x', |
55 'msvs_cygwin_shell': 0, | 80 ], |
56 'description': 'Install crt1.o 64', | 81 'outputs': [ |
57 'inputs': [ | 82 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/crt1.o', |
58 'src/untrusted/stubs/crt1.x', | 83 ], |
59 ], | 84 'action': [ |
60 'outputs': [ | 85 '>(python_exe)', |
61 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/crt1.o', | 86 '<(DEPTH)/native_client/build/copy_sources.py', |
62 ], | 87 'pnacl/support/crt1.x', |
63 'action': [ | 88 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/crt1.o', |
64 '>(python_exe)', | 89 ], |
65 '<(DEPTH)/native_client/build/copy_sources.py', | 90 }, |
66 'src/untrusted/stubs/crt1.x', | 91 ], |
67 '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib64/crt1.o', | 92 'copies': [ |
68 ], | 93 # NEWLIB copies |
69 }, | 94 { |
70 ], | 95 'destination': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/include/nacl', |
71 'copies': [ | 96 # Alphabetical order in dst dir for easier verification. |
72 # NEWLIB copies | 97 'files': [ |
73 { | 98 '<(DEPTH)/native_client/src/trusted/weak_ref/call_on_main_thread.h', |
74 'destination': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/include/nacl'
, | 99 '<(DEPTH)/native_client/src/shared/platform/nacl_check.h', |
75 # Alphabetical order in dst dir for easier verification. | 100 '<(DEPTH)/native_client/src/untrusted/nacl/nacl_dyncode.h', |
76 'files': [ | 101 '<(DEPTH)/native_client/src/untrusted/ppapi/nacl_file.h', |
77 '<(DEPTH)/native_client/src/trusted/weak_ref/call_on_main_thread
.h', | 102 '<(DEPTH)/native_client/src/shared/imc/nacl_imc_c.h', |
78 '<(DEPTH)/native_client/src/shared/platform/nacl_check.h', | 103 '<(DEPTH)/native_client/src/shared/imc/nacl_imc.h', |
79 '<(DEPTH)/native_client/src/untrusted/nacl//nacl_dyncode.h', | 104 '<(DEPTH)/native_client/src/include/nacl/nacl_inttypes.h', |
80 '<(DEPTH)/native_client/src/untrusted/ppapi/nacl_file.h', | 105 '<(DEPTH)/native_client/src/shared/platform/nacl_log.h', |
81 '<(DEPTH)/native_client/src/shared/imc/nacl_imc_c.h', | 106 '<(DEPTH)/native_client/src/shared/srpc/nacl_srpc.h', |
82 '<(DEPTH)/native_client/src/shared/imc/nacl_imc.h', | 107 '<(DEPTH)/native_client/src/shared/platform/nacl_threads.h', |
83 '<(DEPTH)/native_client/src/include/nacl/nacl_inttypes.h', | 108 '<(DEPTH)/ppapi/native_client/src/shared/ppapi_proxy/ppruntime.h', |
84 '<(DEPTH)/native_client/src/shared/platform/nacl_log.h', | 109 '<(DEPTH)/native_client/src/shared/platform/refcount_base.h', |
85 '<(DEPTH)/native_client/src/shared/srpc/nacl_srpc.h', | 110 '<(DEPTH)/native_client/src/trusted/weak_ref/weak_ref.h' |
86 '<(DEPTH)/native_client/src/shared/platform/nacl_threads.h', | |
87 '<(DEPTH)/ppapi/native_client/src/shared/ppapi_proxy/ppruntime.h
', | |
88 '<(DEPTH)/native_client/src/shared/platform/refcount_base.h', | |
89 '<(DEPTH)/native_client/src/trusted/weak_ref/weak_ref.h' | |
90 ], | |
91 }, | |
92 { | |
93 'destination': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/include', | |
94 'files': [ | |
95 '<(DEPTH)/native_client/src/untrusted/pthread/pthread.h', | |
96 '<(DEPTH)/native_client/src/untrusted/pthread/semaphore.h' | |
97 ], | |
98 }, | |
99 # GLIBC copies | |
100 { | |
101 # Alphabetical order in dst dir for easier verification. | |
102 'destination': '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/include/nacl', | |
103 'files': [ | |
104 '<(DEPTH)/native_client/src/trusted/weak_ref/call_on_main_thread
.h', | |
105 '<(DEPTH)/native_client/src/shared/platform/nacl_check.h', | |
106 '<(DEPTH)/native_client/src/untrusted/ppapi/nacl_file.h', | |
107 '<(DEPTH)/native_client/src/shared/imc/nacl_imc.h', | |
108 '<(DEPTH)/native_client/src/include/nacl/nacl_inttypes.h', | |
109 '<(DEPTH)/native_client/src/shared/platform/nacl_log.h', | |
110 '<(DEPTH)/native_client/src/shared/srpc/nacl_srpc.h', | |
111 '<(DEPTH)/native_client/src/shared/platform/nacl_threads.h', | |
112 '<(DEPTH)/ppapi/native_client/src/shared/ppapi_proxy/ppruntime.h
', | |
113 '<(DEPTH)/native_client/src/shared/platform/refcount_base.h', | |
114 '<(DEPTH)/native_client/src/trusted/weak_ref/weak_ref.h' | |
115 ], | |
116 }, | |
117 ], | 111 ], |
118 }, | 112 }, |
119 ], | 113 { |
120 }], | 114 'destination': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/include', |
| 115 'files': [ |
| 116 '<(DEPTH)/native_client/src/untrusted/pthread/pthread.h', |
| 117 '<(DEPTH)/native_client/src/untrusted/pthread/semaphore.h' |
| 118 ], |
| 119 }, |
| 120 # GLIBC copies |
| 121 { |
| 122 # Alphabetical order in dst dir for easier verification. |
| 123 'destination': '<(SHARED_INTERMEDIATE_DIR)/tc_glibc/include/nacl', |
| 124 'files': [ |
| 125 '<(DEPTH)/native_client/src/trusted/weak_ref/call_on_main_thread.h', |
| 126 '<(DEPTH)/native_client/src/shared/platform/nacl_check.h', |
| 127 '<(DEPTH)/native_client/src/untrusted/ppapi/nacl_file.h', |
| 128 '<(DEPTH)/native_client/src/shared/imc/nacl_imc.h', |
| 129 '<(DEPTH)/native_client/src/include/nacl/nacl_inttypes.h', |
| 130 '<(DEPTH)/native_client/src/shared/platform/nacl_log.h', |
| 131 '<(DEPTH)/native_client/src/shared/srpc/nacl_srpc.h', |
| 132 '<(DEPTH)/native_client/src/shared/platform/nacl_threads.h', |
| 133 '<(DEPTH)/ppapi/native_client/src/shared/ppapi_proxy/ppruntime.h', |
| 134 '<(DEPTH)/native_client/src/shared/platform/refcount_base.h', |
| 135 '<(DEPTH)/native_client/src/trusted/weak_ref/weak_ref.h' |
| 136 ], |
| 137 }, |
| 138 ], |
| 139 }, |
| 140 ], |
| 141 |
| 142 'conditions': [ |
121 ['target_arch=="x64" or OS=="win"', { | 143 ['target_arch=="x64" or OS=="win"', { |
122 'targets' : [ | 144 'targets' : [ |
123 { | 145 { |
124 'target_name': 'crt_init_64', | 146 'target_name': 'crt_init_64', |
125 'type': 'none', | 147 'type': 'none', |
126 'dependencies': [ | 148 'dependencies': [ |
127 'copy_headers' | 149 'copy_headers' |
128 ], | 150 ], |
129 'variables': { | 151 'variables': { |
130 'nlib_target': 'crt_init_dummy', | 152 'nlib_target': 'crt_init_dummy', |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 ], | 233 ], |
212 'out32': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/crtn.o', | 234 'out32': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32/crtn.o', |
213 'objdir': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32', | 235 'objdir': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/lib32', |
214 'sources': [ | 236 'sources': [ |
215 'src/untrusted/stubs/crtn_x86_32.S' | 237 'src/untrusted/stubs/crtn_x86_32.S' |
216 ] | 238 ] |
217 }, | 239 }, |
218 } | 240 } |
219 ], | 241 ], |
220 }], | 242 }], |
| 243 ['target_arch=="arm"', { |
| 244 'targets' : [ |
| 245 { |
| 246 'target_name': 'crt_init_arm', |
| 247 'type': 'none', |
| 248 'dependencies': [ |
| 249 'copy_headers' |
| 250 ], |
| 251 'variables': { |
| 252 'nlib_target': 'crt_init_dummy', |
| 253 'build_glibc': 0, |
| 254 'build_newlib': 1, |
| 255 'extra_args': [ |
| 256 '--compile', |
| 257 '--no-suffix', |
| 258 '--strip=_arm' |
| 259 ], |
| 260 'outarm': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/crti.o', |
| 261 'objdir': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm', |
| 262 'sources': [ |
| 263 'src/untrusted/stubs/crti_arm.S', |
| 264 ] |
| 265 }, |
| 266 }, |
| 267 { |
| 268 'target_name': 'crt_fini_arm', |
| 269 'type': 'none', |
| 270 'dependencies': [ |
| 271 'copy_headers' |
| 272 ], |
| 273 'variables': { |
| 274 'nlib_target': 'crt_fini_dummy', |
| 275 'build_glibc': 0, |
| 276 'build_newlib': 1, |
| 277 'extra_args': [ |
| 278 '--compile', |
| 279 '--no-suffix', |
| 280 '--strip=_arm' |
| 281 ], |
| 282 'outarm': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm/crtn.o', |
| 283 'objdir': '<(SHARED_INTERMEDIATE_DIR)/tc_newlib/libarm', |
| 284 'sources': [ |
| 285 'src/untrusted/stubs/crtn_arm.S' |
| 286 ] |
| 287 }, |
| 288 } |
| 289 ], |
| 290 }], |
221 ], | 291 ], |
222 } | 292 } |
OLD | NEW |