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
3 # found in the LICENSE file.
5 import("//testing/test.gni")
6 import("//third_party/mojo/src/mojo/public/mojo.gni")
7 import("//third_party/mojo/src/mojo/public/mojo_application.gni")
9 action("generate_blink_resource_map") {
10 script = "//mojo/services/html_viewer/generate_blink_resource_map.py"
13 rebase_path("$root_out_dir/gen/blink/public/resources/blink_resources.pak"),
15 rebase_path("$target_gen_dir/blink_resource_map.h"),
17 rebase_path("$target_gen_dir/blink_resource_map.cc"),
20 "$target_gen_dir/blink_resource_map.cc",
21 "$target_gen_dir/blink_resource_map.h",
24 "//third_party/WebKit/public:resources",
30 "$target_gen_dir/blink_resource_map.cc",
31 "$target_gen_dir/blink_resource_map.h",
32 "ax_provider_impl.cc",
34 "blink_basic_type_converters.cc",
35 "blink_basic_type_converters.h",
36 "blink_input_events_type_converters.cc",
37 "blink_input_events_type_converters.h",
38 "blink_platform_impl.cc",
39 "blink_platform_impl.h",
40 "blink_resource_constants.h",
41 "blink_url_request_type_converters.cc",
42 "blink_url_request_type_converters.h",
43 "discardable_memory_allocator.cc",
44 "discardable_memory_allocator.h",
47 "mojo_blink_platform_impl.cc",
48 "mojo_blink_platform_impl.h",
49 "webclipboard_impl.cc",
50 "webclipboard_impl.h",
51 "webcookiejar_impl.cc",
52 "webcookiejar_impl.h",
53 "weblayertreeview_impl.cc",
54 "weblayertreeview_impl.h",
55 "webmediaplayer_factory.cc",
56 "webmediaplayer_factory.h",
57 "webmimeregistry_impl.cc",
58 "webmimeregistry_impl.h",
59 "webscheduler_impl.cc",
60 "webscheduler_impl.h",
61 "websockethandle_impl.cc",
62 "websockethandle_impl.h",
63 "webstoragenamespace_impl.cc",
64 "webstoragenamespace_impl.h",
65 "webthemeengine_impl.cc",
66 "webthemeengine_impl.h",
69 "weburlloader_impl.cc",
70 "weburlloader_impl.h",
73 include_dirs = [ "third_party/WebKit" ]
77 "//base/third_party/dynamic_annotations",
88 "//mojo/converters/surfaces",
89 "//mojo/services/network/public/cpp",
90 "//mojo/services/network/public/interfaces",
93 "//third_party/mojo/src/mojo/public/c/system:for_shared_library",
94 "//third_party/mojo/src/mojo/public/cpp/utility",
95 "//third_party/mojo/src/mojo/public/interfaces/application",
96 "//third_party/mojo_services/src/accessibility/public/interfaces",
97 "//third_party/mojo_services/src/clipboard/public/interfaces",
98 "//third_party/mojo_services/src/content_handler/public/interfaces",
99 "//third_party/mojo_services/src/gpu/public/interfaces",
100 "//third_party/mojo_services/src/input_events/public/interfaces",
101 "//third_party/mojo_services/src/navigation/public/interfaces",
102 "//third_party/mojo_services/src/surfaces/public/interfaces",
105 "//ui/resources:ui_test_pak",
110 "//third_party/WebKit/public:blink",
111 "//third_party/mojo/src/mojo/public/cpp/bindings",
112 "//third_party/mojo_services/src/view_manager/public/cpp",
113 ":generate_blink_resource_map",
118 import("//build/config/android/rules.gni")
120 java_library_path = "$target_out_dir/java_library.dex.jar"
122 mojo_android_application("html_viewer") {
123 input_so = "$root_out_dir/lib.stripped/libhtml_viewer_lib.so"
124 input_dex_jar = java_library_path
127 shared_library("html_viewer_lib") {
129 "android/android_hooks.cc",
134 ":html_viewer_jni_headers",
137 "//ui/gfx:gfx_jni_headers",
141 generate_jni("html_viewer_jni_headers") {
143 "android/java/org/chromium/html_viewer/Main.java",
145 jni_package = "mojo/services/html_viewer"
148 android_library("html_viewer_java_classes") {
149 java_files = [ "android/java/org/chromium/html_viewer/Main.java" ]
156 android_standalone_library("java_library") {
157 dex_path = java_library_path
160 ":html_viewer_java_classes",
162 # TODO(sky): this is WAY more than we need. We really only need
163 # DeviceDisplayInfo. Refactor to make this clearer.
164 "//ui/android:ui_java",
168 mojo_native_application("html_viewer") {
179 output_name = "html_viewer_unittests"
181 "ax_provider_impl_unittest.cc",
182 "discardable_memory_allocator_unittest.cc",
186 "//base/test:run_all_unittests",