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

Side by Side Diff: services/android/rules.gni

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
« no previous file with comments | « services/android/java_handler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2015 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 template("mojo_android_java_application") {
9 assert(defined(invoker.mojo_main))
10
11 dex_output_path = "$target_out_dir/${target_name}.dex.jar"
12
13 android_lib_name = "__${target_name}_lib"
14 android_standalone_name = "__${target_name}_standalone"
15
16 all_deps = [
17 "//mojo/public/java:system",
18 "//mojo/public/java:bindings",
19 ]
20 if (defined(invoker.deps)) {
21 all_deps += invoker.deps
22 }
23
24 android_library(android_lib_name) {
25 java_files = invoker.sources
26
27 manifest_entries = [ "Mojo-Class:" + invoker.mojo_main ]
28
29 deps = all_deps
30 }
31
32 android_standalone_library(android_standalone_name) {
33 deps = [ ":${android_lib_name}" ] + all_deps
34
35 dex_path = dex_output_path
36 }
37
38 if (defined(invoker.output_name)) {
39 mojo_output = "$root_out_dir/" + invoker.output_name + ".mojo"
40 } else {
41 mojo_output = "$root_out_dir/" + target_name + ".mojo"
42 }
43
44 action(target_name) {
45 script = rebase_path("mojo/public/tools/prepend.py", ".", mojo_root)
46
47 input = dex_output_path
48 inputs = [
49 input,
50 ]
51
52 output = mojo_output
53 outputs = [
54 output,
55 ]
56
57 rebase_input = rebase_path(input, root_build_dir)
58 rebase_output = rebase_path(output, root_build_dir)
59 args = [
60 "--input=$rebase_input",
61 "--output=$rebase_output",
62 "--line=#!mojo mojo:java_handler",
63 ]
64 }
65 }
OLDNEW
« no previous file with comments | « services/android/java_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698