OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 _version_py_abspath = "//build/util/version.py" | 5 _version_py_abspath = "//build/util/version.py" |
6 _remoting_version_abspath = "//remoting/VERSION" | 6 _remoting_version_abspath = "//remoting/VERSION" |
7 _chrome_version_abspath = "//chrome/VERSION" | 7 _chrome_version_abspath = "//chrome/VERSION" |
8 if (is_chrome_branded) { | 8 if (is_chrome_branded) { |
9 _remoting_branding_abspath = "//remoting/branding_Chrome" | 9 _remoting_branding_abspath = "//remoting/branding_Chrome" |
10 } else { | 10 } else { |
11 _remoting_branding_abspath = "//remoting/branding_Chromium" | 11 _remoting_branding_abspath = "//remoting/branding_Chromium" |
12 } | 12 } |
13 | 13 |
14 # Set these files as being input dependencies to the scripts, so the build will | 14 # Set these files as being input dependencies to the scripts, so the build will |
15 # be re-run if the files change. | 15 # be re-run if the files change. |
16 _script_deps = [ | 16 _script_deps = [ |
17 _remoting_version_abspath, | 17 _remoting_version_abspath, |
18 _chrome_version_abspath, | 18 _chrome_version_abspath, |
19 _remoting_branding_abspath, | 19 _remoting_branding_abspath, |
20 ] | 20 ] |
21 | 21 |
22 _chrome_version_path = rebase_path(_chrome_version_abspath, root_build_dir) | 22 _chrome_version_path = rebase_path(_chrome_version_abspath, root_build_dir) |
23 _remoting_version_path = rebase_path(_remoting_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, | 24 _remoting_branding_path = |
25 root_build_dir) | 25 rebase_path(_remoting_branding_abspath, root_build_dir) |
26 | 26 |
27 version_major = exec_script( | 27 version_major = exec_script(_version_py_abspath, |
28 _version_py_abspath, | 28 [ |
29 [ "-f", _chrome_version_path, | 29 "-f", |
30 "-f", _remoting_version_path, | 30 _chrome_version_path, |
31 "-t \"@MAJOR@\"" ], | 31 "-f", |
32 "value", | 32 _remoting_version_path, |
33 _script_deps) | 33 "-t \"@MAJOR@\"", |
| 34 ], |
| 35 "value", |
| 36 _script_deps) |
34 | 37 |
35 version_minor = exec_script( | 38 version_minor = exec_script(_version_py_abspath, |
36 _version_py_abspath, | 39 [ |
37 [ "-f", _remoting_version_path, | 40 "-f", |
38 "-t \"@REMOTING_PATCH@\"" ], | 41 _remoting_version_path, |
39 "value", | 42 "-t \"@REMOTING_PATCH@\"", |
40 _script_deps) | 43 ], |
| 44 "value", |
| 45 _script_deps) |
41 | 46 |
42 version_short = "${version_major}.${version_minor}." + exec_script( | 47 version_short = |
43 _version_py_abspath, | 48 "${version_major}.${version_minor}." + exec_script(_version_py_abspath, |
44 [ "-f", _chrome_version_path, | 49 [ |
45 "-f", _remoting_version_path, | 50 "-f", |
46 "-t \"@BUILD@\"" ], | 51 _chrome_version_path, |
47 "value", | 52 "-f", |
48 _script_deps) | 53 _remoting_version_path, |
| 54 "-t \"@BUILD@\"", |
| 55 ], |
| 56 "value", |
| 57 _script_deps) |
49 | 58 |
50 version_full = "${version_short}." + exec_script( | 59 version_full = "${version_short}." + exec_script(_version_py_abspath, |
51 _version_py_abspath, | 60 [ |
52 [ "-f", _chrome_version_path, | 61 "-f", |
53 "-f", _remoting_version_path, | 62 _chrome_version_path, |
54 "-t \"@PATCH@\"" ], | 63 "-f", |
55 "value", | 64 _remoting_version_path, |
56 _script_deps) | 65 "-t \"@PATCH@\"", |
| 66 ], |
| 67 "value", |
| 68 _script_deps) |
57 | 69 |
58 prefpane_bundle_name = exec_script( | 70 prefpane_bundle_name = exec_script(_version_py_abspath, |
59 _version_py_abspath, | 71 [ |
60 [ "-f", _remoting_branding_path, | 72 "-f", |
61 "-t \"@MAC_PREFPANE_BUNDLE_NAME@\"" ], | 73 _remoting_branding_path, |
62 "value", | 74 "-t \"@MAC_PREFPANE_BUNDLE_NAME@\"", |
63 _script_deps) | 75 ], |
| 76 "value", |
| 77 _script_deps) |
64 | 78 |
65 host_bundle_name = exec_script( | 79 host_bundle_name = exec_script(_version_py_abspath, |
66 _version_py_abspath, | 80 [ |
67 [ "-f", _remoting_branding_path, | 81 "-f", |
68 "-t \"@MAC_HOST_BUNDLE_NAME@\"" ], | 82 _remoting_branding_path, |
69 "value", | 83 "-t \"@MAC_HOST_BUNDLE_NAME@\"", |
70 _script_deps) | 84 ], |
| 85 "value", |
| 86 _script_deps) |
OLD | NEW |