Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Unified Diff: runtime/vm/vm.gypi

Issue 1396603002: Properly split dart:_vmservice across sdk and runtime (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/bootstrap.cc ('k') | sdk/lib/vmservice/client.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.'
+ },
+ ]
+ },
]
}
« no previous file with comments | « runtime/vm/bootstrap.cc ('k') | sdk/lib/vmservice/client.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698