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

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: empty and old 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
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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 } 149 }
149 150
150 data_deps = [ 151 data_deps = [
151 "//components/clipboard", 152 "//components/clipboard",
152 "//components/native_viewport", 153 "//components/native_viewport",
153 "//components/surfaces", 154 "//components/surfaces",
154 "//components/view_manager", 155 "//components/view_manager",
155 ] 156 ]
156 } 157 }
157 158
158 if (is_android) { 159 mojo_application_package("html_viewer") {
159 import("//build/config/android/rules.gni") 160 sources = [
161 "html_viewer.cc",
162 "ui_setup.h",
163 "ui_setup_android.cc",
164 "ui_setup_android.h",
165 ]
166 deps = [
167 ":lib",
168 "//components/resource_provider/public/cpp",
169 "//components/resource_provider/public/interfaces",
170 "//mojo/common",
171 "//mojo/platform_handle",
172 "//third_party/icu:icudata",
173 "//ui/resources:ui_test_pak",
174 ]
175 data_deps = [
176 "//mojo/services/network:network",
177 "//components/resource_provider",
178 ]
179 resources = [
180 "$root_out_dir/icudtl.dat",
181 "$root_out_dir/ui_test.pak",
Ben Goodger (Google) 2015/05/11 21:26:22 this seems weird... I know you're just pulling thi
sky 2015/05/11 21:34:21 Done.
182 ]
160 183
161 java_library_path = "$target_out_dir/java_library.dex.jar" 184 if (v8_use_external_startup_data) {
162 185 resources += [
163 mojo_android_application("html_viewer") { 186 "$root_build_dir/natives_blob.bin",
164 input_so = "$root_out_dir/lib.stripped/libhtml_viewer_lib.so" 187 "$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 ] 188 ]
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 } 189 }
224 } 190 }
225 191
226 test("tests") { 192 test("tests") {
227 output_name = "html_viewer_unittests" 193 output_name = "html_viewer_unittests"
228 sources = [ 194 sources = [
229 "ax_provider_impl_unittest.cc", 195 "ax_provider_impl_unittest.cc",
230 "discardable_memory_allocator_unittest.cc", 196 "discardable_memory_allocator_unittest.cc",
231 ] 197 ]
232 deps = [ 198 deps = [
(...skipping 11 matching lines...) Expand all
244 ] 210 ]
245 211
246 deps = [ 212 deps = [
247 ":lib", 213 ":lib",
248 ":html_viewer", 214 ":html_viewer",
249 "//mojo/application:test_support", 215 "//mojo/application:test_support",
250 "//net:test_support", 216 "//net:test_support",
251 "//testing/gtest", 217 "//testing/gtest",
252 ] 218 ]
253 } 219 }
OLDNEW
« no previous file with comments | « no previous file | components/html_viewer/DEPS » ('j') | mojo/runner/android/apk/src/org/chromium/mojo/shell/ShellMain.java » ('J')

Powered by Google App Engine
This is Rietveld 408576698