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
3 # found in the LICENSE file.
5 import("//tools/grit/grit_rule.gni")
6 import("//tools/grit/repack.gni")
8 # GYP version: ui/resources/ui_resources.gyp:ui_resources
12 ":ui_unscaled_resources_grd",
13 ":webui_resources_grd",
17 grit("ui_resources_grd") {
18 visibility = ":resources"
19 source = "ui_resources.grd"
22 grit("ui_unscaled_resources_grd") {
23 visibility = ":resources"
24 source = "ui_unscaled_resources.grd"
27 grit("webui_resources_grd") {
28 visibility = ":resources"
29 source = "../webui/resources/webui_resources.grd"
33 copy("copy_ui_resources_100_percent") {
34 sources = [ "$root_gen_dir/ui/resources/ui_resources_100_percent.pak" ]
35 outputs = [ "$root_out_dir/ui_resources_100_percent.pak" ]
36 deps = [ "//ui/resources" ]
40 # On iOS the output needs to additionally be copied to another location, so
41 # we have this intermediate step.
43 # GYP version: ui/resources/ui_resources.gyp:ui_test_pak
44 # (copy_ui_test_pak action)
47 sources = [ "$root_out_dir/ui_test.pak" ]
48 outputs = [ "$root_out_dir/ui/en.lproj/locale.pak" ]
49 deps = [ ":repack_ui_test_pak" ]
52 group("ui_test_pak") {
53 deps = [ ":repack_ui_test_pak" ]
57 # GYP version: ui/resources/ui_resources.gyp:ui_test_pak
58 repack("repack_ui_test_pak") {
59 # Depend on ui_test_pak instead of this one.
60 visibility = ":ui_test_pak"
63 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak",
64 "$root_gen_dir/ui/resources/webui_resources.pak",
65 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak",
66 "$root_gen_dir/ui/strings/ui_strings_en-US.pak",
69 output = "$root_out_dir/ui_test.pak"
77 deps += [ ":copy_ui_resources_100_percent" ]