Index: runtime/vm/vm.gypi |
=================================================================== |
--- runtime/vm/vm.gypi (revision 4295) |
+++ runtime/vm/vm.gypi (working copy) |
@@ -8,6 +8,8 @@ |
'corelib_cc_file': '<(SHARED_INTERMEDIATE_DIR)/corelib_gen.cc', |
'corelib_impl_in_cc_file': 'corelib_impl_in.cc', |
'corelib_impl_cc_file': '<(SHARED_INTERMEDIATE_DIR)/corelib_impl_gen.cc', |
+ 'mirrors_in_cc_file': 'mirrors_in.cc', |
+ 'mirrors_cc_file': '<(SHARED_INTERMEDIATE_DIR)/mirrors_gen.cc', |
'snapshot_test_dat_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_test.dat', |
'snapshot_test_in_dat_file': 'snapshot_test_in.dat', |
'snapshot_test_dart_file': 'snapshot_test.dart', |
@@ -63,16 +65,19 @@ |
'dependencies': [ |
'generate_corelib_cc_file', |
'generate_corelib_impl_cc_file', |
+ 'generate_mirrors_cc_file', |
], |
'includes': [ |
'../lib/lib_sources.gypi', |
'../lib/lib_impl_sources.gypi', |
+ '../lib/mirrors_sources.gypi', |
], |
'sources': [ |
'bootstrap.cc', |
# Include generated source files. |
'<(corelib_cc_file)', |
'<(corelib_impl_cc_file)', |
+ '<(mirrors_cc_file)', |
], |
'include_dirs': [ |
'..', |
@@ -84,6 +89,7 @@ |
'includes': [ |
'../lib/lib_sources.gypi', |
'../lib/lib_impl_sources.gypi', |
+ '../lib/mirrors_sources.gypi', |
], |
'sources': [ |
'bootstrap_nocorelib.cc', |
@@ -179,6 +185,47 @@ |
] |
}, |
{ |
+ 'target_name': 'generate_mirrors_cc_file', |
+ 'type': 'none', |
+ 'conditions': [ |
+ ['OS=="win"', { |
+ 'msvs_cygwin_dirs': ['<(cygwin_dir)'], |
+ }], |
+ ], |
+ 'includes': [ |
+ # Load the shared core library sources. |
+ '../lib/mirrors_sources.gypi', |
+ ], |
+ 'sources/': [ |
+ # Exclude all .[cc|h] files. |
+ # This is only here for reference. Excludes happen after |
+ # variable expansion, so the script has to do its own |
+ # exclude processing of the sources being passed. |
+ ['exclude', '\\.cc|h$'], |
+ ], |
+ 'actions': [ |
+ { |
+ 'action_name': 'generate_mirrors_cc', |
+ 'inputs': [ |
+ '../tools/create_string_literal.py', |
+ '<(mirrors_in_cc_file)', |
+ '<@(_sources)', |
+ ], |
+ 'outputs': [ |
+ '<(mirrors_cc_file)', |
+ ], |
+ 'action': [ |
+ 'python', |
+ 'tools/create_string_literal.py', |
+ '--output', '<(mirrors_cc_file)', |
+ '--input_cc', '<(mirrors_in_cc_file)', |
+ '<@(_sources)', |
+ ], |
+ 'message': 'Generating ''<(mirrors_cc_file)'' file.' |
+ }, |
+ ] |
+ }, |
+ { |
'target_name': 'generate_snapshot_test_dat_file', |
'type': 'none', |
'conditions': [ |