| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 "//ui/chromeos/resources", | 120 "//ui/chromeos/resources", |
| 121 "//ui/chromeos/strings", | 121 "//ui/chromeos/strings", |
| 122 ] | 122 ] |
| 123 } | 123 } |
| 124 | 124 |
| 125 if (toolkit_views) { | 125 if (toolkit_views) { |
| 126 deps += [ "//ui/views/resources" ] | 126 deps += [ "//ui/views/resources" ] |
| 127 sources += | 127 sources += |
| 128 [ "$root_gen_dir/ui/views/resources/views_resources_100_percent.pak" ] | 128 [ "$root_gen_dir/ui/views/resources/views_resources_100_percent.pak" ] |
| 129 } | 129 } |
| 130 |
| 131 if (enable_app_list) { |
| 132 deps += [ "//ui/app_list/resources" ] |
| 133 sources += [ "$root_gen_dir/ui/app_list/resources/app_list_resources_100_per
cent.pak" ] |
| 134 } |
| 130 } | 135 } |
| 131 | 136 |
| 132 # Repack just the strings for the framework locales on Mac and iOS. This | 137 # Repack just the strings for the framework locales on Mac and iOS. This |
| 133 # emulates repack_locales.py, but just for en-US. Note ui_test.pak is not simply | 138 # emulates repack_locales.py, but just for en-US. Note ui_test.pak is not simply |
| 134 # copied, because it causes leaks from allocations within system libraries when | 139 # copied, because it causes leaks from allocations within system libraries when |
| 135 # trying to load non-string resources. http://crbug.com/413034. | 140 # trying to load non-string resources. http://crbug.com/413034. |
| 136 repack("repack_ui_test_mac_locale_pack") { | 141 repack("repack_ui_test_mac_locale_pack") { |
| 137 visibility = [ | 142 visibility = [ |
| 138 ":ui_test_pak", | 143 ":ui_test_pak", |
| 139 "//:gn_visibility", # TODO(GYP): this shouldn't be necessary. | 144 "//:gn_visibility", # TODO(GYP): this shouldn't be necessary. |
| 140 ] | 145 ] |
| 141 | 146 |
| 142 sources = [ | 147 sources = [ |
| 143 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", | 148 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", |
| 144 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", | 149 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", |
| 145 ] | 150 ] |
| 146 | 151 |
| 147 output = "$root_out_dir/ui/en.lproj/locale.pak" | 152 output = "$root_out_dir/ui/en.lproj/locale.pak" |
| 148 | 153 |
| 149 deps = [ | 154 deps = [ |
| 150 "//ui/strings", | 155 "//ui/strings", |
| 151 ] | 156 ] |
| 152 } | 157 } |
| OLD | NEW |