Index: chrome/BUILD.gn |
diff --git a/chrome/BUILD.gn b/chrome/BUILD.gn |
index b1fd8a78aa6fe5107a4303d181715a453fd95c9b..e8a764ce13080b9c1d3e1059df64516f073aeb77 100644 |
--- a/chrome/BUILD.gn |
+++ b/chrome/BUILD.gn |
@@ -31,6 +31,7 @@ if (!is_android) { |
if (is_win) { |
sources += [ |
+ "$target_gen_dir/chrome_exe_version.rc", |
"app/chrome_exe_main_win.cc", |
"app/client_util.cc", |
"app/client_util.h", |
@@ -38,7 +39,10 @@ if (!is_android) { |
"app/signature_validator_win.h", |
"//content/app/startup_helper_win.cc", |
] |
- deps += [ "//ui/gfx" ] |
+ deps += [ |
+ ":chrome_version_resources", |
+ "//ui/gfx", |
+ ] |
} else if (use_aura) { |
# Non-Windows aura entrypoint. |
sources += [ "app/chrome_exe_main_aura.cc" ] |
@@ -139,7 +143,7 @@ shared_library("main_dll") { |
deps += [ |
# On Windows, link the dependencies (libraries) that make up actual |
# Chromium functionality into this .dll. |
- #'chrome_version_resources', TODO(GYP) |
+ ":chrome_version_resources", |
"//chrome/app/theme:chrome_unscaled_resources", |
"//chrome_elf", |
"//content/app/resources", |
@@ -252,6 +256,47 @@ if (is_win) { |
# source files including it should reference it via "chrome/version.h" |
output = "$root_gen_dir/version.h" |
} |
+ |
+ process_version("chrome_exe_version") { |
+ source = "//chrome/app/chrome_version.rc.version" |
+ output = "$target_gen_dir/chrome_exe_version.rc" |
+ extra_args = [ |
+ "-f", |
+ rebase_path("app/chrome_exe.ver", root_build_dir), |
+ ] |
+ } |
+ process_version("chrome_dll_version") { |
+ source = "//chrome/app/chrome_version.rc.version" |
+ output = "$target_gen_dir/chrome_dll_version.rc" |
+ extra_args = [ |
+ "-f", |
+ rebase_path("app/chrome_dll.ver", root_build_dir), |
+ ] |
+ } |
+ process_version("nacl64_exe_version") { |
+ source = "//chrome/app/chrome_version.rc.version" |
+ output = "$target_gen_dir/nacl64_exe_version.rc" |
+ extra_args = [ |
+ "-f", |
+ rebase_path("app/nacl64_exe.ver", root_build_dir), |
+ ] |
+ } |
+ process_version("other_version") { |
+ source = "//chrome/app/chrome_version.rc.version" |
+ output = "$target_gen_dir/other_version.rc" |
+ extra_args = [ |
+ "-f", |
+ rebase_path("app/other.ver", root_build_dir), |
+ ] |
+ } |
+ group("chrome_version_resources") { |
+ deps = [ |
+ ":chrome_exe_version", |
+ ":chrome_dll_version", |
+ ":nacl64_exe_version", |
+ ":other_version", |
+ ] |
+ } |
} |
# GYP version: chrome/chrome_resources.gyp:chrome_resources |