1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
8 # GN version: //ui/resources
9 'target_name': 'ui_resources',
12 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/ui/resources',
16 'action_name': 'ui_resources',
18 'grit_grd_file': 'ui_resources.grd',
20 'includes': [ '../../build/grit_action.gypi' ],
23 'action_name': 'webui_resources',
25 'grit_grd_file': '../webui/resources/webui_resources.grd',
27 'includes': [ '../../build/grit_action.gypi' ],
30 'action_name': 'ui_unscaled_resources',
32 'grit_grd_file': 'ui_unscaled_resources.grd',
34 'includes': [ '../../build/grit_action.gypi' ],
37 'includes': [ '../../build/grit_target.gypi' ],
40 # This creates a pak file that contains the resources in src/ui.
41 # This pak file can be used by tests.
43 # GN version: //ui/resources:ui_test_pak
44 'target_name': 'ui_test_pak',
47 '../strings/ui_strings.gyp:ui_strings',
52 'action_name': 'repack_ui_test_pack',
55 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
56 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/webui_resources.pak',
57 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.pak',
58 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
60 'pak_output': '<(PRODUCT_DIR)/ui_test.pak',
64 '<(SHARED_INTERMEDIATE_DIR)/ui/chromeos/resources/ui_chromeos_resources_100_percent.pak',
65 '<(SHARED_INTERMEDIATE_DIR)/ui/chromeos/strings/ui_chromeos_strings_en-US.pak',
68 ['toolkit_views==1', {
70 '<(SHARED_INTERMEDIATE_DIR)/ui/views/resources/views_resources_100_percent.pak',
75 'includes': [ '../../build/repack_action.gypi' ],
81 '../chromeos/ui_chromeos.gyp:ui_chromeos_strings',
82 '../chromeos/ui_chromeos.gyp:ui_chromeos_resources',
85 ['toolkit_views==1', {
87 '../views/resources/views_resources.gyp:views_resources',
93 # GN version //ui/resources:copy_ui_resources_100_percent
94 'destination': '<(PRODUCT_DIR)/ui',
96 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
101 ['OS == "ios" or OS == "mac"', {
104 # GN version: //ui/resources:repack_ui_test_mac_locale_pack
105 # Repack just the strings for the framework locales on Mac and
106 # iOS. This emulates repack_locales.py, but just for en-US. Note
107 # ui_test.pak is not simply copied, because it causes leaks from
108 # allocations within system libraries when trying to load non-
109 # string resources. http://crbug.com/413034.
110 'action_name': 'repack_ui_test_mac_locale_pack',
113 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.pak',
114 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
116 'pak_output': '<(PRODUCT_DIR)/ui/en.lproj/locale.pak',
118 'includes': [ '../../build/repack_action.gypi' ],
122 ['OS != "mac" and OS !="ios"', {
125 'action_name': 'copy_ui_test_pak',
126 'message': 'Copying ui_test.pak into en-US.pak',
128 '<(PRODUCT_DIR)/ui_test.pak',
131 '<(PRODUCT_DIR)/ui/en-US.pak',