OLD | NEW |
(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("//build/config/android/rules.gni") |
| 6 import("//mojo/public/mojo_application.gni") |
| 7 |
| 8 shared_library("libjava_handler") { |
| 9 deps = [ |
| 10 ":jni_headers", |
| 11 "//base", |
| 12 "//mojo/android:libsystem_java", |
| 13 "//mojo/android:system_java_jni_headers", |
| 14 "//mojo/application", |
| 15 "//mojo/application:content_handler", |
| 16 "//mojo/common", |
| 17 "//mojo/environment:chromium", |
| 18 "//mojo/public/c/system:for_shared_library", |
| 19 "//mojo/public/cpp/bindings", |
| 20 "//mojo/public/cpp/system", |
| 21 "//mojo/services/content_handler/public/interfaces", |
| 22 ] |
| 23 |
| 24 sources = [ |
| 25 "java_handler.cc", |
| 26 ] |
| 27 } |
| 28 |
| 29 generate_jni("jni_headers") { |
| 30 sources = [ |
| 31 "java/src/org/chromium/services/android/JavaHandler.java", |
| 32 ] |
| 33 |
| 34 jni_package = "mojo" |
| 35 } |
| 36 |
| 37 android_library("content_handler_java") { |
| 38 java_files = [ "java/src/org/chromium/services/android/JavaHandler.java" ] |
| 39 |
| 40 deps = [ |
| 41 "//base:base_java", |
| 42 "//mojo/android:system_java", |
| 43 "//mojo/public/java:system", |
| 44 ] |
| 45 } |
| 46 |
| 47 dex_output_path = "$target_out_dir/java_handler_java.dex.jar" |
| 48 |
| 49 android_standalone_library("content_handler_java_lib") { |
| 50 deps = [ |
| 51 "//mojo/public/java:system", |
| 52 "//mojo/android:system_java", |
| 53 ":content_handler_java", |
| 54 ] |
| 55 |
| 56 dex_path = dex_output_path |
| 57 } |
| 58 |
| 59 mojo_android_application("java_handler") { |
| 60 input_so = "$root_out_dir/lib.stripped/libjava_handler.so" |
| 61 input_dex_jar = dex_output_path |
| 62 } |
OLD | NEW |