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 declare_args() { |
| 9 # Enable to include Polymer 0.8 in the binary. |
| 10 enable_polymer_v08 = false |
| 11 } |
| 12 |
8 # GYP version: ui/resources/ui_resources.gyp:ui_resources | 13 # GYP version: ui/resources/ui_resources.gyp:ui_resources |
9 group("resources") { | 14 group("resources") { |
10 deps = [ | 15 deps = [ |
11 ":ui_resources_grd", | 16 ":ui_resources_grd", |
12 ":ui_unscaled_resources_grd", | 17 ":ui_unscaled_resources_grd", |
13 ":webui_resources_grd", | 18 ":webui_resources_grd", |
14 ] | 19 ] |
15 } | 20 } |
16 | 21 |
17 grit("ui_resources_grd") { | 22 grit("ui_resources_grd") { |
(...skipping 10 matching lines...) Expand all Loading... |
28 | 33 |
29 grit("ui_unscaled_resources_grd") { | 34 grit("ui_unscaled_resources_grd") { |
30 source = "ui_unscaled_resources.grd" | 35 source = "ui_unscaled_resources.grd" |
31 use_qualified_include = true | 36 use_qualified_include = true |
32 outputs = [ | 37 outputs = [ |
33 "grit/ui_unscaled_resources.h", | 38 "grit/ui_unscaled_resources.h", |
34 "ui_unscaled_resources.rc", | 39 "ui_unscaled_resources.rc", |
35 ] | 40 ] |
36 } | 41 } |
37 | 42 |
| 43 webui_grit_defines = [] |
| 44 if (enable_polymer_v08) { |
| 45 webui_grit_defines += [ "enable_polymer_v08" ] |
| 46 } |
| 47 |
38 grit("webui_resources_grd") { | 48 grit("webui_resources_grd") { |
39 source = "../webui/resources/webui_resources.grd" | 49 source = "../webui/resources/webui_resources.grd" |
40 outputs = [ | 50 outputs = [ |
41 "grit/webui_resources.h", | 51 "grit/webui_resources.h", |
42 "grit/webui_resources_map.cc", | 52 "grit/webui_resources_map.cc", |
43 "grit/webui_resources_map.h", | 53 "grit/webui_resources_map.h", |
44 "webui_resources.pak", | 54 "webui_resources.pak", |
45 ] | 55 ] |
| 56 defines = webui_grit_defines |
46 } | 57 } |
47 | 58 |
48 if (!is_mac) { | 59 if (!is_mac) { |
49 copy("copy_ui_resources_100_percent") { | 60 copy("copy_ui_resources_100_percent") { |
50 sources = [ | 61 sources = [ |
51 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak", | 62 "$root_gen_dir/ui/resources/ui_resources_100_percent.pak", |
52 ] | 63 ] |
53 outputs = [ | 64 outputs = [ |
54 "$root_out_dir/ui_resources_100_percent.pak", | 65 "$root_out_dir/ui_resources_100_percent.pak", |
55 ] | 66 ] |
(...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", | 148 "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak", |
138 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", | 149 "$root_gen_dir/ui/strings/ui_strings_en-US.pak", |
139 ] | 150 ] |
140 | 151 |
141 output = "$root_out_dir/ui/en.lproj/locale.pak" | 152 output = "$root_out_dir/ui/en.lproj/locale.pak" |
142 | 153 |
143 deps = [ | 154 deps = [ |
144 "//ui/strings", | 155 "//ui/strings", |
145 ] | 156 ] |
146 } | 157 } |
OLD | NEW |