| 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 'corelib_in_cc_file': 'corelib_in.cc', | 7 'corelib_in_cc_file': 'corelib_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_in_cc_file': 'corelib_impl_in.cc', | 9 'corelib_impl_in_cc_file': 'corelib_impl_in.cc', |
| 10 'corelib_impl_cc_file': '<(SHARED_INTERMEDIATE_DIR)/corelib_impl_gen.cc', | 10 'corelib_impl_cc_file': '<(SHARED_INTERMEDIATE_DIR)/corelib_impl_gen.cc', |
| 11 'mirrors_in_cc_file': 'mirrors_in.cc', |
| 12 'mirrors_cc_file': '<(SHARED_INTERMEDIATE_DIR)/mirrors_gen.cc', |
| 11 'snapshot_test_dat_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_test.dat', | 13 'snapshot_test_dat_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_test.dat', |
| 12 'snapshot_test_in_dat_file': 'snapshot_test_in.dat', | 14 'snapshot_test_in_dat_file': 'snapshot_test_in.dat', |
| 13 'snapshot_test_dart_file': 'snapshot_test.dart', | 15 'snapshot_test_dart_file': 'snapshot_test.dart', |
| 14 'cygwin_dir': '../../third_party/cygwin', | 16 'cygwin_dir': '../../third_party/cygwin', |
| 15 }, | 17 }, |
| 16 'targets': [ | 18 'targets': [ |
| 17 { | 19 { |
| 18 'target_name': 'libdart_vm', | 20 'target_name': 'libdart_vm', |
| 19 'type': 'static_library', | 21 'type': 'static_library', |
| 20 'includes': [ | 22 'includes': [ |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 'libraries': [ '-llibeay32MT.lib' ], | 58 'libraries': [ '-llibeay32MT.lib' ], |
| 57 }, | 59 }, |
| 58 }]], | 60 }]], |
| 59 }, | 61 }, |
| 60 { | 62 { |
| 61 'target_name': 'libdart_lib_withcore', | 63 'target_name': 'libdart_lib_withcore', |
| 62 'type': 'static_library', | 64 'type': 'static_library', |
| 63 'dependencies': [ | 65 'dependencies': [ |
| 64 'generate_corelib_cc_file', | 66 'generate_corelib_cc_file', |
| 65 'generate_corelib_impl_cc_file', | 67 'generate_corelib_impl_cc_file', |
| 68 'generate_mirrors_cc_file', |
| 66 ], | 69 ], |
| 67 'includes': [ | 70 'includes': [ |
| 68 '../lib/lib_sources.gypi', | 71 '../lib/lib_sources.gypi', |
| 69 '../lib/lib_impl_sources.gypi', | 72 '../lib/lib_impl_sources.gypi', |
| 73 '../lib/mirrors_sources.gypi', |
| 70 ], | 74 ], |
| 71 'sources': [ | 75 'sources': [ |
| 72 'bootstrap.cc', | 76 'bootstrap.cc', |
| 73 # Include generated source files. | 77 # Include generated source files. |
| 74 '<(corelib_cc_file)', | 78 '<(corelib_cc_file)', |
| 75 '<(corelib_impl_cc_file)', | 79 '<(corelib_impl_cc_file)', |
| 80 '<(mirrors_cc_file)', |
| 76 ], | 81 ], |
| 77 'include_dirs': [ | 82 'include_dirs': [ |
| 78 '..', | 83 '..', |
| 79 ], | 84 ], |
| 80 }, | 85 }, |
| 81 { | 86 { |
| 82 'target_name': 'libdart_lib', | 87 'target_name': 'libdart_lib', |
| 83 'type': 'static_library', | 88 'type': 'static_library', |
| 84 'includes': [ | 89 'includes': [ |
| 85 '../lib/lib_sources.gypi', | 90 '../lib/lib_sources.gypi', |
| 86 '../lib/lib_impl_sources.gypi', | 91 '../lib/lib_impl_sources.gypi', |
| 92 '../lib/mirrors_sources.gypi', |
| 87 ], | 93 ], |
| 88 'sources': [ | 94 'sources': [ |
| 89 'bootstrap_nocorelib.cc', | 95 'bootstrap_nocorelib.cc', |
| 90 ], | 96 ], |
| 91 'include_dirs': [ | 97 'include_dirs': [ |
| 92 '..', | 98 '..', |
| 93 ], | 99 ], |
| 94 }, | 100 }, |
| 95 { | 101 { |
| 96 'target_name': 'generate_corelib_cc_file', | 102 'target_name': 'generate_corelib_cc_file', |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 'tools/create_string_literal.py', | 178 'tools/create_string_literal.py', |
| 173 '--output', '<(corelib_impl_cc_file)', | 179 '--output', '<(corelib_impl_cc_file)', |
| 174 '--input_cc', '<(corelib_impl_in_cc_file)', | 180 '--input_cc', '<(corelib_impl_in_cc_file)', |
| 175 '<@(_sources)', | 181 '<@(_sources)', |
| 176 ], | 182 ], |
| 177 'message': 'Generating ''<(corelib_impl_cc_file)'' file.' | 183 'message': 'Generating ''<(corelib_impl_cc_file)'' file.' |
| 178 }, | 184 }, |
| 179 ] | 185 ] |
| 180 }, | 186 }, |
| 181 { | 187 { |
| 188 'target_name': 'generate_mirrors_cc_file', |
| 189 'type': 'none', |
| 190 'conditions': [ |
| 191 ['OS=="win"', { |
| 192 'msvs_cygwin_dirs': ['<(cygwin_dir)'], |
| 193 }], |
| 194 ], |
| 195 'includes': [ |
| 196 # Load the shared core library sources. |
| 197 '../lib/mirrors_sources.gypi', |
| 198 ], |
| 199 'sources/': [ |
| 200 # Exclude all .[cc|h] files. |
| 201 # This is only here for reference. Excludes happen after |
| 202 # variable expansion, so the script has to do its own |
| 203 # exclude processing of the sources being passed. |
| 204 ['exclude', '\\.cc|h$'], |
| 205 ], |
| 206 'actions': [ |
| 207 { |
| 208 'action_name': 'generate_mirrors_cc', |
| 209 'inputs': [ |
| 210 '../tools/create_string_literal.py', |
| 211 '<(mirrors_in_cc_file)', |
| 212 '<@(_sources)', |
| 213 ], |
| 214 'outputs': [ |
| 215 '<(mirrors_cc_file)', |
| 216 ], |
| 217 'action': [ |
| 218 'python', |
| 219 'tools/create_string_literal.py', |
| 220 '--output', '<(mirrors_cc_file)', |
| 221 '--input_cc', '<(mirrors_in_cc_file)', |
| 222 '<@(_sources)', |
| 223 ], |
| 224 'message': 'Generating ''<(mirrors_cc_file)'' file.' |
| 225 }, |
| 226 ] |
| 227 }, |
| 228 { |
| 182 'target_name': 'generate_snapshot_test_dat_file', | 229 'target_name': 'generate_snapshot_test_dat_file', |
| 183 'type': 'none', | 230 'type': 'none', |
| 184 'conditions': [ | 231 'conditions': [ |
| 185 ['OS=="win"', { | 232 ['OS=="win"', { |
| 186 'msvs_cygwin_dirs': ['<(cygwin_dir)'], | 233 'msvs_cygwin_dirs': ['<(cygwin_dir)'], |
| 187 }], | 234 }], |
| 188 ], | 235 ], |
| 189 'actions': [ | 236 'actions': [ |
| 190 { | 237 { |
| 191 'action_name': 'generate_snapshot_test_dat', | 238 'action_name': 'generate_snapshot_test_dat', |
| (...skipping 11 matching lines...) Expand all Loading... |
| 203 '--output', '<(snapshot_test_dat_file)', | 250 '--output', '<(snapshot_test_dat_file)', |
| 204 '--input_cc', '<(snapshot_test_in_dat_file)', | 251 '--input_cc', '<(snapshot_test_in_dat_file)', |
| 205 '<(snapshot_test_dart_file)', | 252 '<(snapshot_test_dart_file)', |
| 206 ], | 253 ], |
| 207 'message': 'Generating ''<(snapshot_test_dat_file)'' file.' | 254 'message': 'Generating ''<(snapshot_test_dat_file)'' file.' |
| 208 }, | 255 }, |
| 209 ] | 256 ] |
| 210 }, | 257 }, |
| 211 ] | 258 ] |
| 212 } | 259 } |
| OLD | NEW |