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 import("//build/config/chrome_build.gni")
7 _version_py_abspath = "//build/util/version.py"
8 _remoting_version_abspath = "//remoting/VERSION"
9 _chrome_version_abspath = "//chrome/VERSION"
10 if (is_chrome_branded) {
11 _remoting_branding_abspath = "//remoting/branding_Chrome"
13 _remoting_branding_abspath = "//remoting/branding_Chromium"
16 # Set these files as being input dependencies to the scripts, so the build will
17 # be re-run if the files change.
19 _remoting_version_abspath,
20 _chrome_version_abspath,
21 _remoting_branding_abspath,
24 _chrome_version_path = rebase_path(_chrome_version_abspath, root_build_dir)
25 _remoting_version_path = rebase_path(_remoting_version_abspath, root_build_dir)
26 _remoting_branding_path =
27 rebase_path(_remoting_branding_abspath, root_build_dir)
29 version_major = exec_script(_version_py_abspath,
34 _remoting_version_path,
40 version_minor = exec_script(_version_py_abspath,
43 _remoting_version_path,
44 "-t \"@REMOTING_PATCH@\"",
50 "${version_major}.${version_minor}." + exec_script(_version_py_abspath,
55 _remoting_version_path,
61 version_full = "${version_short}." + exec_script(_version_py_abspath,
66 _remoting_version_path,
72 prefpane_bundle_name = exec_script(_version_py_abspath,
75 _remoting_branding_path,
76 "-t \"@MAC_PREFPANE_BUNDLE_NAME@\"",
81 host_bundle_name = exec_script(_version_py_abspath,
84 _remoting_branding_path,
85 "-t \"@MAC_HOST_BUNDLE_NAME@\"",