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 = [ |
11 ":ui_resources_grd", | 11 ":ui_resources_grd", |
12 ":ui_unscaled_resources_grd", | 12 ":ui_unscaled_resources_grd", |
13 ":webui_resources_grd", | 13 ":webui_resources_grd", |
14 ] | 14 ] |
15 } | 15 } |
16 | 16 |
17 grit("ui_resources_grd") { | 17 grit("ui_resources_grd") { |
18 visibility = ":resources" | 18 visibility = ":resources" |
19 source = "ui_resources.grd" | 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 ] |
20 } | 27 } |
21 | 28 |
22 grit("ui_unscaled_resources_grd") { | 29 grit("ui_unscaled_resources_grd") { |
23 visibility = ":resources" | 30 visibility = ":resources" |
24 source = "ui_unscaled_resources.grd" | 31 source = "ui_unscaled_resources.grd" |
| 32 outputs = [ |
| 33 "grit/ui_unscaled_resources.h", |
| 34 "ui_unscaled_resources.rc", |
| 35 ] |
25 } | 36 } |
26 | 37 |
27 grit("webui_resources_grd") { | 38 grit("webui_resources_grd") { |
28 visibility = ":resources" | 39 visibility = ":resources" |
29 source = "../webui/resources/webui_resources.grd" | 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 ] |
30 } | 47 } |
31 | 48 |
32 if (!is_mac) { | 49 if (!is_mac) { |
33 copy("copy_ui_resources_100_percent") { | 50 copy("copy_ui_resources_100_percent") { |
34 sources = [ "$root_gen_dir/ui/resources/ui_resources_100_percent.pak" ] | 51 sources = [ "$root_gen_dir/ui/resources/ui_resources_100_percent.pak" ] |
35 outputs = [ "$root_out_dir/ui_resources_100_percent.pak" ] | 52 outputs = [ "$root_out_dir/ui_resources_100_percent.pak" ] |
36 deps = [ "//ui/resources" ] | 53 deps = [ "//ui/resources" ] |
37 } | 54 } |
38 } | 55 } |
39 | 56 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 deps = [ | 88 deps = [ |
72 "//ui/resources", | 89 "//ui/resources", |
73 "//ui/strings", | 90 "//ui/strings", |
74 ] | 91 ] |
75 | 92 |
76 if (!is_mac) { | 93 if (!is_mac) { |
77 deps += [ ":copy_ui_resources_100_percent" ] | 94 deps += [ ":copy_ui_resources_100_percent" ] |
78 } | 95 } |
79 } | 96 } |
80 | 97 |
OLD | NEW |