| Index: runtime/vm/vm.gypi
|
| diff --git a/runtime/vm/vm.gypi b/runtime/vm/vm.gypi
|
| index 0805f0720566bb9611fa2376e4717c77c972ee66..3b2e620dc82d7454bb0b68079ba0703fa79b70ac 100644
|
| --- a/runtime/vm/vm.gypi
|
| +++ b/runtime/vm/vm.gypi
|
| @@ -31,6 +31,7 @@
|
| 'typed_data_cc_file': '<(gen_source_dir)/typed_data_gen.cc',
|
| 'typed_data_patch_cc_file': '<(gen_source_dir)/typed_data_patch_gen.cc',
|
| 'vmservice_cc_file': '<(gen_source_dir)/vmservice_gen.cc',
|
| + 'vmservice_patch_cc_file': '<(gen_source_dir)/vmservice_patch_gen.cc',
|
| },
|
| 'targets': [
|
| {
|
| @@ -182,6 +183,7 @@
|
| 'generate_typed_data_cc_file#host',
|
| 'generate_typed_data_patch_cc_file#host',
|
| 'generate_vmservice_cc_file#host',
|
| + 'generate_vmservice_patch_cc_file#host',
|
| ],
|
| 'includes': [
|
| '../lib/async_sources.gypi',
|
| @@ -219,6 +221,7 @@
|
| '<(typed_data_cc_file)',
|
| '<(typed_data_patch_cc_file)',
|
| '<(vmservice_cc_file)',
|
| + '<(vmservice_patch_cc_file)',
|
| ],
|
| 'include_dirs': [
|
| '..',
|
| @@ -1079,7 +1082,8 @@
|
| 'type': 'none',
|
| 'toolsets':['host'],
|
| 'includes': [
|
| - '../lib/vmservice_sources.gypi',
|
| + # Load the shared library sources.
|
| + '../../sdk/lib/vmservice/vmservice_sources.gypi',
|
| ],
|
| 'sources/': [
|
| # Exclude all .[cc|h] files.
|
| @@ -1105,7 +1109,7 @@
|
| '--output', '<(vmservice_cc_file)',
|
| '--input_cc', '<(libgen_in_cc_file)',
|
| '--include', 'vm/bootstrap.h',
|
| - '--var_name', 'dart::Bootstrap::vmservice_source_paths_',
|
| + '--var_name', 'dart::Bootstrap::_vmservice_source_paths_',
|
| '--library_name', 'dart:_vmservice',
|
| '<@(_sources)',
|
| ],
|
| @@ -1113,5 +1117,45 @@
|
| },
|
| ]
|
| },
|
| + {
|
| + 'target_name': 'generate_vmservice_patch_cc_file',
|
| + 'type': 'none',
|
| + 'toolsets':['host'],
|
| + 'includes': [
|
| + # Load the runtime implementation sources.
|
| + '../lib/vmservice_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_vmservice_patch_cc',
|
| + 'inputs': [
|
| + '../tools/gen_library_src_paths.py',
|
| + '<(libgen_in_cc_file)',
|
| + '<@(_sources)',
|
| + ],
|
| + 'outputs': [
|
| + '<(vmservice_patch_cc_file)',
|
| + ],
|
| + 'action': [
|
| + 'python',
|
| + 'tools/gen_library_src_paths.py',
|
| + '--output', '<(vmservice_patch_cc_file)',
|
| + '--input_cc', '<(libgen_in_cc_file)',
|
| + '--include', 'vm/bootstrap.h',
|
| + '--var_name', 'dart::Bootstrap::_vmservice_patch_paths_',
|
| + '--library_name', 'dart:_vmservice',
|
| + '<@(_sources)',
|
| + ],
|
| + 'message': 'Generating ''<(vmservice_patch_cc_file)'' file.'
|
| + },
|
| + ]
|
| + },
|
| ]
|
| }
|
|
|