| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//tools/grit/grit_rule.gni") | 5 import("//tools/grit/grit_rule.gni") |
| 6 import("//tools/grit/repack.gni") | 6 import("//tools/grit/repack.gni") |
| 7 | 7 |
| 8 # GYP version: ui/resources/ui_resources.gyp:ui_resources | 8 # GYP version: ui/resources/ui_resources.gyp:ui_resources |
| 9 group("resources") { | 9 group("resources") { |
| 10 deps = [ | 10 deps = [ |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 ] | 126 ] |
| 127 } | 127 } |
| 128 | 128 |
| 129 if (toolkit_views) { | 129 if (toolkit_views) { |
| 130 deps += [ "//ui/views/resources" ] | 130 deps += [ "//ui/views/resources" ] |
| 131 sources += [ | 131 sources += [ |
| 132 "$root_gen_dir/blink/public/resources/blink_resources.pak", | 132 "$root_gen_dir/blink/public/resources/blink_resources.pak", |
| 133 "$root_gen_dir/ui/views/resources/views_resources_100_percent.pak", | 133 "$root_gen_dir/ui/views/resources/views_resources_100_percent.pak", |
| 134 ] | 134 ] |
| 135 } | 135 } |
| 136 |
| 137 if (enable_app_list) { |
| 138 deps += [ "//ui/app_list/resources" ] |
| 139 sources += [ "$root_gen_dir/ui/app_list/resources/app_list_resources_100_per
cent.pak" ] |
| 140 } |
| 136 } | 141 } |
| 137 | 142 |
| 138 # Repack just the strings for the framework locales on Mac and iOS. This | 143 # Repack just the strings for the framework locales on Mac and iOS. This |
| 139 # emulates repack_locales.py, but just for en-US. Note ui_test.pak is not simply | 144 # emulates repack_locales.py, but just for en-US. Note ui_test.pak is not simply |
| 140 # copied, because it causes leaks from allocations within system libraries when | 145 # copied, because it causes leaks from allocations within system libraries when |
| 141 # trying to load non-string resources. http://crbug.com/413034. | 146 # trying to load non-string resources. http://crbug.com/413034. |
| 142 repack("repack_ui_test_mac_locale_pack") { | 147 repack("repack_ui_test_mac_locale_pack") { |
| 143 visibility = [ | 148 visibility = [ |
| 144 ":ui_test_pak", | 149 ":ui_test_pak", |
| 145 "//:gn_visibility", # TODO(GYP): this shouldn't be necessary. | 150 "//:gn_visibility", # TODO(GYP): this shouldn't be necessary. |
| 146 ] | 151 ] |
| 147 | 152 |
| 148 sources = [ | 153 sources = [ |
| 149 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", | 154 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", |
| 150 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", | 155 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", |
| 151 ] | 156 ] |
| 152 | 157 |
| 153 output = "$root_out_dir/ui/en.lproj/locale.pak" | 158 output = "$root_out_dir/ui/en.lproj/locale.pak" |
| 154 | 159 |
| 155 deps = [ | 160 deps = [ |
| 156 "//ui/strings", | 161 "//ui/strings", |
| 157 ] | 162 ] |
| 158 } | 163 } |
| OLD | NEW |