| 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 'mirrors_cc_file': '<(SHARED_INTERMEDIATE_DIR)/mirrors_gen.cc', |
| 10 'isolate_cc_file': '<(SHARED_INTERMEDIATE_DIR)/isolate_gen.cc', | 11 'isolate_cc_file': '<(SHARED_INTERMEDIATE_DIR)/isolate_gen.cc', |
| 11 'snapshot_test_dat_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_test.dat', | 12 'snapshot_test_dat_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_test.dat', |
| 12 'snapshot_test_in_dat_file': 'snapshot_test_in.dat', | 13 'snapshot_test_in_dat_file': 'snapshot_test_in.dat', |
| 13 'snapshot_test_dart_file': 'snapshot_test.dart', | 14 'snapshot_test_dart_file': 'snapshot_test.dart', |
| 14 'cygwin_dir': '../../third_party/cygwin', | 15 'cygwin_dir': '../../third_party/cygwin', |
| 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 24 matching lines...) Expand all Loading... |
| 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', |
| 53 'generate_isolate_cc_file', | 54 'generate_isolate_cc_file', |
| 55 'generate_mirrors_cc_file', |
| 54 ], | 56 ], |
| 55 'includes': [ | 57 'includes': [ |
| 56 '../lib/lib_sources.gypi', | 58 '../lib/lib_sources.gypi', |
| 57 '../lib/lib_impl_sources.gypi', | 59 '../lib/lib_impl_sources.gypi', |
| 58 '../lib/isolate_sources.gypi', | 60 '../lib/isolate_sources.gypi', |
| 61 '../lib/mirrors_sources.gypi', |
| 59 ], | 62 ], |
| 60 'sources': [ | 63 'sources': [ |
| 61 'bootstrap.cc', | 64 'bootstrap.cc', |
| 62 # Include generated source files. | 65 # Include generated source files. |
| 63 '<(corelib_cc_file)', | 66 '<(corelib_cc_file)', |
| 64 '<(corelib_impl_cc_file)', | 67 '<(corelib_impl_cc_file)', |
| 65 '<(isolate_cc_file)', | 68 '<(isolate_cc_file)', |
| 69 '<(mirrors_cc_file)', |
| 66 ], | 70 ], |
| 67 'include_dirs': [ | 71 'include_dirs': [ |
| 68 '..', | 72 '..', |
| 69 ], | 73 ], |
| 70 }, | 74 }, |
| 71 { | 75 { |
| 72 'target_name': 'libdart_lib', | 76 'target_name': 'libdart_lib', |
| 73 'type': 'static_library', | 77 'type': 'static_library', |
| 74 'includes': [ | 78 'includes': [ |
| 75 '../lib/lib_sources.gypi', | 79 '../lib/lib_sources.gypi', |
| 76 '../lib/lib_impl_sources.gypi', | 80 '../lib/lib_impl_sources.gypi', |
| 77 '../lib/isolate_sources.gypi', | 81 '../lib/isolate_sources.gypi', |
| 82 '../lib/mirrors_sources.gypi', |
| 78 ], | 83 ], |
| 79 'sources': [ | 84 'sources': [ |
| 80 'bootstrap_nocorelib.cc', | 85 'bootstrap_nocorelib.cc', |
| 81 ], | 86 ], |
| 82 'include_dirs': [ | 87 'include_dirs': [ |
| 83 '..', | 88 '..', |
| 84 ], | 89 ], |
| 85 }, | 90 }, |
| 86 { | 91 { |
| 87 'target_name': 'generate_corelib_cc_file', | 92 'target_name': 'generate_corelib_cc_file', |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 '--input_cc', '<(builtin_in_cc_file)', | 172 '--input_cc', '<(builtin_in_cc_file)', |
| 168 '--include', 'vm/bootstrap.h', | 173 '--include', 'vm/bootstrap.h', |
| 169 '--var_name', 'dart::Bootstrap::corelib_impl_source_', | 174 '--var_name', 'dart::Bootstrap::corelib_impl_source_', |
| 170 '<@(_sources)', | 175 '<@(_sources)', |
| 171 ], | 176 ], |
| 172 'message': 'Generating ''<(corelib_impl_cc_file)'' file.' | 177 'message': 'Generating ''<(corelib_impl_cc_file)'' file.' |
| 173 }, | 178 }, |
| 174 ] | 179 ] |
| 175 }, | 180 }, |
| 176 { | 181 { |
| 182 'target_name': 'generate_mirrors_cc_file', |
| 183 'type': 'none', |
| 184 'conditions': [ |
| 185 ['OS=="win"', { |
| 186 'msvs_cygwin_dirs': ['<(cygwin_dir)'], |
| 187 }], |
| 188 ], |
| 189 'includes': [ |
| 190 # Load the shared core library sources. |
| 191 '../lib/mirrors_sources.gypi', |
| 192 ], |
| 193 'sources/': [ |
| 194 # Exclude all .[cc|h] files. |
| 195 # This is only here for reference. Excludes happen after |
| 196 # variable expansion, so the script has to do its own |
| 197 # exclude processing of the sources being passed. |
| 198 ['exclude', '\\.cc|h$'], |
| 199 ], |
| 200 'actions': [ |
| 201 { |
| 202 'action_name': 'generate_mirrors_cc', |
| 203 'inputs': [ |
| 204 '../tools/create_string_literal.py', |
| 205 '<(builtin_in_cc_file)', |
| 206 '<@(_sources)', |
| 207 ], |
| 208 'outputs': [ |
| 209 '<(mirrors_cc_file)', |
| 210 ], |
| 211 'action': [ |
| 212 'python', |
| 213 'tools/create_string_literal.py', |
| 214 '--output', '<(mirrors_cc_file)', |
| 215 '--input_cc', '<(builtin_in_cc_file)', |
| 216 '--include', 'vm/bootstrap.h', |
| 217 '--var_name', 'dart::Bootstrap::mirrors_source_', |
| 218 '<@(_sources)', |
| 219 ], |
| 220 'message': 'Generating ''<(mirrors_cc_file)'' file.' |
| 221 }, |
| 222 ] |
| 223 }, |
| 224 { |
| 177 'target_name': 'generate_isolate_cc_file', | 225 'target_name': 'generate_isolate_cc_file', |
| 178 'type': 'none', | 226 'type': 'none', |
| 179 'conditions': [ | 227 'conditions': [ |
| 180 ['OS=="win"', { | 228 ['OS=="win"', { |
| 181 'msvs_cygwin_dirs': ['<(cygwin_dir)'], | 229 'msvs_cygwin_dirs': ['<(cygwin_dir)'], |
| 182 }], | 230 }], |
| 183 ], | 231 ], |
| 184 'includes': [ | 232 'includes': [ |
| 185 # Load the runtime implementation sources. | 233 # Load the runtime implementation sources. |
| 186 '../lib/isolate_sources.gypi', | 234 '../lib/isolate_sources.gypi', |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 '--include', 'INTENTIONALLY_LEFT_BLANK', | 291 '--include', 'INTENTIONALLY_LEFT_BLANK', |
| 244 '--var_name', 'INTENTIONALLY_LEFT_BLANK_TOO', | 292 '--var_name', 'INTENTIONALLY_LEFT_BLANK_TOO', |
| 245 '<(snapshot_test_dart_file)', | 293 '<(snapshot_test_dart_file)', |
| 246 ], | 294 ], |
| 247 'message': 'Generating ''<(snapshot_test_dat_file)'' file.' | 295 'message': 'Generating ''<(snapshot_test_dat_file)'' file.' |
| 248 }, | 296 }, |
| 249 ] | 297 ] |
| 250 }, | 298 }, |
| 251 ] | 299 ] |
| 252 } | 300 } |
| OLD | NEW |