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

Side by Side Diff: runtime/bin/bin.gypi

Issue 12726011: Enables cross-compilation of the VM for ARM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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 | « no previous file | runtime/dart-runtime.gyp » ('j') | tools/build.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 # for details. All rights reserved. Use of this source code is governed by a 2 # for details. All rights reserved. Use of this source code is governed by a
3 # BSD-style license that can be found in the LICENSE file. 3 # BSD-style license that can be found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'io_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_gen.cc', 7 'gen_source_dir': '<(LIB_DIR)',
8 'io_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_patch_gen.cc', 8 'io_cc_file': '<(gen_source_dir)/io_gen.cc',
9 'io_patch_cc_file': '<(gen_source_dir)/io_patch_gen.cc',
9 'builtin_in_cc_file': 'builtin_in.cc', 10 'builtin_in_cc_file': 'builtin_in.cc',
10 'builtin_cc_file': '<(SHARED_INTERMEDIATE_DIR)/builtin_gen.cc', 11 'builtin_cc_file': '<(gen_source_dir)/builtin_gen.cc',
11 'snapshot_in_cc_file': 'snapshot_in.cc', 12 'snapshot_in_cc_file': 'snapshot_in.cc',
12 'snapshot_bin_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.bin', 13 'snapshot_bin_file': '<(gen_source_dir)/snapshot_gen.bin',
13 'snapshot_cc_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.cc', 14 'snapshot_cc_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.cc',
14 'resources_cc_file': '<(SHARED_INTERMEDIATE_DIR)/resources_gen.cc', 15 'resources_cc_file': '<(SHARED_INTERMEDIATE_DIR)/resources_gen.cc',
kustermann 2013/04/15 11:59:22 Is it correct that 'snapshot_cc_file' and 'resourc
zra 2013/04/15 17:52:58 They are both architecture independent. Additional
15 }, 16 },
16 'targets': [ 17 'targets': [
17 { 18 {
18 'target_name': 'generate_builtin_cc_file', 19 'target_name': 'generate_builtin_cc_file',
19 'type': 'none', 20 'type': 'none',
21 'toolsets':['target','host'],
20 'includes': [ 22 'includes': [
21 'builtin_sources.gypi', 23 'builtin_sources.gypi',
22 ], 24 ],
23 'actions': [ 25 'actions': [
24 { 26 {
25 'action_name': 'generate_builtin_cc', 27 'action_name': 'generate_builtin_cc',
26 'inputs': [ 28 'inputs': [
27 '../tools/create_string_literal.py', 29 '../tools/create_string_literal.py',
28 '<(builtin_in_cc_file)', 30 '<(builtin_in_cc_file)',
29 '<@(_sources)', 31 '<@(_sources)',
(...skipping 10 matching lines...) Expand all
40 '--var_name', 'Builtin::builtin_source_', 42 '--var_name', 'Builtin::builtin_source_',
41 '<@(_sources)', 43 '<@(_sources)',
42 ], 44 ],
43 'message': 'Generating ''<(builtin_cc_file)'' file.' 45 'message': 'Generating ''<(builtin_cc_file)'' file.'
44 }, 46 },
45 ] 47 ]
46 }, 48 },
47 { 49 {
48 'target_name': 'generate_io_cc_file', 50 'target_name': 'generate_io_cc_file',
49 'type': 'none', 51 'type': 'none',
52 'toolsets':['target','host'],
50 'variables': { 53 'variables': {
51 'io_dart': '<(SHARED_INTERMEDIATE_DIR)/io_gen.dart', 54 'io_dart': '<(gen_source_dir)/io_gen.dart',
52 }, 55 },
53 'sources': [ 56 'sources': [
54 'io.dart', 57 'io.dart',
55 ], 58 ],
56 'includes': [ 59 'includes': [
57 '../../sdk/lib/io/iolib_sources.gypi', 60 '../../sdk/lib/io/iolib_sources.gypi',
58 ], 61 ],
59 'actions': [ 62 'actions': [
60 { 63 {
61 'action_name': 'generate_io_dart', 64 'action_name': 'generate_io_dart',
(...skipping 30 matching lines...) Expand all
92 '--var_name', 'Builtin::io_source_', 95 '--var_name', 'Builtin::io_source_',
93 '<(io_dart)', 96 '<(io_dart)',
94 ], 97 ],
95 'message': 'Generating ''<(io_cc_file)'' file.' 98 'message': 'Generating ''<(io_cc_file)'' file.'
96 }, 99 },
97 ] 100 ]
98 }, 101 },
99 { 102 {
100 'target_name': 'generate_io_patch_cc_file', 103 'target_name': 'generate_io_patch_cc_file',
101 'type': 'none', 104 'type': 'none',
105 'toolsets':['target','host'],
102 'includes': [ 106 'includes': [
103 'io_sources.gypi', 107 'io_sources.gypi',
104 ], 108 ],
105 'actions': [ 109 'actions': [
106 { 110 {
107 'action_name': 'generate_io_patch_cc', 111 'action_name': 'generate_io_patch_cc',
108 'inputs': [ 112 'inputs': [
109 '../tools/create_string_literal.py', 113 '../tools/create_string_literal.py',
110 '<(builtin_in_cc_file)', 114 '<(builtin_in_cc_file)',
111 '<@(_sources)', 115 '<@(_sources)',
(...skipping 10 matching lines...) Expand all
122 '--var_name', 'Builtin::io_patch_', 126 '--var_name', 'Builtin::io_patch_',
123 '<@(_sources)', 127 '<@(_sources)',
124 ], 128 ],
125 'message': 'Generating ''<(io_patch_cc_file)'' file.' 129 'message': 'Generating ''<(io_patch_cc_file)'' file.'
126 }, 130 },
127 ] 131 ]
128 }, 132 },
129 { 133 {
130 'target_name': 'libdart_builtin', 134 'target_name': 'libdart_builtin',
131 'type': 'static_library', 135 'type': 'static_library',
136 'toolsets':['target','host'],
132 'dependencies': [ 137 'dependencies': [
133 'generate_builtin_cc_file', 138 'generate_builtin_cc_file',
134 'generate_io_cc_file', 139 'generate_io_cc_file',
135 'generate_io_patch_cc_file', 140 'generate_io_patch_cc_file',
136 ], 141 ],
137 'include_dirs': [ 142 'include_dirs': [
138 '..', 143 '..',
139 ], 144 ],
140 'sources': [ 145 'sources': [
141 'builtin_natives.cc', 146 'builtin_natives.cc',
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 'CharacterSet': '0', 216 'CharacterSet': '0',
212 }, 217 },
213 }, 218 },
214 }, 219 },
215 }], 220 }],
216 ], 221 ],
217 }, 222 },
218 { 223 {
219 'target_name': 'libdart_withcore', 224 'target_name': 'libdart_withcore',
220 'type': 'static_library', 225 'type': 'static_library',
226 'toolsets':['target','host'],
221 'dependencies': [ 227 'dependencies': [
222 'libdart_lib_withcore', 228 'libdart_lib_withcore',
223 'libdart_vm', 229 'libdart_vm',
224 'libjscre', 230 'libjscre',
225 'libdouble_conversion', 231 'libdouble_conversion',
226 'generate_version_cc_file', 232 'generate_version_cc_file',
227 ], 233 ],
228 'include_dirs': [ 234 'include_dirs': [
229 '..', 235 '..',
230 ], 236 ],
231 'sources': [ 237 'sources': [
232 '../include/dart_api.h', 238 '../include/dart_api.h',
233 '../include/dart_debugger_api.h', 239 '../include/dart_debugger_api.h',
234 '../vm/dart_api_impl.cc', 240 '../vm/dart_api_impl.cc',
235 '../vm/debugger_api_impl.cc', 241 '../vm/debugger_api_impl.cc',
236 '<(version_cc_file)', 242 '<(version_cc_file)',
237 ], 243 ],
238 'defines': [ 244 'defines': [
239 'DART_SHARED_LIB', 245 'DART_SHARED_LIB',
240 ], 246 ],
241 }, 247 },
242 { 248 {
243 # Completely statically linked binary for generating snapshots. 249 # Completely statically linked binary for generating snapshots.
244 'target_name': 'gen_snapshot', 250 'target_name': 'gen_snapshot',
245 'type': 'executable', 251 'type': 'executable',
252 'toolsets':['host'],
246 'dependencies': [ 253 'dependencies': [
247 'libdart_withcore', 254 'libdart_withcore',
248 'libdart_builtin', 255 'libdart_builtin',
249 ], 256 ],
250 'include_dirs': [ 257 'include_dirs': [
251 '..', 258 '..',
252 ], 259 ],
253 'sources': [ 260 'sources': [
254 'gen_snapshot.cc', 261 'gen_snapshot.cc',
255 # Only looks up native functions in libdart_builtin, not libdart_io. 262 # Only looks up native functions in libdart_builtin, not libdart_io.
(...skipping 13 matching lines...) Expand all
269 'link_settings': { 276 'link_settings': {
270 'libraries': [ '-llog' ], 277 'libraries': [ '-llog' ],
271 }, 278 },
272 }] 279 }]
273 ], 280 ],
274 }, 281 },
275 { 282 {
276 # Generate snapshot bin file. 283 # Generate snapshot bin file.
277 'target_name': 'generate_snapshot_bin', 284 'target_name': 'generate_snapshot_bin',
278 'type': 'none', 285 'type': 'none',
286 'toolsets':['host'],
279 'dependencies': [ 287 'dependencies': [
280 'gen_snapshot', 288 'gen_snapshot#host',
281 ], 289 ],
282 'actions': [ 290 'actions': [
283 { 291 {
284 'action_name': 'generate_snapshot_bin', 292 'action_name': 'generate_snapshot_bin',
285 'inputs': [ 293 'inputs': [
286 '../tools/create_snapshot_bin.py', 294 '../tools/create_snapshot_bin.py',
287 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)gen_snapshot<(EXECUTABLE_SUFFIX) ', 295 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)gen_snapshot<(EXECUTABLE_SUFFIX) ',
288 ], 296 ],
289 'outputs': [ 297 'outputs': [
290 '<(snapshot_bin_file)', 298 '<(snapshot_bin_file)',
291 ], 299 ],
292 'action': [ 300 'action': [
293 'python', 301 'python',
294 'tools/create_snapshot_bin.py', 302 'tools/create_snapshot_bin.py',
295 '--executable', 303 '--executable',
296 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)gen_snapshot<(EXECUTABLE_SUFFIX) ', 304 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)gen_snapshot<(EXECUTABLE_SUFFIX) ',
297 '--output_bin', '<(snapshot_bin_file)', 305 '--output_bin', '<(snapshot_bin_file)',
298 '--target_os', '<(OS)' 306 '--target_os', '<(OS)'
299 ], 307 ],
300 'message': 'Generating ''<(snapshot_bin_file)'' file.' 308 'message': 'Generating ''<(snapshot_bin_file)'' file.'
301 }, 309 },
302 ], 310 ],
303 }, 311 },
304 { 312 {
305 # Generate snapshot file. 313 # Generate snapshot file.
306 'target_name': 'generate_snapshot_file', 314 'target_name': 'generate_snapshot_file',
307 'type': 'none', 315 'type': 'none',
316 'toolsets':['host'],
308 'dependencies': [ 317 'dependencies': [
309 'generate_snapshot_bin', 318 'generate_snapshot_bin#host',
310 ], 319 ],
311 'actions': [ 320 'actions': [
312 { 321 {
313 'action_name': 'generate_snapshot_file', 322 'action_name': 'generate_snapshot_file',
314 'inputs': [ 323 'inputs': [
315 '../tools/create_snapshot_file.py', 324 '../tools/create_snapshot_file.py',
316 '<(snapshot_in_cc_file)', 325 '<(snapshot_in_cc_file)',
317 '<(snapshot_bin_file)' 326 '<(snapshot_bin_file)'
318 ], 327 ],
319 'outputs': [ 328 'outputs': [
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 ] 367 ]
359 }, 368 },
360 { 369 {
361 # dart binary with a snapshot of corelibs built in. 370 # dart binary with a snapshot of corelibs built in.
362 'target_name': 'dart', 371 'target_name': 'dart',
363 'type': 'executable', 372 'type': 'executable',
364 'dependencies': [ 373 'dependencies': [
365 'libdart', 374 'libdart',
366 'libdart_builtin', 375 'libdart_builtin',
367 'libdart_io', 376 'libdart_io',
368 'generate_snapshot_file', 377 'generate_snapshot_file#host',
369 'generate_resources_cc_file', 378 'generate_resources_cc_file',
370 ], 379 ],
371 'include_dirs': [ 380 'include_dirs': [
372 '..', 381 '..',
373 ], 382 ],
374 'sources': [ 383 'sources': [
375 'main.cc', 384 'main.cc',
376 'builtin_nolib.cc', 385 'builtin_nolib.cc',
377 'resources.h', 386 'resources.h',
378 'vmstats.h', 387 'vmstats.h',
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 'target_name': 'run_vm_tests', 472 'target_name': 'run_vm_tests',
464 'type': 'executable', 473 'type': 'executable',
465 'dependencies': [ 474 'dependencies': [
466 'libdart_withcore', 475 'libdart_withcore',
467 'libdart_builtin', 476 'libdart_builtin',
468 'libdart_io', 477 'libdart_io',
469 'generate_snapshot_test_dat_file', 478 'generate_snapshot_test_dat_file',
470 ], 479 ],
471 'include_dirs': [ 480 'include_dirs': [
472 '..', 481 '..',
473 '<(SHARED_INTERMEDIATE_DIR)', 482 '<(gen_source_dir)',
474 ], 483 ],
475 'sources': [ 484 'sources': [
476 'run_vm_tests.cc', 485 'run_vm_tests.cc',
477 'builtin.cc', 486 'builtin.cc',
478 # Include generated source files. 487 # Include generated source files.
479 '<(builtin_cc_file)', 488 '<(builtin_cc_file)',
480 '<(io_cc_file)', 489 '<(io_cc_file)',
481 '<(io_patch_cc_file)', 490 '<(io_patch_cc_file)',
482 ], 491 ],
483 'includes': [ 492 'includes': [
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 ['OS=="linux"', { 547 ['OS=="linux"', {
539 'cflags': [ 548 'cflags': [
540 '-fPIC', 549 '-fPIC',
541 ], 550 ],
542 }], 551 }],
543 ], 552 ],
544 }, 553 },
545 ], 554 ],
546 } 555 }
547 556
OLDNEW
« no previous file with comments | « no previous file | runtime/dart-runtime.gyp » ('j') | tools/build.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698