Blink roll 25b6bd3a7a131ffe68d809546ad1a20707915cdc:3a503f41ae42e5b79cfcd2ff10e65afde...
[chromium-blink-merge.git] / remoting / remoting_version.gni
blob53e83398c60db355ded70a41c7a4ef0adf2b1da7
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.
5 _version_py_abspath = "//build/util/version.py"
6 _remoting_version_abspath = "//remoting/VERSION"
7 _chrome_version_abspath = "//chrome/VERSION"
8 if (is_chrome_branded) {
9   _remoting_branding_abspath = "//remoting/branding_Chrome"
10 } else {
11   _remoting_branding_abspath = "//remoting/branding_Chromium"
14 # Set these files as being input dependencies to the scripts, so the build will
15 # be re-run if the files change.
16 _script_deps = [
17   _remoting_version_abspath,
18   _chrome_version_abspath,
19   _remoting_branding_abspath,
22 _chrome_version_path = rebase_path(_chrome_version_abspath, root_build_dir)
23 _remoting_version_path = rebase_path(_remoting_version_abspath, root_build_dir)
24 _remoting_branding_path = rebase_path(_remoting_branding_abspath,
25                                       root_build_dir)
27 version_major = exec_script(
28     _version_py_abspath,
29     [ "-f", _chrome_version_path,
30       "-f", _remoting_version_path,
31       "-t \"@MAJOR@\"" ],
32     "value",
33     _script_deps)
35 version_minor = exec_script(
36     _version_py_abspath,
37     [ "-f", _remoting_version_path,
38       "-t \"@REMOTING_PATCH@\"" ],
39     "value",
40     _script_deps)
42 version_short = "${version_major}.${version_minor}." + exec_script(
43     _version_py_abspath,
44     [ "-f", _chrome_version_path,
45       "-f", _remoting_version_path,
46       "-t \"@BUILD@\"" ],
47     "value",
48     _script_deps)
50 version_full = "${version_short}." + exec_script(
51     _version_py_abspath,
52     [ "-f", _chrome_version_path,
53       "-f", _remoting_version_path,
54       "-t \"@PATCH@\"" ],
55     "value",
56     _script_deps)
58 prefpane_bundle_name = exec_script(
59     _version_py_abspath,
60     [ "-f", _remoting_branding_path,
61       "-t \"@MAC_PREFPANE_BUNDLE_NAME@\"" ],
62     "value",
63     _script_deps)
65 host_bundle_name = exec_script(
66     _version_py_abspath,
67     [ "-f", _remoting_branding_path,
68       "-t \"@MAC_HOST_BUNDLE_NAME@\"" ],
69     "value",
70     _script_deps)