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

Unified Diff: services/android/BUILD.gn

Issue 1233883003: Refactor mojo_android_application (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/mojo_application.gni ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/android/BUILD.gn
diff --git a/services/android/BUILD.gn b/services/android/BUILD.gn
index 56b98d3d050f35920a8f990b00c2ef129df8a017..6753600b854a6e41b4a377df9a4453ea5ff60257 100644
--- a/services/android/BUILD.gn
+++ b/services/android/BUILD.gn
@@ -5,9 +5,12 @@
import("//build/config/android/rules.gni")
import("//mojo/public/mojo_application.gni")
-shared_library("libjava_handler") {
+mojo_android_application("java_handler") {
+ sources = [
+ "java_handler.cc",
+ ]
+
deps = [
- ":jni_headers",
"//base",
"//mojo/android:libsystem_java",
"//mojo/android:system_java_jni_headers",
@@ -22,42 +25,13 @@ shared_library("libjava_handler") {
"//mojo/services/url_response_disk_cache/public/interfaces",
]
- sources = [
- "java_handler.cc",
- ]
-}
-
-generate_jni("jni_headers") {
- sources = [
- "java/src/org/chromium/services/android/JavaHandler.java",
- ]
-
- jni_package = "mojo"
-}
-
-android_library("content_handler_java") {
- java_files = [ "java/src/org/chromium/services/android/JavaHandler.java" ]
+ java_sources = [ "java/src/org/chromium/services/android/JavaHandler.java" ]
- deps = [
+ java_deps = [
"//base:base_java",
"//mojo/android:system_java",
"//mojo/public/java:system",
]
-}
-
-dex_output_path = "$target_out_dir/java_handler_java.dex.jar"
-
-android_standalone_library("content_handler_java_lib") {
- deps = [
- "//mojo/public/java:system",
- "//mojo/android:system_java",
- ":content_handler_java",
- ]
- dex_path = dex_output_path
-}
-
-mojo_android_application("java_handler") {
- input_so = "$root_out_dir/lib.stripped/libjava_handler.so"
- input_dex_jar = dex_output_path
+ jni_package = "mojo"
}
« no previous file with comments | « mojo/public/mojo_application.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698