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 import("//build/config/features.gni") | |
7 | 8 |
8 # GYP version: ui/resources/ui_resources.gyp:ui_resources | 9 # GYP version: ui/resources/ui_resources.gyp:ui_resources |
9 group("resources") { | 10 group("resources") { |
10 deps = [ | 11 deps = [ |
11 ":ui_resources_grd", | 12 ":ui_resources_grd", |
12 ":ui_unscaled_resources_grd", | 13 ":ui_unscaled_resources_grd", |
13 ":webui_resources_grd", | 14 ":webui_resources_grd", |
14 ] | 15 ] |
15 } | 16 } |
16 | 17 |
(...skipping 11 matching lines...) Expand all Loading... | |
28 | 29 |
29 grit("ui_unscaled_resources_grd") { | 30 grit("ui_unscaled_resources_grd") { |
30 source = "ui_unscaled_resources.grd" | 31 source = "ui_unscaled_resources.grd" |
31 use_qualified_include = true | 32 use_qualified_include = true |
32 outputs = [ | 33 outputs = [ |
33 "grit/ui_unscaled_resources.h", | 34 "grit/ui_unscaled_resources.h", |
34 "ui_unscaled_resources.rc", | 35 "ui_unscaled_resources.rc", |
35 ] | 36 ] |
36 } | 37 } |
37 | 38 |
39 webui_grit_defines = [] | |
40 if (enable_polymer_v08) { | |
brettw
2015/05/04 17:06:32
Are we expecting this flag to be used all over the
mark a. foltz
2015/05/04 17:55:19
Maybe it could go into grit_rule.gni, and the defi
| |
41 webui_grit_defines += [ "enable_polymer_v08" ] | |
42 } | |
43 | |
38 grit("webui_resources_grd") { | 44 grit("webui_resources_grd") { |
39 source = "../webui/resources/webui_resources.grd" | 45 source = "../webui/resources/webui_resources.grd" |
40 outputs = [ | 46 outputs = [ |
41 "grit/webui_resources.h", | 47 "grit/webui_resources.h", |
42 "grit/webui_resources_map.cc", | 48 "grit/webui_resources_map.cc", |
43 "grit/webui_resources_map.h", | 49 "grit/webui_resources_map.h", |
44 "webui_resources.pak", | 50 "webui_resources.pak", |
45 ] | 51 ] |
52 defines = webui_grit_defines | |
46 } | 53 } |
47 | 54 |
48 if (!is_mac) { | 55 if (!is_mac) { |
49 copy("copy_ui_resources_100_percent") { | 56 copy("copy_ui_resources_100_percent") { |
50 sources = [ | 57 sources = [ |
51 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak", | 58 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak", |
52 ] | 59 ] |
53 outputs = [ | 60 outputs = [ |
54 "$root_out_dir/ui_resources_100_percent.pak", | 61 "$root_out_dir/ui_resources_100_percent.pak", |
55 ] | 62 ] |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
137 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", | 144 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", |
138 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", | 145 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", |
139 ] | 146 ] |
140 | 147 |
141 output = "$root_out_dir/ui/en.lproj/locale.pak" | 148 output = "$root_out_dir/ui/en.lproj/locale.pak" |
142 | 149 |
143 deps = [ | 150 deps = [ |
144 "//ui/strings", | 151 "//ui/strings", |
145 ] | 152 ] |
146 } | 153 } |
OLD | NEW |