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 'annotation_cc_file': '<(gen_source_dir)/annotation_gen.cc', |
10 'async_cc_file': '<(gen_source_dir)/async_gen.cc', | 11 'async_cc_file': '<(gen_source_dir)/async_gen.cc', |
11 'async_patch_cc_file': '<(gen_source_dir)/async_patch_gen.cc', | 12 'async_patch_cc_file': '<(gen_source_dir)/async_patch_gen.cc', |
12 'corelib_cc_file': '<(gen_source_dir)/corelib_gen.cc', | 13 'corelib_cc_file': '<(gen_source_dir)/corelib_gen.cc', |
13 'corelib_patch_cc_file': '<(gen_source_dir)/corelib_patch_gen.cc', | 14 'corelib_patch_cc_file': '<(gen_source_dir)/corelib_patch_gen.cc', |
14 'collection_cc_file': '<(gen_source_dir)/collection_gen.cc', | 15 'collection_cc_file': '<(gen_source_dir)/collection_gen.cc', |
15 'collection_patch_cc_file': '<(gen_source_dir)/collection_patch_gen.cc', | 16 'collection_patch_cc_file': '<(gen_source_dir)/collection_patch_gen.cc', |
16 'collection_dev_cc_file': '<(gen_source_dir)/collection_dev_gen.cc', | 17 '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', | 18 'collection_dev_patch_cc_file': '<(gen_source_dir)/collection_dev_patch_gen.
cc', |
18 'convert_cc_file': '<(gen_source_dir)/convert_gen.cc', | 19 'convert_cc_file': '<(gen_source_dir)/convert_gen.cc', |
19 'convert_patch_cc_file': '<(gen_source_dir)/convert_patch_gen.cc', | 20 'convert_patch_cc_file': '<(gen_source_dir)/convert_patch_gen.cc', |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 }], | 88 }], |
88 ], | 89 ], |
89 }, | 90 }, |
90 }]], | 91 }]], |
91 }, | 92 }, |
92 { | 93 { |
93 'target_name': 'libdart_lib_withcore', | 94 'target_name': 'libdart_lib_withcore', |
94 'type': 'static_library', | 95 'type': 'static_library', |
95 'toolsets':['host', 'target'], | 96 'toolsets':['host', 'target'], |
96 'dependencies': [ | 97 'dependencies': [ |
| 98 'generate_annotation_cc_file#host', |
97 'generate_async_cc_file#host', | 99 'generate_async_cc_file#host', |
98 'generate_async_patch_cc_file#host', | 100 'generate_async_patch_cc_file#host', |
99 'generate_corelib_cc_file#host', | 101 'generate_corelib_cc_file#host', |
100 'generate_corelib_patch_cc_file#host', | 102 'generate_corelib_patch_cc_file#host', |
101 'generate_collection_cc_file#host', | 103 'generate_collection_cc_file#host', |
102 'generate_collection_patch_cc_file#host', | 104 'generate_collection_patch_cc_file#host', |
103 'generate_collection_dev_cc_file#host', | 105 'generate_collection_dev_cc_file#host', |
104 'generate_collection_dev_patch_cc_file#host', | 106 'generate_collection_dev_patch_cc_file#host', |
105 'generate_convert_cc_file#host', | 107 'generate_convert_cc_file#host', |
106 'generate_convert_patch_cc_file#host', | 108 'generate_convert_patch_cc_file#host', |
107 'generate_math_cc_file#host', | 109 'generate_math_cc_file#host', |
108 'generate_math_patch_cc_file#host', | 110 'generate_math_patch_cc_file#host', |
109 'generate_isolate_cc_file#host', | 111 'generate_isolate_cc_file#host', |
110 'generate_isolate_patch_cc_file#host', | 112 'generate_isolate_patch_cc_file#host', |
111 'generate_json_cc_file#host', | 113 'generate_json_cc_file#host', |
112 'generate_mirrors_cc_file#host', | 114 'generate_mirrors_cc_file#host', |
113 'generate_mirrors_patch_cc_file#host', | 115 'generate_mirrors_patch_cc_file#host', |
114 'generate_typed_data_cc_file#host', | 116 'generate_typed_data_cc_file#host', |
115 'generate_typed_data_patch_cc_file#host', | 117 'generate_typed_data_patch_cc_file#host', |
116 'generate_utf_cc_file#host', | 118 'generate_utf_cc_file#host', |
117 ], | 119 ], |
118 'includes': [ | 120 'includes': [ |
| 121 '../lib/annotation_sources.gypi', |
119 '../lib/async_sources.gypi', | 122 '../lib/async_sources.gypi', |
120 '../lib/collection_sources.gypi', | 123 '../lib/collection_sources.gypi', |
121 '../lib/corelib_sources.gypi', | 124 '../lib/corelib_sources.gypi', |
122 '../lib/isolate_sources.gypi', | 125 '../lib/isolate_sources.gypi', |
123 '../lib/math_sources.gypi', | 126 '../lib/math_sources.gypi', |
124 '../lib/mirrors_sources.gypi', | 127 '../lib/mirrors_sources.gypi', |
125 '../lib/typed_data_sources.gypi', | 128 '../lib/typed_data_sources.gypi', |
126 ], | 129 ], |
127 'sources': [ | 130 'sources': [ |
128 'bootstrap.cc', | 131 'bootstrap.cc', |
129 # Include generated source files. | 132 # Include generated source files. |
| 133 '<(annotation_cc_file)', |
130 '<(async_cc_file)', | 134 '<(async_cc_file)', |
131 '<(async_patch_cc_file)', | 135 '<(async_patch_cc_file)', |
132 '<(corelib_cc_file)', | 136 '<(corelib_cc_file)', |
133 '<(corelib_patch_cc_file)', | 137 '<(corelib_patch_cc_file)', |
134 '<(collection_cc_file)', | 138 '<(collection_cc_file)', |
135 '<(collection_patch_cc_file)', | 139 '<(collection_patch_cc_file)', |
136 '<(collection_dev_cc_file)', | 140 '<(collection_dev_cc_file)', |
137 '<(collection_dev_patch_cc_file)', | 141 '<(collection_dev_patch_cc_file)', |
138 '<(convert_cc_file)', | 142 '<(convert_cc_file)', |
139 '<(convert_patch_cc_file)', | 143 '<(convert_patch_cc_file)', |
(...skipping 10 matching lines...) Expand all Loading... |
150 ], | 154 ], |
151 'include_dirs': [ | 155 'include_dirs': [ |
152 '..', | 156 '..', |
153 ], | 157 ], |
154 }, | 158 }, |
155 { | 159 { |
156 'target_name': 'libdart_lib', | 160 'target_name': 'libdart_lib', |
157 'type': 'static_library', | 161 'type': 'static_library', |
158 'toolsets':['host', 'target'], | 162 'toolsets':['host', 'target'], |
159 'includes': [ | 163 'includes': [ |
| 164 '../lib/annotation_sources.gypi', |
160 '../lib/async_sources.gypi', | 165 '../lib/async_sources.gypi', |
161 '../lib/collection_sources.gypi', | 166 '../lib/collection_sources.gypi', |
162 '../lib/corelib_sources.gypi', | 167 '../lib/corelib_sources.gypi', |
163 '../lib/isolate_sources.gypi', | 168 '../lib/isolate_sources.gypi', |
164 '../lib/math_sources.gypi', | 169 '../lib/math_sources.gypi', |
165 '../lib/mirrors_sources.gypi', | 170 '../lib/mirrors_sources.gypi', |
166 '../lib/typed_data_sources.gypi', | 171 '../lib/typed_data_sources.gypi', |
167 ], | 172 ], |
168 'sources': [ | 173 'sources': [ |
169 'bootstrap_nocorelib.cc', | 174 'bootstrap_nocorelib.cc', |
170 ], | 175 ], |
171 'include_dirs': [ | 176 'include_dirs': [ |
172 '..', | 177 '..', |
173 ], | 178 ], |
174 }, | 179 }, |
175 { | 180 { |
| 181 'target_name': 'generate_annotation_cc_file', |
| 182 'type': 'none', |
| 183 'toolsets':['host'], |
| 184 'includes': [ |
| 185 '../../sdk/lib/annotation/annotation_sources.gypi', |
| 186 ], |
| 187 'actions': [ |
| 188 { |
| 189 'action_name': 'generate_annotation_cc', |
| 190 'inputs': [ |
| 191 '../tools/gen_library_src_paths.py', |
| 192 '<(libgen_in_cc_file)', |
| 193 '<@(_sources)', |
| 194 ], |
| 195 'outputs': [ |
| 196 '<(annotation_cc_file)', |
| 197 ], |
| 198 'action': [ |
| 199 'python', |
| 200 'tools/gen_library_src_paths.py', |
| 201 '--output', '<(annotation_cc_file)', |
| 202 '--input_cc', '<(libgen_in_cc_file)', |
| 203 '--include', 'vm/bootstrap.h', |
| 204 '--var_name', 'dart::Bootstrap::annotation_source_paths_', |
| 205 '--library_name', 'dart:annotation', |
| 206 '<@(_sources)', |
| 207 ], |
| 208 'message': 'Generating ''<(annotation_cc_file)'' file.' |
| 209 }, |
| 210 ] |
| 211 }, |
| 212 { |
176 'target_name': 'generate_async_cc_file', | 213 'target_name': 'generate_async_cc_file', |
177 'type': 'none', | 214 'type': 'none', |
178 'toolsets':['host'], | 215 'toolsets':['host'], |
179 'includes': [ | 216 'includes': [ |
180 '../../sdk/lib/async/async_sources.gypi', | 217 '../../sdk/lib/async/async_sources.gypi', |
181 ], | 218 ], |
182 'sources/': [ | 219 'sources/': [ |
183 # Exclude all .[cc|h] files. | 220 # Exclude all .[cc|h] files. |
184 # This is only here for reference. Excludes happen after | 221 # This is only here for reference. Excludes happen after |
185 # variable expansion, so the script has to do its own | 222 # variable expansion, so the script has to do its own |
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 '--include', 'INTENTIONALLY_LEFT_BLANK', | 1017 '--include', 'INTENTIONALLY_LEFT_BLANK', |
981 '--var_name', 'INTENTIONALLY_LEFT_BLANK_TOO', | 1018 '--var_name', 'INTENTIONALLY_LEFT_BLANK_TOO', |
982 '<(snapshot_test_dart_file)', | 1019 '<(snapshot_test_dart_file)', |
983 ], | 1020 ], |
984 'message': 'Generating ''<(snapshot_test_dat_file)'' file.' | 1021 'message': 'Generating ''<(snapshot_test_dat_file)'' file.' |
985 }, | 1022 }, |
986 ] | 1023 ] |
987 }, | 1024 }, |
988 ] | 1025 ] |
989 } | 1026 } |
OLD | NEW |