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

Unified Diff: headless/BUILD.gn

Issue 2829973002: add customized printing setting for headless (Closed)
Patch Set: nit change Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: headless/BUILD.gn
diff --git a/headless/BUILD.gn b/headless/BUILD.gn
index 55afe1f2833a2df59119165ab9391dc0350a1be4..11dd554b25b19fcd4e044919dbd0f1419a65feab 100644
--- a/headless/BUILD.gn
+++ b/headless/BUILD.gn
@@ -25,10 +25,32 @@ group("headless") {
]
}
+repack_locales("locale_pak") {
Eric Seckler 2017/04/20 09:15:28 I'm not very familiar with locales. Can you explai
jzfeng 2017/04/27 06:56:05 The locale pak is loaded by ResourceBundle::LoadLo
Eric Seckler 2017/04/27 08:57:00 I have two concerns about this: a) Would this have
altimin 2017/04/27 15:16:34 Yes, current approach does not support embedded re
jzfeng 2017/05/02 07:50:55 Thanks for the help! Managed to find a way to avoi
+ input_locales = [ "en-US" ]
+
+ if (!is_mac) {
+ output_locales = [ "en-US" ]
+ } else {
+ output_locales = [ "locale" ]
+ }
+
+ source_patterns = [
+ "$root_gen_dir/ui/strings/app_locale_settings_",
+ "$root_gen_dir/ui/strings/ui_strings_",
+ ]
+
+ deps = [
+ "//ui/strings",
+ ]
+
+ output_dir = "$root_out_dir/headless_locales"
+}
+
repack("pak") {
sources = [
"$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak",
"$root_gen_dir/blink/public/resources/blink_resources.pak",
+ "$root_gen_dir/components/components_resources.pak",
"$root_gen_dir/components/strings/components_strings_en-US.pak",
"$root_gen_dir/content/app/resources/content_resources_100_percent.pak",
"$root_gen_dir/content/app/strings/content_strings_en-US.pak",
@@ -51,6 +73,7 @@ repack("pak") {
deps = [
":resources",
+ "//components/resources:components_resources",
"//components/strings",
"//content:resources",
"//content/app/resources",
@@ -323,6 +346,7 @@ static_library("headless_lib") {
deps = [
":gen_devtools_client_api",
+ ":locale_pak",
":tab_socket",
":version_header",
"//components/crash/content/browser",

Powered by Google App Engine
This is Rietveld 408576698