OLD | NEW |
(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_java_android_application") { |
| 9 assert(defined(invoker.sources)) |
| 10 assert(defined(invoker.main_class)) |
| 11 |
| 12 dex_output_path = "$target_out_dir/${target_name}.dex.jar" |
| 13 |
| 14 android_lib_name = "${target_name}_lib" |
| 15 android_standalone_name = "${target_name}_standalone" |
| 16 |
| 17 android_library(android_lib_name) { |
| 18 java_files = invoker.sources |
| 19 |
| 20 mojo_app = true |
| 21 main_class = invoker.main_class |
| 22 |
| 23 deps = invoker.deps |
| 24 } |
| 25 |
| 26 android_standalone_library(android_standalone_name) { |
| 27 deps = [ ":${android_lib_name}" ] + invoker.deps |
| 28 |
| 29 dex_path = dex_output_path |
| 30 } |
| 31 |
| 32 mojo_android_java_application(target_name) { |
| 33 input_dex_jar = dex_output_path |
| 34 } |
| 35 } |
OLD | NEW |