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

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

Issue 1239353002: Move rules for building Android Mojo services to //mojo/android (Closed) Base URL: git@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 unified diff | Download patch
« no previous file with comments | « mojo/android/add_manifest_entry.py ('k') | services/android/add_manifest_entry.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/android/rules.gni") 5 import("//build/config/android/rules.gni")
6 import("//mojo/public/mojo_application.gni") 6 import("//mojo/public/mojo_application.gni")
7 7
8 servicess_android_path = get_path_info(".", "abspath") 8 mojo_android_path = get_path_info(".", "abspath")
9 9
10 template("mojo_android_java_application") { 10 template("mojo_android_java_application") {
11 assert(defined(invoker.mojo_main)) 11 assert(defined(invoker.mojo_main))
12 12
13 dex_output_path = "$target_out_dir/${target_name}.dex.jar" 13 dex_output_path = "$target_out_dir/${target_name}.dex.jar"
14 dex_with_manifest_output_path = 14 dex_with_manifest_output_path =
15 "$target_out_dir/${target_name}_with_manifest.dex.jar" 15 "$target_out_dir/${target_name}_with_manifest.dex.jar"
16 16
17 android_lib_name = "__${target_name}_lib" 17 android_lib_name = "__${target_name}_lib"
18 android_standalone_name = "__${target_name}_standalone" 18 android_standalone_name = "__${target_name}_standalone"
(...skipping 16 matching lines...) Expand all
35 android_standalone_library(android_standalone_name) { 35 android_standalone_library(android_standalone_name) {
36 deps = [ ":${android_lib_name}" ] + all_deps 36 deps = [ ":${android_lib_name}" ] + all_deps
37 37
38 dex_path = dex_output_path 38 dex_path = dex_output_path
39 39
40 system_gen_dir = get_path_info("//mojo/public/java/BUILD.gn", "gen_dir") 40 system_gen_dir = get_path_info("//mojo/public/java/BUILD.gn", "gen_dir")
41 excluded_jars = [ "${system_gen_dir}/system.dex.jar" ] 41 excluded_jars = [ "${system_gen_dir}/system.dex.jar" ]
42 } 42 }
43 43
44 action(android_with_manifest_name) { 44 action(android_with_manifest_name) {
45 script = "${servicess_android_path}/add_manifest_entry.py" 45 script = "${mojo_android_path}/add_manifest_entry.py"
46 46
47 deps = [ 47 deps = [
48 ":$android_standalone_name", 48 ":$android_standalone_name",
49 ] 49 ]
50 50
51 input = dex_output_path 51 input = dex_output_path
52 inputs = [ 52 inputs = [
53 input, 53 input,
54 ] 54 ]
55 55
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 rebase_input = rebase_path(input, root_build_dir) 95 rebase_input = rebase_path(input, root_build_dir)
96 rebase_output = rebase_path(output, root_build_dir) 96 rebase_output = rebase_path(output, root_build_dir)
97 args = [ 97 args = [
98 "--input=$rebase_input", 98 "--input=$rebase_input",
99 "--output=$rebase_output", 99 "--output=$rebase_output",
100 "--line=#!mojo mojo:java_handler", 100 "--line=#!mojo mojo:java_handler",
101 ] 101 ]
102 } 102 }
103 } 103 }
OLDNEW
« no previous file with comments | « mojo/android/add_manifest_entry.py ('k') | services/android/add_manifest_entry.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698