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 'gen_source_dir': '<(SHARED_INTERMEDIATE_DIR)', | 7 'gen_source_dir': '<(SHARED_INTERMEDIATE_DIR)', |
8 'libgen_in_cc_file': '../lib/libgen_in.cc', | 8 'libgen_in_cc_file': '../lib/libgen_in.cc', |
9 'builtin_in_cc_file': '../bin/builtin_in.cc', | 9 'builtin_in_cc_file': '../bin/builtin_in.cc', |
10 'async_cc_file': '<(gen_source_dir)/async_gen.cc', | 10 'async_cc_file': '<(gen_source_dir)/async_gen.cc', |
11 'async_patch_cc_file': '<(gen_source_dir)/async_patch_gen.cc', | 11 'async_patch_cc_file': '<(gen_source_dir)/async_patch_gen.cc', |
12 'corelib_cc_file': '<(gen_source_dir)/corelib_gen.cc', | 12 'corelib_cc_file': '<(gen_source_dir)/corelib_gen.cc', |
13 'corelib_patch_cc_file': '<(gen_source_dir)/corelib_patch_gen.cc', | 13 'corelib_patch_cc_file': '<(gen_source_dir)/corelib_patch_gen.cc', |
14 'collection_cc_file': '<(gen_source_dir)/collection_gen.cc', | 14 'collection_cc_file': '<(gen_source_dir)/collection_gen.cc', |
15 'collection_patch_cc_file': '<(gen_source_dir)/collection_patch_gen.cc', | 15 'collection_patch_cc_file': '<(gen_source_dir)/collection_patch_gen.cc', |
16 'collection_dev_cc_file': '<(gen_source_dir)/collection_dev_gen.cc', | 16 'collection_dev_cc_file': '<(gen_source_dir)/collection_dev_gen.cc', |
17 'collection_dev_patch_cc_file': '<(gen_source_dir)/collection_dev_patch_gen.
cc', | 17 'collection_dev_patch_cc_file': '<(gen_source_dir)/collection_dev_patch_gen.
cc', |
18 'convert_cc_file': '<(gen_source_dir)/convert_gen.cc', | 18 'convert_cc_file': '<(gen_source_dir)/convert_gen.cc', |
| 19 'convert_patch_cc_file': '<(gen_source_dir)/convert_patch_gen.cc', |
19 'math_cc_file': '<(gen_source_dir)/math_gen.cc', | 20 'math_cc_file': '<(gen_source_dir)/math_gen.cc', |
20 'math_patch_cc_file': '<(gen_source_dir)/math_patch_gen.cc', | 21 'math_patch_cc_file': '<(gen_source_dir)/math_patch_gen.cc', |
21 'mirrors_cc_file': '<(gen_source_dir)/mirrors_gen.cc', | 22 'mirrors_cc_file': '<(gen_source_dir)/mirrors_gen.cc', |
22 'mirrors_patch_cc_file': '<(gen_source_dir)/mirrors_patch_gen.cc', | 23 'mirrors_patch_cc_file': '<(gen_source_dir)/mirrors_patch_gen.cc', |
23 'isolate_cc_file': '<(gen_source_dir)/isolate_gen.cc', | 24 'isolate_cc_file': '<(gen_source_dir)/isolate_gen.cc', |
24 'isolate_patch_cc_file': '<(gen_source_dir)/isolate_patch_gen.cc', | 25 'isolate_patch_cc_file': '<(gen_source_dir)/isolate_patch_gen.cc', |
25 'json_cc_file': '<(gen_source_dir)/json_gen.cc', | 26 'json_cc_file': '<(gen_source_dir)/json_gen.cc', |
26 'json_patch_cc_file': '<(gen_source_dir)/json_patch_gen.cc', | |
27 'typed_data_cc_file': '<(gen_source_dir)/typed_data_gen.cc', | 27 'typed_data_cc_file': '<(gen_source_dir)/typed_data_gen.cc', |
28 'typed_data_patch_cc_file': '<(gen_source_dir)/typed_data_patch_gen.cc', | 28 'typed_data_patch_cc_file': '<(gen_source_dir)/typed_data_patch_gen.cc', |
29 'utf_cc_file': '<(gen_source_dir)/utf_gen.cc', | 29 'utf_cc_file': '<(gen_source_dir)/utf_gen.cc', |
30 'snapshot_test_dat_file': '<(gen_source_dir)/snapshot_test.dat', | 30 'snapshot_test_dat_file': '<(gen_source_dir)/snapshot_test.dat', |
31 'snapshot_test_in_dat_file': 'snapshot_test_in.dat', | 31 'snapshot_test_in_dat_file': 'snapshot_test_in.dat', |
32 'snapshot_test_dart_file': 'snapshot_test.dart', | 32 'snapshot_test_dart_file': 'snapshot_test.dart', |
33 }, | 33 }, |
34 'targets': [ | 34 'targets': [ |
35 { | 35 { |
36 'target_name': 'libdart_vm', | 36 'target_name': 'libdart_vm', |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 'dependencies': [ | 96 'dependencies': [ |
97 'generate_async_cc_file#host', | 97 'generate_async_cc_file#host', |
98 'generate_async_patch_cc_file#host', | 98 'generate_async_patch_cc_file#host', |
99 'generate_corelib_cc_file#host', | 99 'generate_corelib_cc_file#host', |
100 'generate_corelib_patch_cc_file#host', | 100 'generate_corelib_patch_cc_file#host', |
101 'generate_collection_cc_file#host', | 101 'generate_collection_cc_file#host', |
102 'generate_collection_patch_cc_file#host', | 102 'generate_collection_patch_cc_file#host', |
103 'generate_collection_dev_cc_file#host', | 103 'generate_collection_dev_cc_file#host', |
104 'generate_collection_dev_patch_cc_file#host', | 104 'generate_collection_dev_patch_cc_file#host', |
105 'generate_convert_cc_file#host', | 105 'generate_convert_cc_file#host', |
| 106 'generate_convert_patch_cc_file#host', |
106 'generate_math_cc_file#host', | 107 'generate_math_cc_file#host', |
107 'generate_math_patch_cc_file#host', | 108 'generate_math_patch_cc_file#host', |
108 'generate_isolate_cc_file#host', | 109 'generate_isolate_cc_file#host', |
109 'generate_isolate_patch_cc_file#host', | 110 'generate_isolate_patch_cc_file#host', |
110 'generate_json_cc_file#host', | 111 'generate_json_cc_file#host', |
111 'generate_json_patch_cc_file#host', | |
112 'generate_mirrors_cc_file#host', | 112 'generate_mirrors_cc_file#host', |
113 'generate_mirrors_patch_cc_file#host', | 113 'generate_mirrors_patch_cc_file#host', |
114 'generate_typed_data_cc_file#host', | 114 'generate_typed_data_cc_file#host', |
115 'generate_typed_data_patch_cc_file#host', | 115 'generate_typed_data_patch_cc_file#host', |
116 'generate_utf_cc_file#host', | 116 'generate_utf_cc_file#host', |
117 ], | 117 ], |
118 'includes': [ | 118 'includes': [ |
119 '../lib/async_sources.gypi', | 119 '../lib/async_sources.gypi', |
120 '../lib/collection_sources.gypi', | 120 '../lib/collection_sources.gypi', |
121 '../lib/corelib_sources.gypi', | 121 '../lib/corelib_sources.gypi', |
122 '../lib/isolate_sources.gypi', | 122 '../lib/isolate_sources.gypi', |
123 '../lib/math_sources.gypi', | 123 '../lib/math_sources.gypi', |
124 '../lib/mirrors_sources.gypi', | 124 '../lib/mirrors_sources.gypi', |
125 '../lib/typed_data_sources.gypi', | 125 '../lib/typed_data_sources.gypi', |
126 ], | 126 ], |
127 'sources': [ | 127 'sources': [ |
128 'bootstrap.cc', | 128 'bootstrap.cc', |
129 # Include generated source files. | 129 # Include generated source files. |
130 '<(async_cc_file)', | 130 '<(async_cc_file)', |
131 '<(async_patch_cc_file)', | 131 '<(async_patch_cc_file)', |
132 '<(corelib_cc_file)', | 132 '<(corelib_cc_file)', |
133 '<(corelib_patch_cc_file)', | 133 '<(corelib_patch_cc_file)', |
134 '<(collection_cc_file)', | 134 '<(collection_cc_file)', |
135 '<(collection_patch_cc_file)', | 135 '<(collection_patch_cc_file)', |
136 '<(collection_dev_cc_file)', | 136 '<(collection_dev_cc_file)', |
137 '<(collection_dev_patch_cc_file)', | 137 '<(collection_dev_patch_cc_file)', |
138 '<(convert_cc_file)', | 138 '<(convert_cc_file)', |
| 139 '<(convert_patch_cc_file)', |
139 '<(math_cc_file)', | 140 '<(math_cc_file)', |
140 '<(math_patch_cc_file)', | 141 '<(math_patch_cc_file)', |
141 '<(isolate_cc_file)', | 142 '<(isolate_cc_file)', |
142 '<(isolate_patch_cc_file)', | 143 '<(isolate_patch_cc_file)', |
143 '<(json_cc_file)', | 144 '<(json_cc_file)', |
144 '<(json_patch_cc_file)', | |
145 '<(mirrors_cc_file)', | 145 '<(mirrors_cc_file)', |
146 '<(mirrors_patch_cc_file)', | 146 '<(mirrors_patch_cc_file)', |
147 '<(typed_data_cc_file)', | 147 '<(typed_data_cc_file)', |
148 '<(typed_data_patch_cc_file)', | 148 '<(typed_data_patch_cc_file)', |
149 '<(utf_cc_file)', | 149 '<(utf_cc_file)', |
150 ], | 150 ], |
151 'include_dirs': [ | 151 'include_dirs': [ |
152 '..', | 152 '..', |
153 ], | 153 ], |
154 }, | 154 }, |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 '--include', 'vm/bootstrap.h', | 445 '--include', 'vm/bootstrap.h', |
446 '--var_name', 'dart::Bootstrap::convert_source_paths_', | 446 '--var_name', 'dart::Bootstrap::convert_source_paths_', |
447 '--library_name', 'dart:convert', | 447 '--library_name', 'dart:convert', |
448 '<@(_sources)', | 448 '<@(_sources)', |
449 ], | 449 ], |
450 'message': 'Generating ''<(convert_cc_file)'' file.' | 450 'message': 'Generating ''<(convert_cc_file)'' file.' |
451 }, | 451 }, |
452 ] | 452 ] |
453 }, | 453 }, |
454 { | 454 { |
| 455 'target_name': 'generate_convert_patch_cc_file', |
| 456 'type': 'none', |
| 457 'toolsets':['host'], |
| 458 'includes': [ |
| 459 # Load the shared convert library sources. |
| 460 '../lib/convert_sources.gypi', |
| 461 ], |
| 462 'sources/': [ |
| 463 # Exclude all .[cc|h] files. |
| 464 # This is only here for reference. Excludes happen after |
| 465 # variable expansion, so the script has to do its own |
| 466 # exclude processing of the sources being passed. |
| 467 ['exclude', '\\.cc|h$'], |
| 468 ], |
| 469 'actions': [ |
| 470 { |
| 471 'action_name': 'generate_convert_patch_cc', |
| 472 'inputs': [ |
| 473 '../tools/gen_library_src_paths.py', |
| 474 '<(libgen_in_cc_file)', |
| 475 '<@(_sources)', |
| 476 ], |
| 477 'outputs': [ |
| 478 '<(convert_patch_cc_file)', |
| 479 ], |
| 480 'action': [ |
| 481 'python', |
| 482 'tools/gen_library_src_paths.py', |
| 483 '--output', '<(convert_patch_cc_file)', |
| 484 '--input_cc', '<(libgen_in_cc_file)', |
| 485 '--include', 'vm/bootstrap.h', |
| 486 '--var_name', 'dart::Bootstrap::convert_patch_paths_', |
| 487 '--library_name', 'dart:convert', |
| 488 '<@(_sources)', |
| 489 ], |
| 490 'message': 'Generating ''<(convert_patch_cc_file)'' file.' |
| 491 }, |
| 492 ] |
| 493 }, |
| 494 { |
455 'target_name': 'generate_math_cc_file', | 495 'target_name': 'generate_math_cc_file', |
456 'type': 'none', | 496 'type': 'none', |
457 'toolsets':['host'], | 497 'toolsets':['host'], |
458 'includes': [ | 498 'includes': [ |
459 # Load the shared math library sources. | 499 # Load the shared math library sources. |
460 '../../sdk/lib/math/math_sources.gypi', | 500 '../../sdk/lib/math/math_sources.gypi', |
461 ], | 501 ], |
462 'sources/': [ | 502 'sources/': [ |
463 # Exclude all .[cc|h] files. | 503 # Exclude all .[cc|h] files. |
464 # This is only here for reference. Excludes happen after | 504 # This is only here for reference. Excludes happen after |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
798 '--include', 'vm/bootstrap.h', | 838 '--include', 'vm/bootstrap.h', |
799 '--var_name', 'dart::Bootstrap::json_source_paths_', | 839 '--var_name', 'dart::Bootstrap::json_source_paths_', |
800 '--library_name', 'dart:json', | 840 '--library_name', 'dart:json', |
801 '<@(_sources)', | 841 '<@(_sources)', |
802 ], | 842 ], |
803 'message': 'Generating ''<(json_cc_file)'' file.' | 843 'message': 'Generating ''<(json_cc_file)'' file.' |
804 }, | 844 }, |
805 ] | 845 ] |
806 }, | 846 }, |
807 { | 847 { |
808 'target_name': 'generate_json_patch_cc_file', | |
809 'type': 'none', | |
810 'toolsets':['host'], | |
811 'includes': [ | |
812 # Load the shared json library sources. | |
813 '../lib/json_sources.gypi', | |
814 ], | |
815 'sources/': [ | |
816 # Exclude all .[cc|h] files. | |
817 # This is only here for reference. Excludes happen after | |
818 # variable expansion, so the script has to do its own | |
819 # exclude processing of the sources being passed. | |
820 ['exclude', '\\.cc|h$'], | |
821 ], | |
822 'actions': [ | |
823 { | |
824 'action_name': 'generate_json_patch_cc', | |
825 'inputs': [ | |
826 '../tools/gen_library_src_paths.py', | |
827 '<(libgen_in_cc_file)', | |
828 '<@(_sources)', | |
829 ], | |
830 'outputs': [ | |
831 '<(json_patch_cc_file)', | |
832 ], | |
833 'action': [ | |
834 'python', | |
835 'tools/gen_library_src_paths.py', | |
836 '--output', '<(json_patch_cc_file)', | |
837 '--input_cc', '<(libgen_in_cc_file)', | |
838 '--include', 'vm/bootstrap.h', | |
839 '--var_name', 'dart::Bootstrap::json_patch_paths_', | |
840 '--library_name', 'dart:json', | |
841 '<@(_sources)', | |
842 ], | |
843 'message': 'Generating ''<(json_patch_cc_file)'' file.' | |
844 }, | |
845 ] | |
846 }, | |
847 { | |
848 'target_name': 'generate_typed_data_cc_file', | 848 'target_name': 'generate_typed_data_cc_file', |
849 'type': 'none', | 849 'type': 'none', |
850 'toolsets':['host'], | 850 'toolsets':['host'], |
851 'includes': [ | 851 'includes': [ |
852 # Load the shared library sources. | 852 # Load the shared library sources. |
853 '../../sdk/lib/typed_data/typed_data_sources.gypi', | 853 '../../sdk/lib/typed_data/typed_data_sources.gypi', |
854 ], | 854 ], |
855 'sources/': [ | 855 'sources/': [ |
856 # Exclude all .[cc|h] files. | 856 # Exclude all .[cc|h] files. |
857 # This is only here for reference. Excludes happen after | 857 # This is only here for reference. Excludes happen after |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 '--include', 'INTENTIONALLY_LEFT_BLANK', | 980 '--include', 'INTENTIONALLY_LEFT_BLANK', |
981 '--var_name', 'INTENTIONALLY_LEFT_BLANK_TOO', | 981 '--var_name', 'INTENTIONALLY_LEFT_BLANK_TOO', |
982 '<(snapshot_test_dart_file)', | 982 '<(snapshot_test_dart_file)', |
983 ], | 983 ], |
984 'message': 'Generating ''<(snapshot_test_dat_file)'' file.' | 984 'message': 'Generating ''<(snapshot_test_dat_file)'' file.' |
985 }, | 985 }, |
986 ] | 986 ] |
987 }, | 987 }, |
988 ] | 988 ] |
989 } | 989 } |
OLD | NEW |