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

Side by Side 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 unified diff | Download patch
OLDNEW
(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 output_name = "java_handler"
qsr 2015/02/05 16:50:07 Any reason you need an output_name?
etiennej 2015/02/06 16:22:29 Done.
10
11 deps = [
12 ":jni_headers",
13 "//base",
14 "//mojo/android:libsystem_java_src",
15 "//mojo/android:system_java_jni_headers",
16 "//mojo/application",
17 "//mojo/application:content_handler",
18 "//mojo/common",
19 "//mojo/environment:chromium",
20 "//mojo/public/c/system:for_shared_library",
21 "//mojo/public/cpp/bindings",
22 "//mojo/public/cpp/system",
23 "//mojo/public/cpp/utility",
24 "//mojo/public/platform/native:system",
25 "//mojo/services/content_handler/public/interfaces",
26 ]
27
28 sources = [
29 "java_handler.cc",
30 ]
31 }
32
33 generate_jni("jni_headers") {
34 sources = [
35 "java/src/org/chromium/services/android/JavaHandler.java",
36 ]
37
38 jni_package = "mojo"
39 }
40
41 dex_output_path = "$target_out_dir/java_handler_java.dex.jar"
42 android_library("content_handler_java") {
43 java_files = [ "java/src/org/chromium/services/android/JavaHandler.java" ]
44
45 deps = [
46 "//base:base_java",
47 "//mojo/android:system_java",
48 "//mojo/public/java:system",
49 ]
50 }
51
52 android_standalone_library("content_handler_java_lib") {
53 deps = [
54 "//mojo/public/java:system",
55 "//mojo/android:system_java",
56 ":content_handler_java",
57 ]
58
59 dex_path = dex_output_path
60 }
61
62 mojo_android_application("java_handler") {
63 input_so = "$root_out_dir/lib.stripped/libjava_handler.so"
64 input_dex_jar = dex_output_path
65 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698