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 =
25 rebase_path(_remoting_branding_abspath, root_build_dir)
27 version_major = exec_script(_version_py_abspath,
32 _remoting_version_path,
38 version_minor = exec_script(_version_py_abspath,
41 _remoting_version_path,
42 "-t \"@REMOTING_PATCH@\"",
48 "${version_major}.${version_minor}." + exec_script(_version_py_abspath,
53 _remoting_version_path,
59 version_full = "${version_short}." + exec_script(_version_py_abspath,
64 _remoting_version_path,
70 prefpane_bundle_name = exec_script(_version_py_abspath,
73 _remoting_branding_path,
74 "-t \"@MAC_PREFPANE_BUNDLE_NAME@\"",
79 host_bundle_name = exec_script(_version_py_abspath,
82 _remoting_branding_path,
83 "-t \"@MAC_HOST_BUNDLE_NAME@\"",