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("//build/module_args/v8.gni") | 5 import("//build/module_args/v8.gni") |
6 import("//mojo/mojo_application_package.gni") | 6 import("//mojo/mojo_application_package.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 import("//third_party/mojo/src/mojo/public/mojo.gni") | 8 import("//third_party/mojo/src/mojo/public/mojo.gni") |
9 import("//third_party/mojo/src/mojo/public/mojo_application.gni") | 9 import("//third_party/mojo/src/mojo/public/mojo_application.gni") |
| 10 import("//tools/grit/grit_rule.gni") |
10 import("//tools/grit/repack.gni") | 11 import("//tools/grit/repack.gni") |
11 | 12 |
12 # Repack this here. | 13 # Repack this here. |
13 repack("unified_blink_resources") { | 14 repack("unified_blink_resources") { |
14 sources = [ | 15 sources = [ |
15 "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak"
, | 16 "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak"
, |
16 "$root_gen_dir/blink/public/resources/blink_resources.pak", | 17 "$root_gen_dir/blink/public/resources/blink_resources.pak", |
17 ] | 18 ] |
18 output = "$target_gen_dir/unified_blink_resources.pak" | 19 output = "$target_gen_dir/unified_blink_resources.pak" |
19 deps = [ | 20 deps = [ |
(...skipping 18 matching lines...) Expand all Loading... |
38 ] | 39 ] |
39 deps = [ | 40 deps = [ |
40 ":unified_blink_resources", | 41 ":unified_blink_resources", |
41 ] | 42 ] |
42 public_deps = [ | 43 public_deps = [ |
43 "//third_party/WebKit/public:image_resources", | 44 "//third_party/WebKit/public:image_resources", |
44 "//third_party/WebKit/public:resources", | 45 "//third_party/WebKit/public:resources", |
45 ] | 46 ] |
46 } | 47 } |
47 | 48 |
| 49 grit("html_viewer_resources_grit") { |
| 50 source = "html_viewer_resources.grd" |
| 51 outputs = [ |
| 52 "grit/html_viewer_resources.h", |
| 53 "html_viewer_resources.pak", |
| 54 "html_viewer_resources.rc", |
| 55 ] |
| 56 } |
48 source_set("lib") { | 57 source_set("lib") { |
49 sources = [ | 58 sources = [ |
50 "$target_gen_dir/blink_resource_map.cc", | 59 "$target_gen_dir/blink_resource_map.cc", |
51 "$target_gen_dir/blink_resource_map.h", | 60 "$target_gen_dir/blink_resource_map.h", |
52 "ax_provider_impl.cc", | 61 "ax_provider_impl.cc", |
53 "ax_provider_impl.h", | 62 "ax_provider_impl.h", |
54 "blink_basic_type_converters.cc", | 63 "blink_basic_type_converters.cc", |
55 "blink_basic_type_converters.h", | 64 "blink_basic_type_converters.h", |
56 "blink_input_events_type_converters.cc", | 65 "blink_input_events_type_converters.cc", |
57 "blink_input_events_type_converters.h", | 66 "blink_input_events_type_converters.h", |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 } | 168 } |
160 | 169 |
161 mojo_application_package("html_viewer") { | 170 mojo_application_package("html_viewer") { |
162 sources = [ | 171 sources = [ |
163 "html_viewer.cc", | 172 "html_viewer.cc", |
164 "ui_setup.h", | 173 "ui_setup.h", |
165 "ui_setup_android.cc", | 174 "ui_setup_android.cc", |
166 "ui_setup_android.h", | 175 "ui_setup_android.h", |
167 ] | 176 ] |
168 deps = [ | 177 deps = [ |
| 178 ":html_viewer_resources_grit", |
169 ":lib", | 179 ":lib", |
170 "//components/resource_provider/public/cpp", | 180 "//components/resource_provider/public/cpp", |
171 "//components/resource_provider/public/interfaces", | 181 "//components/resource_provider/public/interfaces", |
172 "//mojo/common", | 182 "//mojo/common", |
173 "//mojo/platform_handle", | 183 "//mojo/platform_handle", |
174 "//third_party/icu:icudata", | 184 "//third_party/icu:icudata", |
175 "//ui/resources:ui_test_pak", | 185 "//ui/resources:ui_test_pak", |
176 ] | 186 ] |
177 data_deps = [ | 187 data_deps = [ |
178 "//mojo/services/network:network", | 188 "//mojo/services/network:network", |
179 "//components/resource_provider", | 189 "//components/resource_provider", |
180 ] | 190 ] |
181 resources = [ | 191 resources = [ |
182 "$root_out_dir/icudtl.dat", | 192 "$root_out_dir/icudtl.dat", |
183 "$root_out_dir/ui_test.pak", | 193 "$root_out_dir/ui_test.pak", |
| 194 "$target_gen_dir/html_viewer_resources.pak", |
184 ] | 195 ] |
185 | 196 |
186 if (v8_use_external_startup_data) { | 197 if (v8_use_external_startup_data) { |
187 resources += [ | 198 resources += [ |
188 "$root_build_dir/natives_blob.bin", | 199 "$root_build_dir/natives_blob.bin", |
189 "$root_build_dir/snapshot_blob.bin", | 200 "$root_build_dir/snapshot_blob.bin", |
190 ] | 201 ] |
191 } | 202 } |
192 } | 203 } |
193 | 204 |
(...skipping 18 matching lines...) Expand all Loading... |
212 ] | 223 ] |
213 | 224 |
214 deps = [ | 225 deps = [ |
215 ":lib", | 226 ":lib", |
216 ":html_viewer", | 227 ":html_viewer", |
217 "//mojo/application:test_support", | 228 "//mojo/application:test_support", |
218 "//net:test_support", | 229 "//net:test_support", |
219 "//testing/gtest", | 230 "//testing/gtest", |
220 ] | 231 ] |
221 } | 232 } |
OLD | NEW |