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/public/mojo_application.gni") | 6 import("//mojo/public/mojo_application.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 import("//tools/grit/grit_rule.gni") | 8 import("//tools/grit/grit_rule.gni") |
9 import("//tools/grit/repack.gni") | 9 import("//tools/grit/repack.gni") |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
60 "ax_provider_impl.h", | 60 "ax_provider_impl.h", |
61 "blink_basic_type_converters.cc", | 61 "blink_basic_type_converters.cc", |
62 "blink_basic_type_converters.h", | 62 "blink_basic_type_converters.h", |
63 "blink_input_events_type_converters.cc", | 63 "blink_input_events_type_converters.cc", |
64 "blink_input_events_type_converters.h", | 64 "blink_input_events_type_converters.h", |
65 "blink_platform_impl.cc", | 65 "blink_platform_impl.cc", |
66 "blink_platform_impl.h", | 66 "blink_platform_impl.h", |
67 "blink_resource_constants.h", | 67 "blink_resource_constants.h", |
68 "blink_url_request_type_converters.cc", | 68 "blink_url_request_type_converters.cc", |
69 "blink_url_request_type_converters.h", | 69 "blink_url_request_type_converters.h", |
70 "content_handler_impl.cc", | |
71 "content_handler_impl.h", | |
70 "devtools_agent_impl.cc", | 72 "devtools_agent_impl.cc", |
71 "devtools_agent_impl.h", | 73 "devtools_agent_impl.h", |
72 "discardable_memory_allocator.cc", | 74 "discardable_memory_allocator.cc", |
73 "discardable_memory_allocator.h", | 75 "discardable_memory_allocator.h", |
74 "document_resource_waiter.cc", | 76 "document_resource_waiter.cc", |
75 "document_resource_waiter.h", | 77 "document_resource_waiter.h", |
76 "frame.cc", | 78 "frame.cc", |
77 "frame.h", | 79 "frame.h", |
78 "frame_tree_manager.cc", | 80 "frame_tree_manager.cc", |
79 "frame_tree_manager.h", | 81 "frame_tree_manager.h", |
80 "frame_tree_manager_delegate.h", | 82 "frame_tree_manager_delegate.h", |
81 "global_state.cc", | 83 "global_state.cc", |
82 "global_state.h", | 84 "global_state.h", |
83 "html_document.cc", | 85 "html_document.cc", |
84 "html_document.h", | 86 "html_document.h", |
87 "html_document_application_delegate.cc", | |
88 "html_document_application_delegate.h", | |
85 "html_document_oopif.cc", | 89 "html_document_oopif.cc", |
86 "html_document_oopif.h", | 90 "html_document_oopif.h", |
91 "html_viewer.cc", | |
92 "html_viewer.h", | |
93 "html_viewer_switches.cc", | |
94 "html_viewer_switches.h", | |
87 "media_factory.cc", | 95 "media_factory.cc", |
88 "media_factory.h", | 96 "media_factory.h", |
89 "mock_web_blob_registry_impl.cc", | 97 "mock_web_blob_registry_impl.cc", |
90 "mock_web_blob_registry_impl.h", | 98 "mock_web_blob_registry_impl.h", |
91 "test_html_viewer_impl.cc", | 99 "test_html_viewer_impl.cc", |
92 "test_html_viewer_impl.h", | 100 "test_html_viewer_impl.h", |
93 "touch_handler.cc", | 101 "touch_handler.cc", |
94 "touch_handler.h", | 102 "touch_handler.h", |
95 "web_clipboard_impl.cc", | 103 "web_clipboard_impl.cc", |
96 "web_clipboard_impl.h", | 104 "web_clipboard_impl.h", |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
173 } | 181 } |
174 | 182 |
175 data_deps = [ | 183 data_deps = [ |
176 "//components/clipboard", | 184 "//components/clipboard", |
177 "//components/view_manager", | 185 "//components/view_manager", |
178 ] | 186 ] |
179 } | 187 } |
180 | 188 |
181 mojo_native_application("html_viewer") { | 189 mojo_native_application("html_viewer") { |
182 sources = [ | 190 sources = [ |
183 "content_handler_impl.cc", | |
184 "content_handler_impl.h", | |
185 "html_document_application_delegate.cc", | |
186 "html_document_application_delegate.h", | |
187 "html_viewer.cc", | |
188 "html_viewer.h", | |
189 "html_viewer_main.cc", | 191 "html_viewer_main.cc", |
190 "html_viewer_switches.cc", | |
191 "html_viewer_switches.h", | |
192 ] | 192 ] |
193 deps = [ | 193 deps = [ |
194 ":html_viewer_resources_grit", | 194 ":html_viewer_resources_grit", |
195 ":lib", | 195 ":lib", |
196 "//mojo/common", | 196 "//mojo/common", |
197 "//mojo/platform_handle", | 197 "//mojo/platform_handle", |
198 "//third_party/icu:icudata", | 198 "//third_party/icu:icudata", |
199 "//third_party/mojo/src/mojo/public/c/system:for_shared_library", | 199 "//third_party/mojo/src/mojo/public/c/system:for_shared_library", |
200 "//ui/resources:ui_test_pak", | 200 "//ui/resources:ui_test_pak", |
201 ] | 201 ] |
202 data_deps = [ "//mojo/services/network:network" ] | 202 data_deps = [ "//mojo/services/network:network" ] |
203 resources = [ | 203 resources = [ |
204 "$root_out_dir/icudtl.dat", | 204 "$root_out_dir/icudtl.dat", |
205 "$root_out_dir/ui_test.pak", | 205 "$root_out_dir/ui_test.pak", |
206 "$target_gen_dir/html_viewer_resources.pak", | 206 "$target_gen_dir/html_viewer_resources.pak", |
207 ] | 207 ] |
208 | 208 |
209 if (v8_use_external_startup_data) { | 209 if (v8_use_external_startup_data) { |
210 resources += [ | 210 resources += [ |
211 "$root_build_dir/natives_blob.bin", | 211 "$root_build_dir/natives_blob.bin", |
212 "$root_build_dir/snapshot_blob.bin", | 212 "$root_build_dir/snapshot_blob.bin", |
213 ] | 213 ] |
214 deps += [ "//gin" ] | 214 deps += [ "//gin" ] |
215 } | 215 } |
216 } | 216 } |
217 | 217 |
218 mojo_native_application("layout_test_html_viewer") { | |
219 testonly = true | |
220 sources = [ | |
221 "layout_test_content_handler_impl.cc", | |
222 "layout_test_content_handler_impl.h", | |
223 "layout_test_html_viewer.cc", | |
224 "layout_test_html_viewer.h", | |
225 "layout_test_html_viewer_main.cc", | |
226 "web_test_delegate_impl.cc", | |
227 "web_test_delegate_impl.h", | |
228 ] | |
229 deps = [ | |
jam
2015/07/09 16:48:27
many of these are shared. can you move them up to
jochen (gone - plz use gerrit)
2015/07/10 07:53:43
the dependencies on the resources need to stay, bu
| |
230 ":html_viewer_resources_grit", | |
231 ":lib", | |
232 "//components/test_runner", | |
233 "//mojo/common", | |
234 "//mojo/platform_handle", | |
235 "//third_party/WebKit/public:blink", | |
236 "//third_party/WebKit/public:test_support", | |
237 "//third_party/icu:icudata", | |
238 "//third_party/mojo/src/mojo/public/c/system:for_shared_library", | |
239 "//ui/resources:ui_test_pak", | |
240 "//url", | |
241 ] | |
242 data_deps = [ "//mojo/services/network:network" ] | |
jam
2015/07/09 16:48:27
can we put this in the lib section since it's shar
jochen (gone - plz use gerrit)
2015/07/10 07:53:43
done
| |
243 resources = [ | |
244 "$root_out_dir/icudtl.dat", | |
245 "$root_out_dir/ui_test.pak", | |
246 "$target_gen_dir/html_viewer_resources.pak", | |
247 ] | |
248 | |
249 if (v8_use_external_startup_data) { | |
250 resources += [ | |
251 "$root_build_dir/natives_blob.bin", | |
252 "$root_build_dir/snapshot_blob.bin", | |
253 ] | |
254 deps += [ "//gin" ] | |
255 } | |
256 } | |
257 | |
218 test("html_viewer_unittests") { | 258 test("html_viewer_unittests") { |
219 sources = [ | 259 sources = [ |
220 "ax_provider_impl_unittest.cc", | 260 "ax_provider_impl_unittest.cc", |
221 "discardable_memory_allocator_unittest.cc", | 261 "discardable_memory_allocator_unittest.cc", |
222 "run_all_unittests.cc", | 262 "run_all_unittests.cc", |
223 ] | 263 ] |
224 deps = [ | 264 deps = [ |
225 ":lib", | 265 ":lib", |
226 "//base/test:test_support", | 266 "//base/test:test_support", |
227 "//third_party/mojo/src/mojo/edk/system", | 267 "//third_party/mojo/src/mojo/edk/system", |
(...skipping 20 matching lines...) Expand all Loading... | |
248 "//testing/gtest", | 288 "//testing/gtest", |
249 "//third_party/mojo_services/src/accessibility/public/interfaces", | 289 "//third_party/mojo_services/src/accessibility/public/interfaces", |
250 "//third_party/mojo/src/mojo/public/c/system:for_shared_library", | 290 "//third_party/mojo/src/mojo/public/c/system:for_shared_library", |
251 ] | 291 ] |
252 | 292 |
253 data_deps = [ | 293 data_deps = [ |
254 ":html_viewer", | 294 ":html_viewer", |
255 "//components/view_manager", | 295 "//components/view_manager", |
256 ] | 296 ] |
257 } | 297 } |
OLD | NEW |