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 import("//build/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
6 | 6 |
7 _version_py_abspath = "//build/util/version.py" | 7 _version_py_abspath = "//build/util/version.py" |
8 _remoting_version_abspath = "//remoting/VERSION" | 8 _remoting_version_abspath = "//remoting/VERSION" |
9 if (is_chrome_branded) { | 9 if (is_chrome_branded) { |
10 _remoting_branding_abspath = "//remoting/branding_Chrome" | 10 _remoting_branding_abspath = "//remoting/branding_Chrome" |
11 } else { | 11 } else { |
12 _remoting_branding_abspath = "//remoting/branding_Chromium" | 12 _remoting_branding_abspath = "//remoting/branding_Chromium" |
13 } | 13 } |
14 | 14 |
15 # Set these files as being input dependencies to the scripts, so the build will | 15 # Set these files as being input dependencies to the scripts, so the build will |
16 # be re-run if the files change. | 16 # be re-run if the files change. |
17 remoting_version_files = [ | 17 remoting_version_files = [ |
18 _remoting_version_abspath, | 18 _remoting_version_abspath, |
19 _remoting_branding_abspath, | 19 _remoting_branding_abspath, |
20 ] | 20 ] |
21 | 21 |
22 _remoting_version_path = rebase_path(_remoting_version_abspath, root_build_dir) | 22 _remoting_version_path = rebase_path(_remoting_version_abspath, root_build_dir) |
23 _remoting_branding_path = | 23 _remoting_branding_path = |
24 rebase_path(_remoting_branding_abspath, root_build_dir) | 24 rebase_path(_remoting_branding_abspath, root_build_dir) |
25 | 25 |
26 prefpane_bundle_name = exec_script(_version_py_abspath, | 26 _branding_dictionary_template = "mac_host_bundle = \"@MAC_HOST_BUNDLE_NAME@\" "
+ "mac_native_messaging_bundle = \"@MAC_NATIVE_MESSAGING_HOST_BUNDLE_NAME@\" " +
"mac_remote_assistance_bundle = \"@MAC_REMOTE_ASSISTANCE_HOST_BUNDLE_NAME@\" "
+ "prefpane_bundle_name = \"@MAC_PREFPANE_BUNDLE_NAME@\" " + "host_bundle_name =
\"@MAC_HOST_BUNDLE_NAME@\" " |
27 [ | |
28 "-f", | |
29 _remoting_branding_path, | |
30 "-t \"@MAC_PREFPANE_BUNDLE_NAME@\"", | |
31 ], | |
32 "string", | |
33 remoting_version_files) | |
34 | 27 |
35 host_bundle_name = exec_script(_version_py_abspath, | 28 _result = exec_script(_version_py_abspath, |
36 [ | 29 [ |
37 "-f", | 30 "-f", |
38 _remoting_branding_path, | 31 _remoting_branding_path, |
39 "-t \"@MAC_HOST_BUNDLE_NAME@\"", | 32 "-t", |
40 ], | 33 _branding_dictionary_template, |
41 "string", | 34 ], |
42 remoting_version_files) | 35 "scope", |
| 36 remoting_version_files) |
| 37 |
| 38 prefpane_bundle_name = _result.prefpane_bundle_name |
| 39 host_bundle_name = _result.host_bundle_name |
| 40 me2me_host_bundle_name = _result.mac_host_bundle |
| 41 native_messaging_host_bundle_name = _result.mac_native_messaging_bundle |
| 42 remote_assistance_host_bundle_name = _result.mac_remote_assistance_bundle |
OLD | NEW |