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"
21 "grit/ui_resources.h",
22 "grit/ui_resources_map.cc",
23 "grit/ui_resources_map.h",
24 "ui_resources_100_percent.pak",
25 "ui_resources_200_percent.pak",
29 grit("ui_unscaled_resources_grd") {
30 visibility = ":resources"
31 source = "ui_unscaled_resources.grd"
33 "grit/ui_unscaled_resources.h",
34 "ui_unscaled_resources.rc",
38 grit("webui_resources_grd") {
39 visibility = ":resources"
40 source = "../webui/resources/webui_resources.grd"
42 "grit/webui_resources.h",
43 "grit/webui_resources_map.cc",
44 "grit/webui_resources_map.h",
45 "webui_resources.pak",
50 copy("copy_ui_resources_100_percent") {
51 sources = [ "$root_gen_dir/ui/resources/ui_resources_100_percent.pak" ]
52 outputs = [ "$root_out_dir/ui_resources_100_percent.pak" ]
53 deps = [ "//ui/resources" ]
57 # On iOS the output needs to additionally be copied to another location, so
58 # we have this intermediate step.
60 # GYP version: ui/resources/ui_resources.gyp:ui_test_pak
61 # (copy_ui_test_pak action)
64 sources = [ "$root_out_dir/ui_test.pak" ]
65 outputs = [ "$root_out_dir/ui/en.lproj/locale.pak" ]
66 deps = [ ":repack_ui_test_pak" ]
69 group("ui_test_pak") {
70 deps = [ ":repack_ui_test_pak" ]
74 # GYP version: ui/resources/ui_resources.gyp:ui_test_pak
75 repack("repack_ui_test_pak") {
76 # Depend on ui_test_pak instead of this one.
77 visibility = ":ui_test_pak"
80 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak",
81 "$root_gen_dir/ui/resources/webui_resources.pak",
82 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak",
83 "$root_gen_dir/ui/strings/ui_strings_en-US.pak",
86 output = "$root_out_dir/ui_test.pak"
94 deps += [ ":copy_ui_resources_100_percent" ]