summaryrefslogtreecommitdiffstats
path: root/remoting/remoting_version.gypi
diff options
context:
space:
mode:
authorgarykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-27 21:30:08 +0000
committergarykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-27 21:30:08 +0000
commitcca66ef63dfb375edd9e5f1a8cb63d48e098550c (patch)
treebd69553b0be38d0de3e558f1661e6d0c9f7a7365 /remoting/remoting_version.gypi
parente7500b2b4d7bd6fe654dc6c870594d6bf005dbd9 (diff)
downloadchromium_src-cca66ef63dfb375edd9e5f1a8cb63d48e098550c.zip
chromium_src-cca66ef63dfb375edd9e5f1a8cb63d48e098550c.tar.gz
chromium_src-cca66ef63dfb375edd9e5f1a8cb63d48e098550c.tar.bz2
Move remoting version info into separate .gypi file.
BUG= Review URL: https://codereview.chromium.org/137623007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247297 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/remoting_version.gypi')
-rw-r--r--remoting/remoting_version.gypi27
1 files changed, 27 insertions, 0 deletions
diff --git a/remoting/remoting_version.gypi b/remoting/remoting_version.gypi
new file mode 100644
index 0000000..2ce1409
--- /dev/null
+++ b/remoting/remoting_version.gypi
@@ -0,0 +1,27 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'variables': {
+ # The |major|, |build| and |patch| versions are inherited from Chrome.
+ # Since Chrome's |minor| version is always '0', we replace it with a
+ # Chromoting-specific patch version.
+ # Note that we check both the |chrome_version_path| file and the
+ # |remoting_version_path| so that we can override the Chrome version
+ # numbers if needed.
+ 'version_py_path': '../chrome/tools/build/version.py',
+ 'remoting_version_path': '../remoting/VERSION',
+ 'chrome_version_path': '../chrome/VERSION',
+ 'version_major':
+ '<!(python <(version_py_path) -f <(chrome_version_path) -f <(remoting_version_path) -t "@MAJOR@")',
+ 'version_minor':
+ '<!(python <(version_py_path) -f <(remoting_version_path) -t "@REMOTING_PATCH@")',
+ 'version_short':
+ '<(version_major).<(version_minor).'
+ '<!(python <(version_py_path) -f <(chrome_version_path) -f <(remoting_version_path) -t "@BUILD@")',
+ 'version_full':
+ '<(version_short).'
+ '<!(python <(version_py_path) -f <(chrome_version_path) -f <(remoting_version_path) -t "@PATCH@")',
+ },
+}