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 'builtin_in_cc_file': '../bin/builtin_in.cc', | 7 'builtin_in_cc_file': '../bin/builtin_in.cc', |
| 8 'async_cc_file': '<(SHARED_INTERMEDIATE_DIR)/async_gen.cc', |
| 9 'async_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/async_patch_gen.cc', |
8 'corelib_cc_file': '<(SHARED_INTERMEDIATE_DIR)/corelib_gen.cc', | 10 'corelib_cc_file': '<(SHARED_INTERMEDIATE_DIR)/corelib_gen.cc', |
9 'corelib_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/corelib_patch_gen.cc', | 11 'corelib_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/corelib_patch_gen.cc', |
10 'collection_cc_file': '<(SHARED_INTERMEDIATE_DIR)/collection_gen.cc', | 12 'collection_cc_file': '<(SHARED_INTERMEDIATE_DIR)/collection_gen.cc', |
11 'math_cc_file': '<(SHARED_INTERMEDIATE_DIR)/math_gen.cc', | 13 'math_cc_file': '<(SHARED_INTERMEDIATE_DIR)/math_gen.cc', |
12 'math_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/math_patch_gen.cc', | 14 'math_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/math_patch_gen.cc', |
13 'mirrors_cc_file': '<(SHARED_INTERMEDIATE_DIR)/mirrors_gen.cc', | 15 'mirrors_cc_file': '<(SHARED_INTERMEDIATE_DIR)/mirrors_gen.cc', |
14 'mirrors_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/mirrors_patch_gen.cc', | 16 'mirrors_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/mirrors_patch_gen.cc', |
15 'isolate_cc_file': '<(SHARED_INTERMEDIATE_DIR)/isolate_gen.cc', | 17 'isolate_cc_file': '<(SHARED_INTERMEDIATE_DIR)/isolate_gen.cc', |
16 'isolate_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/isolate_patch_gen.cc', | 18 'isolate_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/isolate_patch_gen.cc', |
17 'scalarlist_cc_file': '<(SHARED_INTERMEDIATE_DIR)/scalarlist_gen.cc', | 19 'scalarlist_cc_file': '<(SHARED_INTERMEDIATE_DIR)/scalarlist_gen.cc', |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 'libraries': ['-ljitprofiling.lib'], | 77 'libraries': ['-ljitprofiling.lib'], |
76 }], | 78 }], |
77 ], | 79 ], |
78 }, | 80 }, |
79 }]], | 81 }]], |
80 }, | 82 }, |
81 { | 83 { |
82 'target_name': 'libdart_lib_withcore', | 84 'target_name': 'libdart_lib_withcore', |
83 'type': 'static_library', | 85 'type': 'static_library', |
84 'dependencies': [ | 86 'dependencies': [ |
| 87 'generate_async_cc_file', |
| 88 'generate_async_patch_cc_file', |
85 'generate_corelib_cc_file', | 89 'generate_corelib_cc_file', |
86 'generate_corelib_patch_cc_file', | 90 'generate_corelib_patch_cc_file', |
87 'generate_collection_cc_file', | 91 'generate_collection_cc_file', |
88 'generate_math_cc_file', | 92 'generate_math_cc_file', |
89 'generate_math_patch_cc_file', | 93 'generate_math_patch_cc_file', |
90 'generate_isolate_cc_file', | 94 'generate_isolate_cc_file', |
91 'generate_isolate_patch_cc_file', | 95 'generate_isolate_patch_cc_file', |
92 'generate_mirrors_cc_file', | 96 'generate_mirrors_cc_file', |
93 'generate_mirrors_patch_cc_file', | 97 'generate_mirrors_patch_cc_file', |
94 'generate_scalarlist_cc_file', | 98 'generate_scalarlist_cc_file', |
95 'generate_scalarlist_patch_cc_file', | 99 'generate_scalarlist_patch_cc_file', |
96 ], | 100 ], |
97 'includes': [ | 101 'includes': [ |
| 102 '../lib/async_sources.gypi', |
98 '../lib/lib_sources.gypi', | 103 '../lib/lib_sources.gypi', |
99 '../lib/isolate_sources.gypi', | 104 '../lib/isolate_sources.gypi', |
100 '../lib/math_sources.gypi', | 105 '../lib/math_sources.gypi', |
101 '../lib/mirrors_sources.gypi', | 106 '../lib/mirrors_sources.gypi', |
102 '../lib/scalarlist_sources.gypi', | 107 '../lib/scalarlist_sources.gypi', |
103 ], | 108 ], |
104 'sources': [ | 109 'sources': [ |
105 'bootstrap.cc', | 110 'bootstrap.cc', |
106 # Include generated source files. | 111 # Include generated source files. |
| 112 '<(async_cc_file)', |
| 113 '<(async_patch_cc_file)', |
107 '<(corelib_cc_file)', | 114 '<(corelib_cc_file)', |
108 '<(corelib_patch_cc_file)', | 115 '<(corelib_patch_cc_file)', |
109 '<(collection_cc_file)', | 116 '<(collection_cc_file)', |
110 '<(math_cc_file)', | 117 '<(math_cc_file)', |
111 '<(math_patch_cc_file)', | 118 '<(math_patch_cc_file)', |
112 '<(isolate_cc_file)', | 119 '<(isolate_cc_file)', |
113 '<(isolate_patch_cc_file)', | 120 '<(isolate_patch_cc_file)', |
114 '<(mirrors_cc_file)', | 121 '<(mirrors_cc_file)', |
115 '<(mirrors_patch_cc_file)', | 122 '<(mirrors_patch_cc_file)', |
116 '<(scalarlist_cc_file)', | 123 '<(scalarlist_cc_file)', |
117 '<(scalarlist_patch_cc_file)', | 124 '<(scalarlist_patch_cc_file)', |
118 ], | 125 ], |
119 'include_dirs': [ | 126 'include_dirs': [ |
120 '..', | 127 '..', |
121 ], | 128 ], |
122 }, | 129 }, |
123 { | 130 { |
124 'target_name': 'libdart_lib', | 131 'target_name': 'libdart_lib', |
125 'type': 'static_library', | 132 'type': 'static_library', |
126 'includes': [ | 133 'includes': [ |
| 134 '../lib/async_sources.gypi', |
127 '../lib/lib_sources.gypi', | 135 '../lib/lib_sources.gypi', |
128 '../lib/isolate_sources.gypi', | 136 '../lib/isolate_sources.gypi', |
129 '../lib/math_sources.gypi', | 137 '../lib/math_sources.gypi', |
130 '../lib/mirrors_sources.gypi', | 138 '../lib/mirrors_sources.gypi', |
131 '../lib/scalarlist_sources.gypi', | 139 '../lib/scalarlist_sources.gypi', |
132 ], | 140 ], |
133 'sources': [ | 141 'sources': [ |
134 'bootstrap_nocorelib.cc', | 142 'bootstrap_nocorelib.cc', |
135 ], | 143 ], |
136 'include_dirs': [ | 144 'include_dirs': [ |
137 '..', | 145 '..', |
138 ], | 146 ], |
139 }, | 147 }, |
140 { | 148 { |
| 149 'target_name': 'generate_async_cc_file', |
| 150 'type': 'none', |
| 151 'variables': { |
| 152 'async_dart': '<(SHARED_INTERMEDIATE_DIR)/async_gen.dart', |
| 153 }, |
| 154 'includes': [ |
| 155 '../../sdk/lib/async/async_sources.gypi', |
| 156 ], |
| 157 'sources/': [ |
| 158 # Exclude all .[cc|h] files. |
| 159 # This is only here for reference. Excludes happen after |
| 160 # variable expansion, so the script has to do its own |
| 161 # exclude processing of the sources being passed. |
| 162 ['exclude', '\\.cc|h$'], |
| 163 ], |
| 164 'actions': [ |
| 165 { |
| 166 'action_name': 'generate_async_dart', |
| 167 'inputs': [ |
| 168 '../tools/concat_library.py', |
| 169 '<@(_sources)', |
| 170 ], |
| 171 'outputs': [ |
| 172 '<(async_dart)', |
| 173 ], |
| 174 'action': [ |
| 175 'python', |
| 176 '<@(_inputs)', |
| 177 '--output', '<(async_dart)', |
| 178 ], |
| 179 'message': 'Generating ''<(async_dart)'' file.', |
| 180 }, |
| 181 { |
| 182 'action_name': 'generate_async_cc', |
| 183 'inputs': [ |
| 184 '../tools/create_string_literal.py', |
| 185 '<(builtin_in_cc_file)', |
| 186 '<@(async_dart)', |
| 187 ], |
| 188 'outputs': [ |
| 189 '<(async_cc_file)', |
| 190 ], |
| 191 'action': [ |
| 192 'python', |
| 193 'tools/create_string_literal.py', |
| 194 '--output', '<(async_cc_file)', |
| 195 '--input_cc', '<(builtin_in_cc_file)', |
| 196 '--include', 'vm/bootstrap.h', |
| 197 '--var_name', 'dart::Bootstrap::async_source_', |
| 198 '<@(_sources)', |
| 199 ], |
| 200 'message': 'Generating ''<(async_cc_file)'' file.' |
| 201 }, |
| 202 ] |
| 203 }, |
| 204 { |
141 'target_name': 'generate_corelib_cc_file', | 205 'target_name': 'generate_corelib_cc_file', |
142 'type': 'none', | 206 'type': 'none', |
143 'variables': { | 207 'variables': { |
144 'core_dart': '<(SHARED_INTERMEDIATE_DIR)/core_gen.dart', | 208 'core_dart': '<(SHARED_INTERMEDIATE_DIR)/core_gen.dart', |
145 },'includes': [ | 209 },'includes': [ |
146 # Load the shared core library sources. | 210 # Load the shared core library sources. |
147 '../../sdk/lib/core/corelib_sources.gypi', | 211 '../../sdk/lib/core/corelib_sources.gypi', |
148 ], | 212 ], |
149 'sources/': [ | 213 'sources/': [ |
150 # Exclude all .[cc|h] files. | 214 # Exclude all .[cc|h] files. |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 '--input_cc', '<(builtin_in_cc_file)', | 593 '--input_cc', '<(builtin_in_cc_file)', |
530 '--include', 'vm/bootstrap.h', | 594 '--include', 'vm/bootstrap.h', |
531 '--var_name', 'dart::Bootstrap::isolate_source_', | 595 '--var_name', 'dart::Bootstrap::isolate_source_', |
532 '<(isolate_dart)', | 596 '<(isolate_dart)', |
533 ], | 597 ], |
534 'message': 'Generating ''<(isolate_cc_file)'' file.' | 598 'message': 'Generating ''<(isolate_cc_file)'' file.' |
535 }, | 599 }, |
536 ] | 600 ] |
537 }, | 601 }, |
538 { | 602 { |
| 603 'target_name': 'generate_async_patch_cc_file', |
| 604 'type': 'none', |
| 605 'includes': [ |
| 606 # Load the runtime implementation sources. |
| 607 '../lib/async_sources.gypi', |
| 608 ], |
| 609 'sources/': [ |
| 610 # Exclude all .[cc|h] files. |
| 611 # This is only here for reference. Excludes happen after |
| 612 # variable expansion, so the script has to do its own |
| 613 # exclude processing of the sources being passed. |
| 614 ['exclude', '\\.cc|h$'], |
| 615 ], |
| 616 'actions': [ |
| 617 { |
| 618 'action_name': 'generate_async_patch_cc', |
| 619 'inputs': [ |
| 620 '../tools/create_string_literal.py', |
| 621 '<(builtin_in_cc_file)', |
| 622 '<@(_sources)', |
| 623 ], |
| 624 'outputs': [ |
| 625 '<(async_patch_cc_file)', |
| 626 ], |
| 627 'action': [ |
| 628 'python', |
| 629 'tools/create_string_literal.py', |
| 630 '--output', '<(async_patch_cc_file)', |
| 631 '--input_cc', '<(builtin_in_cc_file)', |
| 632 '--include', 'vm/bootstrap.h', |
| 633 '--var_name', 'dart::Bootstrap::async_patch_', |
| 634 '<@(_sources)', |
| 635 ], |
| 636 'message': 'Generating ''<(async_patch_cc_file)'' file.' |
| 637 }, |
| 638 ] |
| 639 }, |
| 640 { |
539 'target_name': 'generate_isolate_patch_cc_file', | 641 'target_name': 'generate_isolate_patch_cc_file', |
540 'type': 'none', | 642 'type': 'none', |
541 'includes': [ | 643 'includes': [ |
542 # Load the runtime implementation sources. | 644 # Load the runtime implementation sources. |
543 '../lib/isolate_sources.gypi', | 645 '../lib/isolate_sources.gypi', |
544 ], | 646 ], |
545 'sources/': [ | 647 'sources/': [ |
546 # Exclude all .[cc|h] files. | 648 # Exclude all .[cc|h] files. |
547 # This is only here for reference. Excludes happen after | 649 # This is only here for reference. Excludes happen after |
548 # variable expansion, so the script has to do its own | 650 # variable expansion, so the script has to do its own |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 '--include', 'INTENTIONALLY_LEFT_BLANK', | 792 '--include', 'INTENTIONALLY_LEFT_BLANK', |
691 '--var_name', 'INTENTIONALLY_LEFT_BLANK_TOO', | 793 '--var_name', 'INTENTIONALLY_LEFT_BLANK_TOO', |
692 '<(snapshot_test_dart_file)', | 794 '<(snapshot_test_dart_file)', |
693 ], | 795 ], |
694 'message': 'Generating ''<(snapshot_test_dat_file)'' file.' | 796 'message': 'Generating ''<(snapshot_test_dat_file)'' file.' |
695 }, | 797 }, |
696 ] | 798 ] |
697 }, | 799 }, |
698 ] | 800 ] |
699 } | 801 } |
OLD | NEW |