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

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

Issue 10823209: Add support for building the Dart VM for Android OS. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix Directory::CreateTemp("") to work on Android. Also fix platform_test.dart to know about Android… Created 8 years, 4 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 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 'crypto_cc_file': '<(SHARED_INTERMEDIATE_DIR)/crypto_gen.cc', 7 'crypto_cc_file': '<(SHARED_INTERMEDIATE_DIR)/crypto_gen.cc',
8 'io_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_gen.cc', 8 'io_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_gen.cc',
9 'json_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_gen.cc', 9 'json_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_gen.cc',
10 'uri_cc_file': '<(SHARED_INTERMEDIATE_DIR)/uri_gen.cc', 10 'uri_cc_file': '<(SHARED_INTERMEDIATE_DIR)/uri_gen.cc',
(...skipping 27 matching lines...) Expand all
38 'python', 38 'python',
39 'tools/create_string_literal.py', 39 'tools/create_string_literal.py',
40 '--output', '<(builtin_cc_file)', 40 '--output', '<(builtin_cc_file)',
41 '--input_cc', '<(builtin_in_cc_file)', 41 '--input_cc', '<(builtin_in_cc_file)',
42 '--include', 'bin/builtin.h', 42 '--include', 'bin/builtin.h',
43 '--var_name', 'Builtin::builtin_source_', 43 '--var_name', 'Builtin::builtin_source_',
44 '<@(_sources)', 44 '<@(_sources)',
45 ], 45 ],
46 'message': 'Generating ''<(builtin_cc_file)'' file.' 46 'message': 'Generating ''<(builtin_cc_file)'' file.'
47 }, 47 },
48 ] 48 ],
ahe 2012/08/08 19:09:58 While I appreciate the consistency, I'd like to ke
jackpal 2012/08/09 01:09:48 Done.
49 }, 49 },
50 { 50 {
51 'target_name': 'generate_crypto_cc_file', 51 'target_name': 'generate_crypto_cc_file',
52 'type': 'none', 52 'type': 'none',
53 'includes': [ 53 'includes': [
54 'crypto_sources.gypi', 54 'crypto_sources.gypi',
55 ], 55 ],
56 'actions': [ 56 'actions': [
57 { 57 {
58 'action_name': 'generate_crypto_cc', 58 'action_name': 'generate_crypto_cc',
59 'inputs': [ 59 'inputs': [
60 '../tools/create_string_literal.py', 60 '../tools/create_string_literal.py',
61 '<(builtin_in_cc_file)', 61 '<(builtin_in_cc_file)',
62 '<@(_sources)', 62 '<@(_sources)',
63 ], 63 ],
64 'outputs': [ 64 'outputs': [
65 '<(crypto_cc_file)', 65 '<(crypto_cc_file)',
66 ], 66 ],
67 'action': [ 67 'action': [
68 'python', 68 'python',
69 'tools/create_string_literal.py', 69 'tools/create_string_literal.py',
70 '--output', '<(crypto_cc_file)', 70 '--output', '<(crypto_cc_file)',
71 '--input_cc', '<(builtin_in_cc_file)', 71 '--input_cc', '<(builtin_in_cc_file)',
72 '--include', 'bin/builtin.h', 72 '--include', 'bin/builtin.h',
73 '--var_name', 'Builtin::crypto_source_', 73 '--var_name', 'Builtin::crypto_source_',
74 '<@(_sources)', 74 '<@(_sources)',
75 ], 75 ],
76 'message': 'Generating ''<(crypto_cc_file)'' file.' 76 'message': 'Generating ''<(crypto_cc_file)'' file.'
77 }, 77 },
78 ] 78 ],
79 }, 79 },
80 { 80 {
81 'target_name': 'generate_io_cc_file', 81 'target_name': 'generate_io_cc_file',
82 'type': 'none', 82 'type': 'none',
83 'includes': [ 83 'includes': [
84 'io_sources.gypi', 84 'io_sources.gypi',
85 ], 85 ],
86 'actions': [ 86 'actions': [
87 { 87 {
88 'action_name': 'generate_io_cc', 88 'action_name': 'generate_io_cc',
89 'inputs': [ 89 'inputs': [
90 '../tools/create_string_literal.py', 90 '../tools/create_string_literal.py',
91 '<(builtin_in_cc_file)', 91 '<(builtin_in_cc_file)',
92 '<@(_sources)', 92 '<@(_sources)',
93 ], 93 ],
94 'outputs': [ 94 'outputs': [
95 '<(io_cc_file)', 95 '<(io_cc_file)',
96 ], 96 ],
97 'action': [ 97 'action': [
98 'python', 98 'python',
99 'tools/create_string_literal.py', 99 'tools/create_string_literal.py',
100 '--output', '<(io_cc_file)', 100 '--output', '<(io_cc_file)',
101 '--input_cc', '<(builtin_in_cc_file)', 101 '--input_cc', '<(builtin_in_cc_file)',
102 '--include', 'bin/builtin.h', 102 '--include', 'bin/builtin.h',
103 '--var_name', 'Builtin::io_source_', 103 '--var_name', 'Builtin::io_source_',
104 '<@(_sources)', 104 '<@(_sources)',
105 ], 105 ],
106 'message': 'Generating ''<(io_cc_file)'' file.' 106 'message': 'Generating ''<(io_cc_file)'' file.'
107 }, 107 },
108 ] 108 ],
109 }, 109 },
110 { 110 {
111 'target_name': 'generate_json_cc_file', 111 'target_name': 'generate_json_cc_file',
112 'type': 'none', 112 'type': 'none',
113 'includes': [ 113 'includes': [
114 'json_sources.gypi', 114 'json_sources.gypi',
115 ], 115 ],
116 'actions': [ 116 'actions': [
117 { 117 {
118 'action_name': 'generate_json_cc', 118 'action_name': 'generate_json_cc',
119 'inputs': [ 119 'inputs': [
120 '../tools/create_string_literal.py', 120 '../tools/create_string_literal.py',
121 '<(builtin_in_cc_file)', 121 '<(builtin_in_cc_file)',
122 '<@(_sources)', 122 '<@(_sources)',
123 ], 123 ],
124 'outputs': [ 124 'outputs': [
125 '<(json_cc_file)', 125 '<(json_cc_file)',
126 ], 126 ],
127 'action': [ 127 'action': [
128 'python', 128 'python',
129 'tools/create_string_literal.py', 129 'tools/create_string_literal.py',
130 '--output', '<(json_cc_file)', 130 '--output', '<(json_cc_file)',
131 '--input_cc', '<(builtin_in_cc_file)', 131 '--input_cc', '<(builtin_in_cc_file)',
132 '--include', 'bin/builtin.h', 132 '--include', 'bin/builtin.h',
133 '--var_name', 'Builtin::json_source_', 133 '--var_name', 'Builtin::json_source_',
134 '<@(_sources)', 134 '<@(_sources)',
135 ], 135 ],
136 'message': 'Generating ''<(json_cc_file)'' file.' 136 'message': 'Generating ''<(json_cc_file)'' file.'
137 }, 137 },
138 ] 138 ],
139 }, 139 },
140 { 140 {
141 'target_name': 'generate_uri_cc_file', 141 'target_name': 'generate_uri_cc_file',
142 'type': 'none', 142 'type': 'none',
143 'includes': [ 143 'includes': [
144 'uri_sources.gypi', 144 'uri_sources.gypi',
145 ], 145 ],
146 'variables': { 146 'variables': {
147 'uri_dart': '<(SHARED_INTERMEDIATE_DIR)/uri.dart', 147 'uri_dart': '<(SHARED_INTERMEDIATE_DIR)/uri.dart',
148 }, 148 },
(...skipping 28 matching lines...) Expand all
177 'python', 177 'python',
178 'tools/create_string_literal.py', 178 'tools/create_string_literal.py',
179 '--output', '<(uri_cc_file)', 179 '--output', '<(uri_cc_file)',
180 '--input_cc', '<(builtin_in_cc_file)', 180 '--input_cc', '<(builtin_in_cc_file)',
181 '--include', 'bin/builtin.h', 181 '--include', 'bin/builtin.h',
182 '--var_name', 'Builtin::uri_source_', 182 '--var_name', 'Builtin::uri_source_',
183 '<(uri_dart)', 183 '<(uri_dart)',
184 ], 184 ],
185 'message': 'Generating ''<(uri_cc_file)'' file.' 185 'message': 'Generating ''<(uri_cc_file)'' file.'
186 }, 186 },
187 ] 187 ],
188 }, 188 },
189 { 189 {
190 'target_name': 'generate_utf_cc_file', 190 'target_name': 'generate_utf_cc_file',
191 'type': 'none', 191 'type': 'none',
192 'includes': [ 192 'includes': [
193 'utf_sources.gypi', 193 'utf_sources.gypi',
194 ], 194 ],
195 'actions': [ 195 'actions': [
196 { 196 {
197 'action_name': 'generate_utf_cc', 197 'action_name': 'generate_utf_cc',
198 'inputs': [ 198 'inputs': [
199 '../tools/create_string_literal.py', 199 '../tools/create_string_literal.py',
200 '<(builtin_in_cc_file)', 200 '<(builtin_in_cc_file)',
201 '<@(_sources)', 201 '<@(_sources)',
202 ], 202 ],
203 'outputs': [ 203 'outputs': [
204 '<(utf_cc_file)', 204 '<(utf_cc_file)',
205 ], 205 ],
206 'action': [ 206 'action': [
207 'python', 207 'python',
208 'tools/create_string_literal.py', 208 'tools/create_string_literal.py',
209 '--output', '<(utf_cc_file)', 209 '--output', '<(utf_cc_file)',
210 '--input_cc', '<(builtin_in_cc_file)', 210 '--input_cc', '<(builtin_in_cc_file)',
211 '--include', 'bin/builtin.h', 211 '--include', 'bin/builtin.h',
212 '--var_name', 'Builtin::utf_source_', 212 '--var_name', 'Builtin::utf_source_',
213 '<@(_sources)', 213 '<@(_sources)',
214 ], 214 ],
215 'message': 'Generating ''<(utf_cc_file)'' file.' 215 'message': 'Generating ''<(utf_cc_file)'' file.'
216 }, 216 },
217 ] 217 ],
218 }, 218 },
219 { 219 {
220 'target_name': 'generate_web_cc_file', 220 'target_name': 'generate_web_cc_file',
221 'type': 'none', 221 'type': 'none',
222 'includes': [ 222 'includes': [
223 'web_sources.gypi', 223 'web_sources.gypi',
224 ], 224 ],
225 'actions': [ 225 'actions': [
226 { 226 {
227 'action_name': 'generate_web_cc', 227 'action_name': 'generate_web_cc',
228 'inputs': [ 228 'inputs': [
229 '../tools/create_string_literal.py', 229 '../tools/create_string_literal.py',
230 '<(builtin_in_cc_file)', 230 '<(builtin_in_cc_file)',
231 '<@(_sources)', 231 '<@(_sources)',
232 ], 232 ],
233 'outputs': [ 233 'outputs': [
234 '<(web_cc_file)', 234 '<(web_cc_file)',
235 ], 235 ],
236 'action': [ 236 'action': [
237 'python', 237 'python',
238 'tools/create_string_literal.py', 238 'tools/create_string_literal.py',
239 '--output', '<(web_cc_file)', 239 '--output', '<(web_cc_file)',
240 '--input_cc', '<(builtin_in_cc_file)', 240 '--input_cc', '<(builtin_in_cc_file)',
241 '--include', 'bin/builtin.h', 241 '--include', 'bin/builtin.h',
242 '--var_name', 'Builtin::web_source_', 242 '--var_name', 'Builtin::web_source_',
243 '<@(_sources)', 243 '<@(_sources)',
244 ], 244 ],
245 'message': 'Generating ''<(web_cc_file)'' file.' 245 'message': 'Generating ''<(web_cc_file)'' file.'
246 }, 246 },
247 ] 247 ],
248 }, 248 },
249 { 249 {
250 'target_name': 'libdart_builtin', 250 'target_name': 'libdart_builtin',
251 'type': 'static_library', 251 'type': 'static_library',
252 'dependencies': [ 252 'dependencies': [
253 'generate_builtin_cc_file', 253 'generate_builtin_cc_file',
254 'generate_crypto_cc_file', 254 'generate_crypto_cc_file',
255 'generate_io_cc_file', 255 'generate_io_cc_file',
256 'generate_json_cc_file', 256 'generate_json_cc_file',
257 'generate_uri_cc_file', 257 'generate_uri_cc_file',
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 '<(json_cc_file)', 339 '<(json_cc_file)',
340 '<(uri_cc_file)', 340 '<(uri_cc_file)',
341 '<(utf_cc_file)', 341 '<(utf_cc_file)',
342 '<(web_cc_file)', 342 '<(web_cc_file)',
343 ], 343 ],
344 'conditions': [ 344 'conditions': [
345 ['OS=="win"', { 345 ['OS=="win"', {
346 'link_settings': { 346 'link_settings': {
347 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], 347 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ],
348 }, 348 },
349 }]], 349 }],
350 ],
351 },
352 {
353 # Generate snapshot bin file.
354 'target_name': 'generate_snapshot_bin',
355 'type': 'none',
356 'dependencies': [
357 'gen_snapshot',
358 ],
359 'actions': [
360 {
361 'action_name': 'generate_snapshot_bin',
362 'inputs': [
363 '../tools/create_snapshot_bin.py',
ahe 2012/08/08 19:09:58 Why is there a .. here?
jackpal 2012/08/09 01:09:48 Experimenting with variations shows that .. is def
364 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)gen_snapshot<(EXECUTABLE_SUFFIX) ',
365 ],
366 'outputs': [
367 '<(snapshot_bin_file)',
368 ],
369 'action': [
370 'python',
371 'tools/create_snapshot_bin.py',
ahe 2012/08/08 19:09:58 And not here?
jackpal 2012/08/09 01:09:48 See above.
372 '--executable', '<(PRODUCT_DIR)/gen_snapshot',
ahe 2012/08/08 19:09:58 This doesn't correspond to the value in inputs.
jackpal 2012/08/09 01:09:48 See above.
373 '--output_bin', '<(snapshot_bin_file)',
374 '--target_os', '<(OS)'
375 ],
376 'message': 'Generating ''<(snapshot_bin_file)'' file.'
377 },
378 ],
350 }, 379 },
351 { 380 {
352 # Generate snapshot file. 381 # Generate snapshot file.
353 'target_name': 'generate_snapshot_file', 382 'target_name': 'generate_snapshot_file',
354 'type': 'none', 383 'type': 'none',
355 'dependencies': [ 384 'dependencies': [
356 'gen_snapshot', 385 'generate_snapshot_bin',
357 ], 386 ],
358 'actions': [ 387 'actions': [
359 { 388 {
360 'action_name': 'generate_snapshot_file', 389 'action_name': 'generate_snapshot_file',
361 'inputs': [ 390 'inputs': [
362 '../tools/create_snapshot_file.py', 391 '../tools/create_snapshot_file.py',
363 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)gen_snapshot<(EXECUTABLE_SUFFIX) ',
364 '<(snapshot_in_cc_file)', 392 '<(snapshot_in_cc_file)',
393 '<(snapshot_bin_file)'
365 ], 394 ],
366 'outputs': [ 395 'outputs': [
367 '<(snapshot_cc_file)', 396 '<(snapshot_cc_file)',
368 ], 397 ],
369 'action': [ 398 'action': [
370 'python', 399 'python',
371 'tools/create_snapshot_file.py', 400 'tools/create_snapshot_file.py',
372 '--executable', '<(PRODUCT_DIR)/gen_snapshot', 401 '--input_bin', '<(snapshot_bin_file)',
373 '--output_bin', '<(snapshot_bin_file)',
374 '--input_cc', '<(snapshot_in_cc_file)', 402 '--input_cc', '<(snapshot_in_cc_file)',
375 '--output', '<(snapshot_cc_file)', 403 '--output', '<(snapshot_cc_file)',
376 ], 404 ],
377 'message': 'Generating ''<(snapshot_cc_file)'' file.' 405 'message': 'Generating ''<(snapshot_cc_file)'' file.'
378 }, 406 },
379 ] 407 ],
380 }, 408 },
381 { 409 {
382 # dart binary with a snapshot of corelibs built in. 410 # dart binary with a snapshot of corelibs built in.
383 'target_name': 'dart', 411 'target_name': 'dart',
384 'type': 'executable', 412 'type': 'executable',
385 'dependencies': [ 413 'dependencies': [
386 'libdart_export', 414 'libdart_export',
387 'libdart_builtin', 415 'libdart_builtin',
388 'generate_snapshot_file', 416 'generate_snapshot_file',
389 ], 417 ],
(...skipping 11 matching lines...) Expand all
401 'link_settings': { 429 'link_settings': {
402 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], 430 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ],
403 }, 431 },
404 # Generate an import library on Windows, by exporting a function. 432 # Generate an import library on Windows, by exporting a function.
405 # Extensions use this import library to link to the API in dart.exe. 433 # Extensions use this import library to link to the API in dart.exe.
406 'msvs_settings': { 434 'msvs_settings': {
407 'VCLinkerTool': { 435 'VCLinkerTool': {
408 'AdditionalOptions': [ '/EXPORT:Dart_True' ], 436 'AdditionalOptions': [ '/EXPORT:Dart_True' ],
409 }, 437 },
410 }, 438 },
411 }], 439 }]
412 ], 440 ],
413 }, 441 },
414 { 442 {
415 # dart binary without any snapshot built in. 443 # dart binary without any snapshot built in.
416 'target_name': 'dart_no_snapshot', 444 'target_name': 'dart_no_snapshot',
417 'type': 'executable', 445 'type': 'executable',
418 'dependencies': [ 446 'dependencies': [
419 'libdart_withcore', 447 'libdart_withcore',
420 'libdart_builtin', 448 'libdart_builtin',
421 ], 449 ],
(...skipping 18 matching lines...) Expand all
440 'link_settings': { 468 'link_settings': {
441 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], 469 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ],
442 }, 470 },
443 }]], 471 }]],
444 }, 472 },
445 { 473 {
446 'target_name': 'process_test', 474 'target_name': 'process_test',
447 'type': 'executable', 475 'type': 'executable',
448 'sources': [ 476 'sources': [
449 'process_test.cc', 477 'process_test.cc',
450 ] 478 ],
479 'conditions': [
Søren Gjesse 2012/08/08 11:35:56 Only use 2 space indentation here.
jackpal 2012/08/09 01:09:48 Fixed by removing this code (which was left in by
480 ['dart_want_separate_host_toolset==1', {
481 'toolsets': ['host'],
482 }, {
483 'toolsets': ['target'],
484 }]
485 ],
451 }, 486 },
452 { 487 {
453 'target_name': 'run_vm_tests', 488 'target_name': 'run_vm_tests',
454 'type': 'executable', 489 'type': 'executable',
455 'dependencies': [ 490 'dependencies': [
456 'libdart_withcore', 491 'libdart_withcore',
457 'libdart_builtin', 492 'libdart_builtin',
458 'generate_snapshot_test_dat_file', 493 'generate_snapshot_test_dat_file',
459 ], 494 ],
460 'include_dirs': [ 495 'include_dirs': [
(...skipping 27 matching lines...) Expand all
488 ['include', 'builtin.cc'], 523 ['include', 'builtin.cc'],
489 ['include', '_gen\\.cc$'], 524 ['include', '_gen\\.cc$'],
490 ['include', '_test\\.(cc|h)$'], 525 ['include', '_test\\.(cc|h)$'],
491 ], 526 ],
492 'conditions': [ 527 'conditions': [
493 ['OS=="win"', { 528 ['OS=="win"', {
494 'link_settings': { 529 'link_settings': {
495 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], 530 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ],
496 }, 531 },
497 }], 532 }],
533 ['dart_want_separate_host_toolset==1', {
Søren Gjesse 2012/08/08 11:35:56 Indentation.
jackpal 2012/08/09 01:09:48 Fixed by removing this code (which was left in by
534 'toolsets': ['host'],
535 }, {
536 'toolsets': ['target'],
537 }],
498 ], 538 ],
499 }, 539 },
500 { 540 {
501 'target_name': 'test_extension', 541 'target_name': 'test_extension',
502 'type': 'shared_library', 542 'type': 'shared_library',
503 'dependencies': [ 543 'dependencies': [
504 'dart', 544 'dart',
505 ], 545 ],
506 'include_dirs': [ 546 'include_dirs': [
507 '..', 547 '..',
(...skipping 12 matching lines...) Expand all
520 'AdditionalDependencies': [ 'dart.lib' ], 560 'AdditionalDependencies': [ 'dart.lib' ],
521 'AdditionalLibraryDirectories': [ '<(PRODUCT_DIR)' ], 561 'AdditionalLibraryDirectories': [ '<(PRODUCT_DIR)' ],
522 }, 562 },
523 }, 563 },
524 }], 564 }],
525 ['OS=="mac"', { 565 ['OS=="mac"', {
526 'xcode_settings': { 566 'xcode_settings': {
527 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], 567 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ],
528 }, 568 },
529 }], 569 }],
570 ['dart_want_separate_host_toolset==1', {
Søren Gjesse 2012/08/08 11:35:56 Ditto.
jackpal 2012/08/09 01:09:48 Fixed by removing this code (which was left in by
571 'toolsets': ['host'],
572 }, {
573 'toolsets': ['target'],
574 }],
530 ], 575 ],
531 }, 576 },
532 ], 577 ],
533 } 578 }
534 579
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698