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

Unified Diff: services/android/BUILD.gn

Issue 898853006: Java content handler for Android. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « services/BUILD.gn ('k') | services/android/java/src/org/chromium/services/android/JavaHandler.java » ('j') | 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
new file mode 100644
index 0000000000000000000000000000000000000000..588b0f0d2d7fc49d7767a4a9dfd640b5a5aa9b67
--- /dev/null
+++ b/services/android/BUILD.gn
@@ -0,0 +1,62 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//build/config/android/rules.gni")
+import("//mojo/public/mojo_application.gni")
+
+shared_library("libjava_handler") {
+ deps = [
+ ":jni_headers",
+ "//base",
+ "//mojo/android:libsystem_java",
+ "//mojo/android:system_java_jni_headers",
+ "//mojo/application",
+ "//mojo/application:content_handler",
+ "//mojo/common",
+ "//mojo/environment:chromium",
+ "//mojo/public/c/system:for_shared_library",
+ "//mojo/public/cpp/bindings",
+ "//mojo/public/cpp/system",
+ "//mojo/services/content_handler/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" ]
+
+ 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
+}
« no previous file with comments | « services/BUILD.gn ('k') | services/android/java/src/org/chromium/services/android/JavaHandler.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698