OLD | NEW |
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 'io_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_patch_gen.cc', |
9 'json_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_gen.cc', | 10 'json_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_gen.cc', |
10 'uri_cc_file': '<(SHARED_INTERMEDIATE_DIR)/uri_gen.cc', | 11 'uri_cc_file': '<(SHARED_INTERMEDIATE_DIR)/uri_gen.cc', |
11 'utf_cc_file': '<(SHARED_INTERMEDIATE_DIR)/utf_gen.cc', | 12 'utf_cc_file': '<(SHARED_INTERMEDIATE_DIR)/utf_gen.cc', |
12 'builtin_in_cc_file': 'builtin_in.cc', | 13 'builtin_in_cc_file': 'builtin_in.cc', |
13 'builtin_cc_file': '<(SHARED_INTERMEDIATE_DIR)/builtin_gen.cc', | 14 'builtin_cc_file': '<(SHARED_INTERMEDIATE_DIR)/builtin_gen.cc', |
14 'snapshot_in_cc_file': 'snapshot_in.cc', | 15 'snapshot_in_cc_file': 'snapshot_in.cc', |
15 'snapshot_bin_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.bin', | 16 'snapshot_bin_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.bin', |
16 'snapshot_cc_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.cc', | 17 'snapshot_cc_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.cc', |
17 }, | 18 }, |
18 'targets': [ | 19 'targets': [ |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 '--var_name', 'Builtin::crypto_source_', | 73 '--var_name', 'Builtin::crypto_source_', |
73 '<@(_sources)', | 74 '<@(_sources)', |
74 ], | 75 ], |
75 'message': 'Generating ''<(crypto_cc_file)'' file.' | 76 'message': 'Generating ''<(crypto_cc_file)'' file.' |
76 }, | 77 }, |
77 ] | 78 ] |
78 }, | 79 }, |
79 { | 80 { |
80 'target_name': 'generate_io_cc_file', | 81 'target_name': 'generate_io_cc_file', |
81 'type': 'none', | 82 'type': 'none', |
| 83 'sources': [ |
| 84 'io.dart', |
| 85 ], |
82 'includes': [ | 86 'includes': [ |
83 'io_sources.gypi', | 87 '../../lib/io/iolib_sources.gypi', |
84 ], | 88 ], |
85 'actions': [ | 89 'actions': [ |
86 { | 90 { |
87 'action_name': 'generate_io_cc', | 91 'action_name': 'generate_io_cc', |
88 'inputs': [ | 92 'inputs': [ |
89 '../tools/create_string_literal.py', | 93 '../tools/create_string_literal.py', |
90 '<(builtin_in_cc_file)', | 94 '<(builtin_in_cc_file)', |
91 '<@(_sources)', | 95 '<@(_sources)', |
92 ], | 96 ], |
93 'outputs': [ | 97 'outputs': [ |
94 '<(io_cc_file)', | 98 '<(io_cc_file)', |
95 ], | 99 ], |
96 'action': [ | 100 'action': [ |
97 'python', | 101 'python', |
98 'tools/create_string_literal.py', | 102 'tools/create_string_literal.py', |
99 '--output', '<(io_cc_file)', | 103 '--output', '<(io_cc_file)', |
100 '--input_cc', '<(builtin_in_cc_file)', | 104 '--input_cc', '<(builtin_in_cc_file)', |
101 '--include', 'bin/builtin.h', | 105 '--include', 'bin/builtin.h', |
102 '--var_name', 'Builtin::io_source_', | 106 '--var_name', 'Builtin::io_source_', |
103 '<@(_sources)', | 107 '<@(_sources)', |
104 ], | 108 ], |
105 'message': 'Generating ''<(io_cc_file)'' file.' | 109 'message': 'Generating ''<(io_cc_file)'' file.' |
106 }, | 110 }, |
107 ] | 111 ] |
108 }, | 112 }, |
109 { | 113 { |
| 114 'target_name': 'generate_io_patch_cc_file', |
| 115 'type': 'none', |
| 116 'includes': [ |
| 117 'io_sources.gypi', |
| 118 ], |
| 119 'actions': [ |
| 120 { |
| 121 'action_name': 'generate_io_patch_cc', |
| 122 'inputs': [ |
| 123 '../tools/create_string_literal.py', |
| 124 '<(builtin_in_cc_file)', |
| 125 '<@(_sources)', |
| 126 ], |
| 127 'outputs': [ |
| 128 '<(io_patch_cc_file)', |
| 129 ], |
| 130 'action': [ |
| 131 'python', |
| 132 'tools/create_string_literal.py', |
| 133 '--output', '<(io_patch_cc_file)', |
| 134 '--input_cc', '<(builtin_in_cc_file)', |
| 135 '--include', 'bin/builtin.h', |
| 136 '--var_name', 'Builtin::io_patch_', |
| 137 '<@(_sources)', |
| 138 ], |
| 139 'message': 'Generating ''<(io_patch_cc_file)'' file.' |
| 140 }, |
| 141 ] |
| 142 }, |
| 143 { |
110 'target_name': 'generate_json_cc_file', | 144 'target_name': 'generate_json_cc_file', |
111 'type': 'none', | 145 'type': 'none', |
112 'includes': [ | 146 'includes': [ |
113 'json_sources.gypi', | 147 'json_sources.gypi', |
114 ], | 148 ], |
115 'actions': [ | 149 'actions': [ |
116 { | 150 { |
117 'action_name': 'generate_json_cc', | 151 'action_name': 'generate_json_cc', |
118 'inputs': [ | 152 'inputs': [ |
119 '../tools/create_string_literal.py', | 153 '../tools/create_string_literal.py', |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 }, | 249 }, |
216 ] | 250 ] |
217 }, | 251 }, |
218 { | 252 { |
219 'target_name': 'libdart_builtin', | 253 'target_name': 'libdart_builtin', |
220 'type': 'static_library', | 254 'type': 'static_library', |
221 'dependencies': [ | 255 'dependencies': [ |
222 'generate_builtin_cc_file', | 256 'generate_builtin_cc_file', |
223 'generate_crypto_cc_file', | 257 'generate_crypto_cc_file', |
224 'generate_io_cc_file', | 258 'generate_io_cc_file', |
| 259 'generate_io_patch_cc_file', |
225 'generate_json_cc_file', | 260 'generate_json_cc_file', |
226 'generate_uri_cc_file', | 261 'generate_uri_cc_file', |
227 'generate_utf_cc_file', | 262 'generate_utf_cc_file', |
228 ], | 263 ], |
229 'include_dirs': [ | 264 'include_dirs': [ |
230 '..', | 265 '..', |
231 ], | 266 ], |
232 'sources': [ | 267 'sources': [ |
233 'builtin_natives.cc', | 268 'builtin_natives.cc', |
234 'builtin.h', | 269 'builtin.h', |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 'include_dirs': [ | 334 'include_dirs': [ |
300 '..', | 335 '..', |
301 ], | 336 ], |
302 'sources': [ | 337 'sources': [ |
303 'gen_snapshot.cc', | 338 'gen_snapshot.cc', |
304 'builtin.cc', | 339 'builtin.cc', |
305 # Include generated source files. | 340 # Include generated source files. |
306 '<(builtin_cc_file)', | 341 '<(builtin_cc_file)', |
307 '<(crypto_cc_file)', | 342 '<(crypto_cc_file)', |
308 '<(io_cc_file)', | 343 '<(io_cc_file)', |
| 344 '<(io_patch_cc_file)', |
309 '<(json_cc_file)', | 345 '<(json_cc_file)', |
310 '<(uri_cc_file)', | 346 '<(uri_cc_file)', |
311 '<(utf_cc_file)', | 347 '<(utf_cc_file)', |
312 ], | 348 ], |
313 'conditions': [ | 349 'conditions': [ |
314 ['OS=="win"', { | 350 ['OS=="win"', { |
315 'link_settings': { | 351 'link_settings': { |
316 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 352 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
317 }, | 353 }, |
318 }]], | 354 }]], |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 'include_dirs': [ | 454 'include_dirs': [ |
419 '..', | 455 '..', |
420 ], | 456 ], |
421 'sources': [ | 457 'sources': [ |
422 'main.cc', | 458 'main.cc', |
423 'builtin.cc', | 459 'builtin.cc', |
424 # Include generated source files. | 460 # Include generated source files. |
425 '<(builtin_cc_file)', | 461 '<(builtin_cc_file)', |
426 '<(crypto_cc_file)', | 462 '<(crypto_cc_file)', |
427 '<(io_cc_file)', | 463 '<(io_cc_file)', |
| 464 '<(io_patch_cc_file)', |
428 '<(json_cc_file)', | 465 '<(json_cc_file)', |
429 '<(uri_cc_file)', | 466 '<(uri_cc_file)', |
430 '<(utf_cc_file)', | 467 '<(utf_cc_file)', |
431 'snapshot_empty.cc', | 468 'snapshot_empty.cc', |
432 ], | 469 ], |
433 'conditions': [ | 470 'conditions': [ |
434 ['OS=="win"', { | 471 ['OS=="win"', { |
435 'link_settings': { | 472 'link_settings': { |
436 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 473 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
437 }, | 474 }, |
(...skipping 18 matching lines...) Expand all Loading... |
456 '..', | 493 '..', |
457 '<(SHARED_INTERMEDIATE_DIR)', | 494 '<(SHARED_INTERMEDIATE_DIR)', |
458 ], | 495 ], |
459 'sources': [ | 496 'sources': [ |
460 'run_vm_tests.cc', | 497 'run_vm_tests.cc', |
461 'builtin.cc', | 498 'builtin.cc', |
462 # Include generated source files. | 499 # Include generated source files. |
463 '<(builtin_cc_file)', | 500 '<(builtin_cc_file)', |
464 '<(crypto_cc_file)', | 501 '<(crypto_cc_file)', |
465 '<(io_cc_file)', | 502 '<(io_cc_file)', |
| 503 '<(io_patch_cc_file)', |
466 '<(json_cc_file)', | 504 '<(json_cc_file)', |
467 '<(uri_cc_file)', | 505 '<(uri_cc_file)', |
468 '<(utf_cc_file)', | 506 '<(utf_cc_file)', |
469 ], | 507 ], |
470 'includes': [ | 508 'includes': [ |
471 'builtin_impl_sources.gypi', | 509 'builtin_impl_sources.gypi', |
472 '../platform/platform_sources.gypi', | 510 '../platform/platform_sources.gypi', |
473 '../vm/vm_sources.gypi', | 511 '../vm/vm_sources.gypi', |
474 ], | 512 ], |
475 'defines': [ | 513 'defines': [ |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 ['OS=="mac"', { | 557 ['OS=="mac"', { |
520 'xcode_settings': { | 558 'xcode_settings': { |
521 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], | 559 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], |
522 }, | 560 }, |
523 }], | 561 }], |
524 ], | 562 ], |
525 }, | 563 }, |
526 ], | 564 ], |
527 } | 565 } |
528 | 566 |
OLD | NEW |