OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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/win/manifest.gni") | 5 import("//build/config/win/manifest.gni") |
6 import("//build/util/process_version.gni") | |
7 import("//build/util/version.gni") | 6 import("//build/util/version.gni") |
| 7 import("//chrome/version.gni") |
8 | 8 |
9 version_assembly_output_file = "$target_gen_dir/version_assembly.manifest" | 9 version_assembly_output_file = "$target_gen_dir/version_assembly.manifest" |
10 | 10 |
11 # Generates a manifest file with the current build's version information. | 11 # Generates a manifest file with the current build's version information. |
12 process_version("chrome_exe_version_manifest") { | 12 process_version("chrome_exe_version_manifest") { |
13 visibility = [ ":*" ] | 13 visibility = [ ":*" ] |
14 template_file = "chrome_exe_manifest.template" | 14 template_file = "chrome_exe_manifest.template" |
15 sources = [ | |
16 "//chrome/VERSION", | |
17 ] | |
18 output = version_assembly_output_file | 15 output = version_assembly_output_file |
19 } | 16 } |
20 | 17 |
21 # Generates the manifest for chrome.exe. This is the normal manifest stuff plus | 18 # Generates the manifest for chrome.exe. This is the normal manifest stuff plus |
22 # the version information. | 19 # the version information. |
23 windows_manifest("chrome_exe_manifest") { | 20 windows_manifest("chrome_exe_manifest") { |
24 sources = [ | 21 sources = [ |
25 as_invoker_manifest, | 22 as_invoker_manifest, |
26 common_controls_manifest, | 23 common_controls_manifest, |
27 default_compatibility_manifest, | 24 default_compatibility_manifest, |
28 version_assembly_output_file, | 25 version_assembly_output_file, |
29 ] | 26 ] |
30 | 27 |
31 type = "exe" | 28 type = "exe" |
32 | 29 |
33 deps = [ | 30 deps = [ |
34 ":chrome_exe_version_manifest", | 31 ":chrome_exe_version_manifest", |
35 ] | 32 ] |
36 } | 33 } |
37 | 34 |
38 # Generates the manifest for the version assembly, which is the versioned | 35 # Generates the manifest for the version assembly, which is the versioned |
39 # directory where Chrome finds chrome.dll. | 36 # directory where Chrome finds chrome.dll. |
40 process_version("version_assembly_manifest") { | 37 process_version("version_assembly_manifest") { |
41 template_file = "version_assembly_manifest.template" | 38 template_file = "version_assembly_manifest.template" |
42 sources = [ | |
43 "//chrome/VERSION", | |
44 ] | |
45 output = "$root_build_dir/$chrome_version_full.manifest" | 39 output = "$root_build_dir/$chrome_version_full.manifest" |
46 process_only = true | 40 process_only = true |
47 } | 41 } |
OLD | NEW |