Remove implicit conversions from scoped_refptr to T* in media/
[chromium-blink-merge.git] / ui / resources / BUILD.gn
blobe4dbd9386e0d6e5f0e5308a65388cfe2fab04290
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
9 group("resources") {
10   deps = [
11     ":ui_resources_grd",
12     ":ui_unscaled_resources_grd",
13     ":webui_resources_grd",
14   ]
17 grit("ui_resources_grd") {
18   visibility = ":resources"
19   source = "ui_resources.grd"
20   outputs = [
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",
26   ]
29 grit("ui_unscaled_resources_grd") {
30   visibility = ":resources"
31   source = "ui_unscaled_resources.grd"
32   outputs = [
33     "grit/ui_unscaled_resources.h",
34     "ui_unscaled_resources.rc",
35   ]
38 grit("webui_resources_grd") {
39   visibility = ":resources"
40   source = "../webui/resources/webui_resources.grd"
41   outputs = [
42     "grit/webui_resources.h",
43     "grit/webui_resources_map.cc",
44     "grit/webui_resources_map.h",
45     "webui_resources.pak",
46   ]
49 if (!is_mac) {
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" ]
54   }
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)
62 if (is_ios) {
63   copy("ui_test_pak") {
64     sources = [ "$root_out_dir/ui_test.pak" ]
65     outputs = [ "$root_out_dir/ui/en.lproj/locale.pak" ]
66     deps = [ ":repack_ui_test_pak" ]
67   }
68 } else {
69   group("ui_test_pak") {
70     deps = [ ":repack_ui_test_pak" ]
71   }
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"
79   sources = [ 
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",
84   ]
86   output = "$root_out_dir/ui_test.pak"
88   deps = [
89     "//ui/resources",
90     "//ui/strings",
91   ]
93   if (!is_mac) {
94     deps += [ ":copy_ui_resources_100_percent" ]
95   }