Index: content/shell/BUILD.gn |
diff --git a/content/shell/BUILD.gn b/content/shell/BUILD.gn |
index 855fa20cc91f199c0b8fdd9184705e3e26c5573d..8bc189e41be213c7614a68ac1cbe23c8bd35d420 100644 |
--- a/content/shell/BUILD.gn |
+++ b/content/shell/BUILD.gn |
@@ -16,6 +16,7 @@ if (is_android) { |
} else if (is_mac) { |
import("//build/config/mac/rules.gni") |
import("//build_overrides/v8.gni") |
+ import("//build/mac/tweak_info_plist.gni") |
} |
declare_args() { |
@@ -431,6 +432,15 @@ if (is_android) { |
] |
} |
} else if (is_mac) { |
+ tweak_info_plist("content_shell_plist") { |
+ testonly = true |
+ info_plist = "app/app-Info.plist" |
+ args = [ |
+ "--scm=1", |
+ "--version", |
+ content_shell_version, |
+ ] |
+ } |
mac_app_bundle("content_shell") { |
testonly = true |
output_name = content_shell_product_name |
@@ -446,7 +456,7 @@ if (is_android) { |
# the bundle structure. |
"//components/test_runner:resources", |
] |
- info_plist = "app/app-Info.plist" |
+ info_plist_target = ":content_shell_plist" |
} |
} else { |
# TODO(brettw) when GYP is no longer necessary, delete |
@@ -567,6 +577,20 @@ if (is_mac) { |
content_shell_framework_name = "$content_shell_product_name Framework" |
content_shell_helper_name = "$content_shell_product_name Helper" |
+ tweak_info_plist("content_shell_framework_plist") { |
+ testonly = true |
+ info_plist = "app/framework-Info.plist" |
+ args = [ |
+ "--breakpad=1", |
+ "--keystone=0", |
+ "--scm=1", |
+ "--version", |
+ content_shell_version, |
+ "--branding", |
+ content_shell_product_name, |
+ ] |
+ } |
+ |
mac_framework_bundle("content_shell_framework") { |
testonly = true |
@@ -597,7 +621,19 @@ if (is_mac) { |
"@executable_path/../Frameworks/$output_name.framework/$output_name", |
] |
- info_plist = "app/framework-Info.plist" |
+ info_plist_target = ":content_shell_framework_plist" |
+ } |
+ |
+ tweak_info_plist("content_shell_helper_plist") { |
+ testonly = true |
+ info_plist = "app/helper-Info.plist" |
+ args = [ |
+ "--breakpad=0", |
+ "--keystone=0", |
+ "--scm=0", |
+ "--version", |
+ content_shell_version, |
+ ] |
} |
mac_app_bundle("content_shell_helper_app") { |
@@ -609,7 +645,7 @@ if (is_mac) { |
deps = [ |
":content_shell_framework+link", |
] |
- info_plist = "app/helper-Info.plist" |
+ info_plist_target = ":content_shell_helper_plist" |
} |
# The install_name_tool can only operate in-place, rather than producing a |