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

Unified Diff: remoting/remoting.gyp

Issue 11058004: [Chromoting] Update remoting version numbering pattern (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update Windows version pattern 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: remoting/remoting.gyp
diff --git a/remoting/remoting.gyp b/remoting/remoting.gyp
index cdad93a8fe58ec62c9abeecc3374bacf5c4c98e7..24e682a642b8dac6273a578ab0d780285b82c6c9 100644
--- a/remoting/remoting.gyp
+++ b/remoting/remoting.gyp
@@ -11,17 +11,24 @@
'remoting_host_linux_clipboard%': 1,
'remoting_multi_process%': 0,
- # The version is composed from major & minor versions specific to remoting
- # and build & patch versions inherited from Chrome.
+ # The |major|, |build| and |patch| versions are inherited from Chrome.
+ # Since Chrome's |minor| version is always '0', we promote the |build|
+ # version and add a Chromoting-specific patch version at the end.
+ # We check both the |chrome_version_path| and the |remoting_version_path|
+ # so that we can override the Chrome version numbers if needed.
'version_py_path': '../chrome/tools/build/version.py',
- 'version_path': '../remoting/VERSION',
+ 'remoting_version_path': '../remoting/VERSION',
'chrome_version_path': '../chrome/VERSION',
- 'version_full':
- '<!(python <(version_py_path) -f <(version_path) -t "@MAJOR@.@MINOR@").'
- '<!(python <(version_py_path) -f <(chrome_version_path) -t "@BUILD@.@PATCH@")',
+ 'version_major':
+ '<!(python <(version_py_path) -f <(chrome_version_path) -f <(remoting_version_path) -t "@MAJOR@")',
+ 'version_minor':
+ '<!(python <(version_py_path) -f <(chrome_version_path) -f <(remoting_version_path) -t "@BUILD@")',
'version_short':
- '<!(python <(version_py_path) -f <(version_path) -t "@MAJOR@.@MINOR@").'
- '<!(python <(version_py_path) -f <(chrome_version_path) -t "@BUILD@")',
+ '<(version_major).<(version_minor).'
+ '<!(python <(version_py_path) -f <(chrome_version_path) -f <(remoting_version_path) -t "@PATCH@")',
+ 'version_full':
+ '<(version_short).'
+ '<!(python <(version_py_path) -f <(remoting_version_path) -t "@CHROMOTOPATCH@")',
'branding_path': '../remoting/branding_<(branding)',
'copyright_info': '<!(python <(version_py_path) -f <(branding_path) -t "@COPYRIGHT@")',
@@ -340,8 +347,8 @@
'defs': [
'VERSION=<(version_full)',
'VERSION_SHORT=<(version_short)',
- 'VERSION_MAJOR=<!(python <(version_py_path) -f <(version_path) -t "@MAJOR@")',
- 'VERSION_MINOR=<!(python <(version_py_path) -f <(version_path) -t "@MINOR@")',
+ 'VERSION_MAJOR=<(version_major)',
+ 'VERSION_MINOR=<(version_minor)',
'COPYRIGHT_INFO=<(copyright_info)',
'HOST_NAME=<(host_name)',
'HOST_SERVICE_NAME=<(host_service_name)',
@@ -635,8 +642,9 @@
# placed in the "<(SHARED_INTERMEDIATE_DIR)/remoting" folder.
# The substitution strings are taken from:
# - build/util/LASTCHANGE - the last source code revision.
- # - chrome/VERSION - the build & patch versions.
- # - remoting/VERSION - the major & minor versions.
+ # - chrome/VERSION - the major, build & patch versions.
+ # - remoting/VERSION - the chromoting patch version (and overrides
+ # for chrome/VERSION).
# - (branding_path) - UI/localizable strings.
# - xxx.ver - per-binary non-localizable strings such as the binary
# name.
@@ -647,7 +655,7 @@
'<(branding_path)',
'version.rc.version',
'<(DEPTH)/build/util/LASTCHANGE',
- '<(version_path)',
+ '<(remoting_version_path)',
'<(chrome_version_path)',
],
'direct_dependent_settings': {
@@ -672,7 +680,7 @@
},
'inputs': [
'<(template_input_path)',
- '<(version_path)',
+ '<(remoting_version_path)',
alexeypa (please no reviews) 2012/10/09 18:28:18 nit: sort these alphabetically.
garykac 2012/10/09 18:51:55 Done.
'<(chrome_version_path)',
'<(branding_path)',
'<(lastchange_path)',
@@ -685,7 +693,7 @@
'<(version_py_path)',
'-f', '<(RULE_INPUT_PATH)',
'-f', '<(chrome_version_path)',
- '-f', '<(version_path)',
+ '-f', '<(remoting_version_path)',
alexeypa (please no reviews) 2012/10/09 18:28:18 nit: add a comment saying the the order is importa
garykac 2012/10/09 18:51:55 Done.
'-f', '<(branding_path)',
'-f', '<(lastchange_path)',
'<(template_input_path)',
@@ -1129,7 +1137,7 @@
'sources': [
'webapp/build-webapp.py',
'webapp/verify-webapp.py',
- '<(version_path)',
+ '<(remoting_version_path)',
'<(chrome_version_path)',
'<@(remoting_webapp_files)',
'<@(remoting_webapp_locale_files)',
@@ -1181,7 +1189,7 @@
'inputs': [
'webapp/build-webapp.py',
'<(_plugin_path)',
- '<(version_path)',
+ '<(remoting_version_path)',
'<(chrome_version_path)',
'<@(remoting_webapp_files)',
'<@(remoting_webapp_locale_files)',
« remoting/VERSION ('K') | « remoting/VERSION ('k') | remoting/version.rc.version » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698