forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathremoting_version.gni
70 lines (61 loc) · 2.02 KB
/
remoting_version.gni
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
_version_py_abspath = "//build/util/version.py"
_remoting_version_abspath = "//remoting/VERSION"
_chrome_version_abspath = "//chrome/VERSION"
if (is_chrome_branded) {
_remoting_branding_abspath = "//remoting/branding_Chrome"
} else {
_remoting_branding_abspath = "//remoting/branding_Chromium"
}
# Set these files as being input dependencies to the scripts, so the build will
# be re-run if the files change.
_script_deps = [
_remoting_version_abspath,
_chrome_version_abspath,
_remoting_branding_abspath,
]
_chrome_version_path = rebase_path(_chrome_version_abspath, root_build_dir)
_remoting_version_path = rebase_path(_remoting_version_abspath, root_build_dir)
_remoting_branding_path = rebase_path(_remoting_branding_abspath,
root_build_dir)
version_major = exec_script(
_version_py_abspath,
[ "-f", _chrome_version_path,
"-f", _remoting_version_path,
"-t \"@MAJOR@\"" ],
"value",
_script_deps)
version_minor = exec_script(
_version_py_abspath,
[ "-f", _remoting_version_path,
"-t \"@REMOTING_PATCH@\"" ],
"value",
_script_deps)
version_short = "${version_major}.${version_minor}." + exec_script(
_version_py_abspath,
[ "-f", _chrome_version_path,
"-f", _remoting_version_path,
"-t \"@BUILD@\"" ],
"value",
_script_deps)
version_full = "${version_short}." + exec_script(
_version_py_abspath,
[ "-f", _chrome_version_path,
"-f", _remoting_version_path,
"-t \"@PATCH@\"" ],
"value",
_script_deps)
prefpane_bundle_name = exec_script(
_version_py_abspath,
[ "-f", _remoting_branding_path,
"-t \"@MAC_PREFPANE_BUNDLE_NAME@\"" ],
"value",
_script_deps)
host_bundle_name = exec_script(
_version_py_abspath,
[ "-f", _remoting_branding_path,
"-t \"@MAC_HOST_BUNDLE_NAME@\"" ],
"value",
_script_deps)