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

Unified Diff: runtime/dart-runtime.gyp

Issue 11086065: - Generate a version string based on the VERSION file. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
Index: runtime/dart-runtime.gyp
===================================================================
--- runtime/dart-runtime.gyp (revision 13511)
+++ runtime/dart-runtime.gyp (working copy)
@@ -11,6 +11,10 @@
'tools/gyp/runtime-configurations.gypi',
'../tools/gyp/source_filter.gypi',
],
+ 'variables': {
+ 'version_in_cc_file': 'vm/version_in.cc',
+ 'version_cc_file': '<(SHARED_INTERMEDIATE_DIR)/version.cc',
+ },
'targets': [
{
'target_name': 'libdart',
@@ -20,6 +24,7 @@
'libdart_vm',
'libjscre',
'libdouble_conversion',
+ 'generate_version_cc_file',
],
'include_dirs': [
'.',
@@ -29,6 +34,8 @@
'include/dart_debugger_api.h',
'vm/dart_api_impl.cc',
'vm/debugger_api_impl.cc',
+ 'vm/version.h',
+ '<(version_cc_file)',
],
'direct_dependent_settings': {
'include_dirs': [
@@ -46,6 +53,7 @@
'libdart_vm',
'libjscre',
'libdouble_conversion',
+ 'generate_version_cc_file',
],
'include_dirs': [
'.',
@@ -55,6 +63,8 @@
'include/dart_debugger_api.h',
'vm/dart_api_impl.cc',
'vm/debugger_api_impl.cc',
+ 'vm/version.h',
+ '<(version_cc_file)',
],
'defines': [
'DART_SHARED_LIB',
@@ -65,5 +75,29 @@
],
},
},
+ {
+ 'target_name': 'generate_version_cc_file',
+ 'type': 'none',
+ 'actions': [
+ {
+ 'action_name': 'generate_version_cc',
+ 'inputs': [
+ 'tools/make_version.py',
+ '../tools/VERSION',
+ '<(version_in_cc_file)',
+ ],
+ 'outputs': [
+ '<(version_cc_file)',
+ ],
+ 'action': [
+ 'python',
+ 'tools/make_version.py',
+ '--output', '<(version_cc_file)',
+ '--input', '<(version_in_cc_file)',
+ '--version', '../tools/VERSION',
+ ],
+ },
+ ],
+ },
],
}
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/include/dart_api.h » ('j') | runtime/tools/make_version.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698