Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Side by Side Diff: mojo/services/html_viewer/BUILD.gn

Issue 1099303002: Move html_viewer from mojo/services to components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/services/BUILD.gn ('k') | mojo/services/html_viewer/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
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")
8 import("//tools/grit/repack.gni")
9
10 # Repack this here.
11 repack("unified_blink_resources") {
12 sources = [
13 "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak" ,
14 "$root_gen_dir/blink/public/resources/blink_resources.pak",
15 ]
16 output = "$target_gen_dir/unified_blink_resources.pak"
17 deps = [
18 "//third_party/WebKit/public:image_resources",
19 "//third_party/WebKit/public:resources",
20 ]
21 }
22
23 action("generate_blink_resource_map") {
24 script = "//mojo/services/html_viewer/generate_blink_resource_map.py"
25 args = [
26 "--pak-file",
27 rebase_path("$target_gen_dir/unified_blink_resources.pak"),
28 "--header",
29 rebase_path("$target_gen_dir/blink_resource_map.h"),
30 "--cpp",
31 rebase_path("$target_gen_dir/blink_resource_map.cc"),
32 ]
33 outputs = [
34 "$target_gen_dir/blink_resource_map.cc",
35 "$target_gen_dir/blink_resource_map.h",
36 ]
37 deps = [
38 ":unified_blink_resources",
39 ]
40 public_deps = [
41 "//third_party/WebKit/public:image_resources",
42 "//third_party/WebKit/public:resources",
43 ]
44 }
45
46 source_set("lib") {
47 sources = [
48 "$target_gen_dir/blink_resource_map.cc",
49 "$target_gen_dir/blink_resource_map.h",
50 "ax_provider_impl.cc",
51 "ax_provider_impl.h",
52 "blink_basic_type_converters.cc",
53 "blink_basic_type_converters.h",
54 "blink_input_events_type_converters.cc",
55 "blink_input_events_type_converters.h",
56 "blink_platform_impl.cc",
57 "blink_platform_impl.h",
58 "blink_resource_constants.h",
59 "blink_url_request_type_converters.cc",
60 "blink_url_request_type_converters.h",
61 "discardable_memory_allocator.cc",
62 "discardable_memory_allocator.h",
63 "html_document.cc",
64 "html_document.h",
65 "mock_web_blob_registry_impl.cc",
66 "mock_web_blob_registry_impl.h",
67 "touch_handler.cc",
68 "touch_handler.h",
69 "web_clipboard_impl.cc",
70 "web_clipboard_impl.h",
71 "web_cookie_jar_impl.cc",
72 "web_cookie_jar_impl.h",
73 "web_layer_tree_view_impl.cc",
74 "web_layer_tree_view_impl.h",
75 "web_media_player_factory.cc",
76 "web_media_player_factory.h",
77 "web_media_player_factory.h",
78 "web_message_port_channel_impl.cc",
79 "web_message_port_channel_impl.h",
80 "web_mime_registry_impl.cc",
81 "web_mime_registry_impl.h",
82 "web_notification_manager_impl.cc",
83 "web_notification_manager_impl.h",
84 "web_scheduler_impl.cc",
85 "web_scheduler_impl.h",
86 "web_socket_handle_impl.cc",
87 "web_socket_handle_impl.h",
88 "web_storage_namespace_impl.cc",
89 "web_storage_namespace_impl.h",
90 "web_theme_engine_impl.cc",
91 "web_theme_engine_impl.h",
92 "web_thread_impl.cc",
93 "web_thread_impl.h",
94 "web_url_loader_impl.cc",
95 "web_url_loader_impl.h",
96 ]
97
98 include_dirs = [ "third_party/WebKit" ]
99
100 deps = [
101 "//base",
102 "//base/third_party/dynamic_annotations",
103 "//cc",
104 "//cc/blink",
105 "//cc/surfaces",
106 "//components/webcrypto",
107 "//gin",
108 "//media",
109 "//media/blink",
110 "//media/mojo",
111 "//mojo/application",
112 "//mojo/cc",
113 "//mojo/common",
114 "//mojo/converters/surfaces",
115 "//mojo/services/network/public/cpp",
116 "//mojo/services/network/public/interfaces",
117 "//net",
118 "//skia",
119 "//third_party/mojo/src/mojo/public/c/system:for_shared_library",
120 "//third_party/mojo/src/mojo/public/cpp/utility",
121 "//third_party/mojo/src/mojo/public/interfaces/application",
122 "//third_party/mojo_services/src/accessibility/public/interfaces",
123 "//third_party/mojo_services/src/clipboard/public/interfaces",
124 "//third_party/mojo_services/src/content_handler/public/interfaces",
125 "//third_party/mojo_services/src/gpu/public/interfaces",
126 "//third_party/mojo_services/src/input_events/public/interfaces",
127 "//third_party/mojo_services/src/navigation/public/interfaces",
128 "//third_party/mojo_services/src/surfaces/public/interfaces",
129 "//ui/events",
130 "//ui/events:gesture_detection",
131 "//ui/events/blink",
132 "//ui/events/gestures/blink",
133 "//ui/gfx/geometry",
134 "//ui/native_theme",
135 "//ui/resources:ui_test_pak",
136 "//url",
137 ]
138
139 public_deps = [
140 "//third_party/WebKit/public:blink",
141 "//third_party/mojo/src/mojo/public/cpp/bindings",
142 "//third_party/mojo_services/src/view_manager/public/cpp",
143 ":generate_blink_resource_map",
144 ]
145
146 if (is_win) {
147 sources += [ "html_viewer_version.rc" ]
148 }
149 }
150
151 if (is_android) {
152 import("//build/config/android/rules.gni")
153
154 java_library_path = "$target_out_dir/java_library.dex.jar"
155
156 mojo_android_application("html_viewer") {
157 input_so = "$root_out_dir/lib.stripped/libhtml_viewer_lib.so"
158 input_dex_jar = java_library_path
159 }
160
161 shared_library("html_viewer_lib") {
162 sources = [
163 "android/android_hooks.cc",
164 "html_viewer.cc",
165 ]
166
167 deps = [
168 ":html_viewer_jni_headers",
169 ":lib",
170 "//base",
171 "//ui/gfx:gfx_jni_headers",
172 ]
173
174 data_deps = [ "//mojo/services/network:network" ]
175 }
176
177 generate_jni("html_viewer_jni_headers") {
178 sources = [
179 "android/java/org/chromium/html_viewer/Main.java",
180 ]
181 jni_package = "mojo/services/html_viewer"
182 }
183
184 android_library("html_viewer_java_classes") {
185 java_files = [ "android/java/org/chromium/html_viewer/Main.java" ]
186
187 deps = [
188 "//base:base_java",
189 ]
190 }
191
192 android_standalone_library("java_library") {
193 dex_path = java_library_path
194
195 deps = [
196 ":html_viewer_java_classes",
197
198 # TODO(sky): this is WAY more than we need. We really only need
199 # DeviceDisplayInfo. Refactor to make this clearer.
200 "//ui/android:ui_java",
201 ]
202 }
203 } else {
204 mojo_native_application("html_viewer") {
205 sources = [
206 "html_viewer.cc",
207 ]
208 deps = [
209 ":lib",
210 ]
211 data_deps = [ "//mojo/services/network:network" ]
212 }
213 }
214
215 test("tests") {
216 output_name = "html_viewer_unittests"
217 sources = [
218 "ax_provider_impl_unittest.cc",
219 "discardable_memory_allocator_unittest.cc",
220 ]
221 deps = [
222 ":lib",
223 "//base/test:run_all_unittests",
224 ]
225 }
226
227 mojo_native_application("apptests") {
228 output_name = "html_viewer_apptests"
229 testonly = true
230
231 sources = [
232 "ax_provider_apptest.cc",
233 ]
234
235 deps = [
236 ":lib",
237 ":html_viewer",
238 "//mojo/application:test_support",
239 "//net:test_support",
240 "//testing/gtest",
241 ]
242 }
OLDNEW
« no previous file with comments | « mojo/services/BUILD.gn ('k') | mojo/services/html_viewer/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698