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 'corelib_cc_file': '<(SHARED_INTERMEDIATE_DIR)/corelib_gen.cc', | 8 'corelib_cc_file': '<(SHARED_INTERMEDIATE_DIR)/corelib_gen.cc', |
9 'corelib_impl_cc_file': '<(SHARED_INTERMEDIATE_DIR)/corelib_impl_gen.cc', | 9 'corelib_impl_cc_file': '<(SHARED_INTERMEDIATE_DIR)/corelib_impl_gen.cc', |
| 10 'math_cc_file': '<(SHARED_INTERMEDIATE_DIR)/math_gen.cc', |
10 'mirrors_cc_file': '<(SHARED_INTERMEDIATE_DIR)/mirrors_gen.cc', | 11 'mirrors_cc_file': '<(SHARED_INTERMEDIATE_DIR)/mirrors_gen.cc', |
11 'isolate_cc_file': '<(SHARED_INTERMEDIATE_DIR)/isolate_gen.cc', | 12 'isolate_cc_file': '<(SHARED_INTERMEDIATE_DIR)/isolate_gen.cc', |
12 'snapshot_test_dat_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_test.dat', | 13 'snapshot_test_dat_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_test.dat', |
13 'snapshot_test_in_dat_file': 'snapshot_test_in.dat', | 14 'snapshot_test_in_dat_file': 'snapshot_test_in.dat', |
14 'snapshot_test_dart_file': 'snapshot_test.dart', | 15 'snapshot_test_dart_file': 'snapshot_test.dart', |
15 }, | 16 }, |
16 'targets': [ | 17 'targets': [ |
17 { | 18 { |
18 'target_name': 'libdart_vm', | 19 'target_name': 'libdart_vm', |
19 'type': 'static_library', | 20 'type': 'static_library', |
(...skipping 23 matching lines...) Expand all Loading... |
43 ['exclude', 'gdbjit.cc'], | 44 ['exclude', 'gdbjit.cc'], |
44 ], | 45 ], |
45 }]], | 46 }]], |
46 }, | 47 }, |
47 { | 48 { |
48 'target_name': 'libdart_lib_withcore', | 49 'target_name': 'libdart_lib_withcore', |
49 'type': 'static_library', | 50 'type': 'static_library', |
50 'dependencies': [ | 51 'dependencies': [ |
51 'generate_corelib_cc_file', | 52 'generate_corelib_cc_file', |
52 'generate_corelib_impl_cc_file', | 53 'generate_corelib_impl_cc_file', |
| 54 'generate_math_cc_file', |
53 'generate_isolate_cc_file', | 55 'generate_isolate_cc_file', |
54 'generate_mirrors_cc_file', | 56 'generate_mirrors_cc_file', |
55 ], | 57 ], |
56 'includes': [ | 58 'includes': [ |
57 '../lib/lib_sources.gypi', | 59 '../lib/lib_sources.gypi', |
58 '../lib/lib_impl_sources.gypi', | 60 '../lib/lib_impl_sources.gypi', |
59 '../lib/isolate_sources.gypi', | 61 '../lib/isolate_sources.gypi', |
60 '../lib/mirrors_sources.gypi', | 62 '../lib/mirrors_sources.gypi', |
61 ], | 63 ], |
62 'sources': [ | 64 'sources': [ |
63 'bootstrap.cc', | 65 'bootstrap.cc', |
64 # Include generated source files. | 66 # Include generated source files. |
65 '<(corelib_cc_file)', | 67 '<(corelib_cc_file)', |
66 '<(corelib_impl_cc_file)', | 68 '<(corelib_impl_cc_file)', |
| 69 '<(math_cc_file)', |
67 '<(isolate_cc_file)', | 70 '<(isolate_cc_file)', |
68 '<(mirrors_cc_file)', | 71 '<(mirrors_cc_file)', |
69 ], | 72 ], |
70 'include_dirs': [ | 73 'include_dirs': [ |
71 '..', | 74 '..', |
72 ], | 75 ], |
73 }, | 76 }, |
74 { | 77 { |
75 'target_name': 'libdart_lib', | 78 'target_name': 'libdart_lib', |
76 'type': 'static_library', | 79 'type': 'static_library', |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 '--input_cc', '<(builtin_in_cc_file)', | 164 '--input_cc', '<(builtin_in_cc_file)', |
162 '--include', 'vm/bootstrap.h', | 165 '--include', 'vm/bootstrap.h', |
163 '--var_name', 'dart::Bootstrap::corelib_impl_source_', | 166 '--var_name', 'dart::Bootstrap::corelib_impl_source_', |
164 '<@(_sources)', | 167 '<@(_sources)', |
165 ], | 168 ], |
166 'message': 'Generating ''<(corelib_impl_cc_file)'' file.' | 169 'message': 'Generating ''<(corelib_impl_cc_file)'' file.' |
167 }, | 170 }, |
168 ] | 171 ] |
169 }, | 172 }, |
170 { | 173 { |
| 174 'target_name': 'generate_math_cc_file', |
| 175 'type': 'none', |
| 176 'includes': [ |
| 177 # Load the shared math library sources. |
| 178 '../../lib/math/math_sources.gypi', |
| 179 ], |
| 180 'sources/': [ |
| 181 # Exclude all .[cc|h] files. |
| 182 # This is only here for reference. Excludes happen after |
| 183 # variable expansion, so the script has to do its own |
| 184 # exclude processing of the sources being passed. |
| 185 ['exclude', '\\.cc|h$'], |
| 186 ], |
| 187 'actions': [ |
| 188 { |
| 189 'action_name': 'generate_math_cc', |
| 190 'inputs': [ |
| 191 '../tools/create_string_literal.py', |
| 192 '<(builtin_in_cc_file)', |
| 193 '<@(_sources)', |
| 194 ], |
| 195 'outputs': [ |
| 196 '<(math_cc_file)', |
| 197 ], |
| 198 'action': [ |
| 199 'python', |
| 200 'tools/create_string_literal.py', |
| 201 '--output', '<(math_cc_file)', |
| 202 '--input_cc', '<(builtin_in_cc_file)', |
| 203 '--include', 'vm/bootstrap.h', |
| 204 '--var_name', 'dart::Bootstrap::math_source_', |
| 205 '<@(_sources)', |
| 206 ], |
| 207 'message': 'Generating ''<(math_cc_file)'' file.' |
| 208 }, |
| 209 ] |
| 210 }, |
| 211 { |
171 'target_name': 'generate_mirrors_cc_file', | 212 'target_name': 'generate_mirrors_cc_file', |
172 'type': 'none', | 213 'type': 'none', |
173 'includes': [ | 214 'includes': [ |
174 # Load the shared core library sources. | 215 # Load the shared core library sources. |
175 '../lib/mirrors_sources.gypi', | 216 '../lib/mirrors_sources.gypi', |
176 ], | 217 ], |
177 'sources/': [ | 218 'sources/': [ |
178 # Exclude all .[cc|h] files. | 219 # Exclude all .[cc|h] files. |
179 # This is only here for reference. Excludes happen after | 220 # This is only here for reference. Excludes happen after |
180 # variable expansion, so the script has to do its own | 221 # variable expansion, so the script has to do its own |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 '--include', 'INTENTIONALLY_LEFT_BLANK', | 306 '--include', 'INTENTIONALLY_LEFT_BLANK', |
266 '--var_name', 'INTENTIONALLY_LEFT_BLANK_TOO', | 307 '--var_name', 'INTENTIONALLY_LEFT_BLANK_TOO', |
267 '<(snapshot_test_dart_file)', | 308 '<(snapshot_test_dart_file)', |
268 ], | 309 ], |
269 'message': 'Generating ''<(snapshot_test_dat_file)'' file.' | 310 'message': 'Generating ''<(snapshot_test_dat_file)'' file.' |
270 }, | 311 }, |
271 ] | 312 ] |
272 }, | 313 }, |
273 ] | 314 ] |
274 } | 315 } |
OLD | NEW |