Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: remoting/remoting_version.gni

Issue 1250853007: Hook up chrome.exe manifest in the Windows GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/BUILD.gn ('k') | remoting/webapp/build_template.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 _chrome_version_abspath = "//chrome/VERSION"
10 if (is_chrome_branded) { 9 if (is_chrome_branded) {
11 _remoting_branding_abspath = "//remoting/branding_Chrome" 10 _remoting_branding_abspath = "//remoting/branding_Chrome"
12 } else { 11 } else {
13 _remoting_branding_abspath = "//remoting/branding_Chromium" 12 _remoting_branding_abspath = "//remoting/branding_Chromium"
14 } 13 }
15 14
16 # 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
17 # be re-run if the files change. 16 # be re-run if the files change.
18 remoting_version_files = [ 17 remoting_version_files = [
19 _remoting_version_abspath, 18 _remoting_version_abspath,
20 _chrome_version_abspath,
21 _remoting_branding_abspath, 19 _remoting_branding_abspath,
22 ] 20 ]
23 21
24 _chrome_version_path = rebase_path(_chrome_version_abspath, root_build_dir)
25 _remoting_version_path = rebase_path(_remoting_version_abspath, root_build_dir) 22 _remoting_version_path = rebase_path(_remoting_version_abspath, root_build_dir)
26 _remoting_branding_path = 23 _remoting_branding_path =
27 rebase_path(_remoting_branding_abspath, root_build_dir) 24 rebase_path(_remoting_branding_abspath, root_build_dir)
28 25
29 version_major = exec_script(_version_py_abspath,
30 [
31 "-f",
32 _chrome_version_path,
33 "-f",
34 _remoting_version_path,
35 "-t \"@MAJOR@\"",
36 ],
37 "value",
38 remoting_version_files)
39
40 version_minor = exec_script(_version_py_abspath,
41 [
42 "-f",
43 _remoting_version_path,
44 "-t \"@REMOTING_PATCH@\"",
45 ],
46 "value",
47 remoting_version_files)
48
49 version_short =
50 "${version_major}.${version_minor}." + exec_script(_version_py_abspath,
51 [
52 "-f",
53 _chrome_version_path,
54 "-f",
55 _remoting_version_path,
56 "-t \"@BUILD@\"",
57 ],
58 "value",
59 remoting_version_files)
60
61 version_full = "${version_short}." + exec_script(_version_py_abspath,
62 [
63 "-f",
64 _chrome_version_path,
65 "-f",
66 _remoting_version_path,
67 "-t \"@PATCH@\"",
68 ],
69 "value",
70 remoting_version_files)
71
72 prefpane_bundle_name = exec_script(_version_py_abspath, 26 prefpane_bundle_name = exec_script(_version_py_abspath,
73 [ 27 [
74 "-f", 28 "-f",
75 _remoting_branding_path, 29 _remoting_branding_path,
76 "-t \"@MAC_PREFPANE_BUNDLE_NAME@\"", 30 "-t \"@MAC_PREFPANE_BUNDLE_NAME@\"",
77 ], 31 ],
78 "string", 32 "string",
79 remoting_version_files) 33 remoting_version_files)
80 34
81 host_bundle_name = exec_script(_version_py_abspath, 35 host_bundle_name = exec_script(_version_py_abspath,
82 [ 36 [
83 "-f", 37 "-f",
84 _remoting_branding_path, 38 _remoting_branding_path,
85 "-t \"@MAC_HOST_BUNDLE_NAME@\"", 39 "-t \"@MAC_HOST_BUNDLE_NAME@\"",
86 ], 40 ],
87 "string", 41 "string",
88 remoting_version_files) 42 remoting_version_files)
OLDNEW
« no previous file with comments | « remoting/BUILD.gn ('k') | remoting/webapp/build_template.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698