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

Side by Side Diff: components/html_viewer/BUILD.gn

Issue 1130763004: Gets mandoline working on android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 5 years, 7 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 | « no previous file | components/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
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("//mojo/mojo_application_package.gni") 6 import("//mojo/mojo_application_package.gni")
6 import("//testing/test.gni") 7 import("//testing/test.gni")
7 import("//third_party/mojo/src/mojo/public/mojo.gni") 8 import("//third_party/mojo/src/mojo/public/mojo.gni")
8 import("//third_party/mojo/src/mojo/public/mojo_application.gni") 9 import("//third_party/mojo/src/mojo/public/mojo_application.gni")
9 import("//tools/grit/repack.gni") 10 import("//tools/grit/repack.gni")
10 11
11 # Repack this here. 12 # Repack this here.
12 repack("unified_blink_resources") { 13 repack("unified_blink_resources") {
13 sources = [ 14 sources = [
14 "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak" , 15 "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak" ,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 "//third_party/mojo_services/src/accessibility/public/interfaces", 126 "//third_party/mojo_services/src/accessibility/public/interfaces",
126 "//third_party/mojo_services/src/content_handler/public/interfaces", 127 "//third_party/mojo_services/src/content_handler/public/interfaces",
127 "//ui/mojo/events:interfaces", 128 "//ui/mojo/events:interfaces",
128 "//ui/events", 129 "//ui/events",
129 "//ui/events:gesture_detection", 130 "//ui/events:gesture_detection",
130 "//ui/events/blink", 131 "//ui/events/blink",
131 "//ui/events/gestures/blink", 132 "//ui/events/gestures/blink",
132 "//ui/gfx", 133 "//ui/gfx",
133 "//ui/gfx/geometry", 134 "//ui/gfx/geometry",
134 "//ui/native_theme", 135 "//ui/native_theme",
136
137 # TODO(sky): we shouldn't be using ui_test_pak.
135 "//ui/resources:ui_test_pak", 138 "//ui/resources:ui_test_pak",
136 "//url", 139 "//url",
137 ] 140 ]
138 141
139 public_deps = [ 142 public_deps = [
140 "//components/view_manager/public/cpp", 143 "//components/view_manager/public/cpp",
141 "//third_party/WebKit/public:blink", 144 "//third_party/WebKit/public:blink",
142 "//third_party/mojo/src/mojo/public/cpp/bindings", 145 "//third_party/mojo/src/mojo/public/cpp/bindings",
143 ":generate_blink_resource_map", 146 ":generate_blink_resource_map",
144 ] 147 ]
145 148
146 if (is_win) { 149 if (is_win) {
147 sources += [ "html_viewer_version.rc" ] 150 sources += [ "html_viewer_version.rc" ]
148 } 151 }
149 152
150 data_deps = [ 153 data_deps = [
151 "//components/clipboard", 154 "//components/clipboard",
152 "//components/native_viewport", 155 "//components/native_viewport",
153 "//components/surfaces", 156 "//components/surfaces",
154 "//components/view_manager", 157 "//components/view_manager",
155 ] 158 ]
156 } 159 }
157 160
158 if (is_android) { 161 mojo_application_package("html_viewer") {
159 import("//build/config/android/rules.gni") 162 sources = [
163 "html_viewer.cc",
164 "ui_setup.h",
165 "ui_setup_android.cc",
166 "ui_setup_android.h",
167 ]
168 deps = [
169 ":lib",
170 "//components/resource_provider/public/cpp",
171 "//components/resource_provider/public/interfaces",
172 "//mojo/common",
173 "//mojo/platform_handle",
174 "//third_party/icu:icudata",
175 "//ui/resources:ui_test_pak",
176 ]
177 data_deps = [
178 "//mojo/services/network:network",
179 "//components/resource_provider",
180 ]
181 resources = [
182 "$root_out_dir/icudtl.dat",
183 "$root_out_dir/ui_test.pak",
184 ]
160 185
161 java_library_path = "$target_out_dir/java_library.dex.jar" 186 if (v8_use_external_startup_data) {
162 187 resources += [
163 mojo_android_application("html_viewer") { 188 "$root_build_dir/natives_blob.bin",
164 input_so = "$root_out_dir/lib.stripped/libhtml_viewer_lib.so" 189 "$root_build_dir/snapshot_blob.bin",
165 input_dex_jar = java_library_path
166 }
167
168 shared_library("html_viewer_lib") {
169 sources = [
170 "android/android_hooks.cc",
171 "html_viewer.cc",
172 "ui_setup.h",
173 "ui_setup_android.cc",
174 "ui_setup_android.h",
175 ] 190 ]
176
177 deps = [
178 ":html_viewer_jni_headers",
179 ":lib",
180 "//base",
181 "//ui/gfx:gfx_jni_headers",
182 ]
183
184 data_deps = [ "//mojo/services/network:network" ]
185 }
186
187 generate_jni("html_viewer_jni_headers") {
188 sources = [
189 "android/java/org/chromium/html_viewer/Main.java",
190 ]
191 jni_package = "components/html_viewer"
192 }
193
194 android_library("html_viewer_java_classes") {
195 java_files = [ "android/java/org/chromium/html_viewer/Main.java" ]
196
197 deps = [
198 "//base:base_java",
199 ]
200 }
201
202 android_standalone_library("java_library") {
203 dex_path = java_library_path
204
205 deps = [
206 ":html_viewer_java_classes",
207
208 # TODO(sky): this is WAY more than we need. We really only need
209 # DeviceDisplayInfo. Refactor to make this clearer.
210 "//ui/android:ui_java",
211 ]
212 }
213 } else {
214 mojo_native_application("html_viewer") {
215 sources = [
216 "html_viewer.cc",
217 ]
218 deps = [
219 ":lib",
220 "//ui/resources:ui_test_pak",
221 ]
222 data_deps = [ "//mojo/services/network:network" ]
223 } 191 }
224 } 192 }
225 193
226 test("tests") { 194 test("tests") {
227 output_name = "html_viewer_unittests" 195 output_name = "html_viewer_unittests"
228 sources = [ 196 sources = [
229 "ax_provider_impl_unittest.cc", 197 "ax_provider_impl_unittest.cc",
230 "discardable_memory_allocator_unittest.cc", 198 "discardable_memory_allocator_unittest.cc",
231 ] 199 ]
232 deps = [ 200 deps = [
(...skipping 11 matching lines...) Expand all
244 ] 212 ]
245 213
246 deps = [ 214 deps = [
247 ":lib", 215 ":lib",
248 ":html_viewer", 216 ":html_viewer",
249 "//mojo/application:test_support", 217 "//mojo/application:test_support",
250 "//net:test_support", 218 "//net:test_support",
251 "//testing/gtest", 219 "//testing/gtest",
252 ] 220 ]
253 } 221 }
OLDNEW
« no previous file with comments | « no previous file | components/html_viewer/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698