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"
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.
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,
27 version_major = exec_script(
29 [ "-f", _chrome_version_path,
30 "-f", _remoting_version_path,
35 version_minor = exec_script(
37 [ "-f", _remoting_version_path,
38 "-t \"@REMOTING_PATCH@\"" ],
42 version_short = "${version_major}.${version_minor}." + exec_script(
44 [ "-f", _chrome_version_path,
45 "-f", _remoting_version_path,
50 version_full = "${version_short}." + exec_script(
52 [ "-f", _chrome_version_path,
53 "-f", _remoting_version_path,
58 prefpane_bundle_name = exec_script(
60 [ "-f", _remoting_branding_path,
61 "-t \"@MAC_PREFPANE_BUNDLE_NAME@\"" ],
65 host_bundle_name = exec_script(
67 [ "-f", _remoting_branding_path,
68 "-t \"@MAC_HOST_BUNDLE_NAME@\"" ],