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

Unified Diff: ui/ui_resources.gypi

Issue 45753004: ui: Repack resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: does it matter? Created 7 years, 1 month 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
« no previous file with comments | « ui/base/resource/resource_bundle.cc ('k') | ui/views/run_all_unittests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ui_resources.gypi
diff --git a/ui/ui_resources.gypi b/ui/ui_resources.gypi
index 8336ef39828410366e94978ccbfd9287b91c6f5b..6a557bfc2fa0f138657449f8e31a8ac415c71e58 100644
--- a/ui/ui_resources.gypi
+++ b/ui/ui_resources.gypi
@@ -35,5 +35,39 @@
],
'includes': [ '../build/grit_target.gypi' ],
},
+ {
+ # We build a minimal set of resources so WebKit in content_shell has
+ # access to necessary resources.
+ 'target_name': 'ui_test_pak',
+ 'type': 'none',
+ 'dependencies': [
+ 'base/strings/ui_strings.gyp:ui_strings',
+ 'ui_resources',
+ ],
+ 'variables': {
+ 'repack_path': '../tools/grit/grit/format/repack.py',
+ },
+ 'actions': [
+ {
tony 2013/11/11 17:22:36 Nit: Weird indent. I guess the whole file has thi
+ 'action_name': 'repack_ui_test_pack',
+ 'variables': {
+ 'pak_inputs': [
+ '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_settings_en-US.pak',
+ '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_percent.pak',
+ '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/webui_resources.pak',
+ '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings/ui_strings_en-US.pak',
+ ],
+ },
+ 'inputs': [
+ '<(repack_path)',
+ '<@(pak_inputs)',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/ui_test.pak',
+ ],
+ 'action': ['python', '<(repack_path)', '<@(_outputs)', '<@(pak_inputs)'],
+ },
+ ],
+ },
],
}
« no previous file with comments | « ui/base/resource/resource_bundle.cc ('k') | ui/views/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698