1# Copyright 2014 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5{
6  'variables': {
7    # The |major|, |build| and |patch| versions are inherited from Chrome.
8    # Since Chrome's |minor| version is always '0', we replace it with a
9    # Chromoting-specific patch version.
10    # Note that we check both the |chrome_version_path| file and the
11    # |remoting_version_path| so that we can override the Chrome version
12    # numbers if needed.
13    'version_py_path': '../build/util/version.py',
14    'remoting_version_path': '../remoting/VERSION',
15    'chrome_version_path': '../chrome/VERSION',
16    'version_major':
17      '<!(python <(version_py_path) -f <(chrome_version_path) -f <(remoting_version_path) -t "@MAJOR@")',
18    'version_minor':
19      '<!(python <(version_py_path) -f <(remoting_version_path) -t "@REMOTING_PATCH@")',
20    'version_short':
21      '<(version_major).<(version_minor).'
22      '<!(python <(version_py_path) -f <(chrome_version_path) -f <(remoting_version_path) -t "@BUILD@")',
23    'version_full':
24      '<(version_short).'
25      '<!(python <(version_py_path) -f <(chrome_version_path) -f <(remoting_version_path) -t "@PATCH@")',
26  },
27}
28