| Index: services/android/rules.gni
|
| diff --git a/services/android/rules.gni b/services/android/rules.gni
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..6b52f367b94783c62931b517248d337051b9c508
|
| --- /dev/null
|
| +++ b/services/android/rules.gni
|
| @@ -0,0 +1,35 @@
|
| +# Copyright 2015 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")
|
| +
|
| +template("mojo_java_android_application") {
|
| + assert(defined(invoker.sources))
|
| + assert(defined(invoker.main_class))
|
| +
|
| + dex_output_path = "$target_out_dir/${target_name}.dex.jar"
|
| +
|
| + android_lib_name = "${target_name}_lib"
|
| + android_standalone_name = "${target_name}_standalone"
|
| +
|
| + android_library(android_lib_name) {
|
| + java_files = invoker.sources
|
| +
|
| + mojo_app = true
|
| + main_class = invoker.main_class
|
| +
|
| + deps = invoker.deps
|
| + }
|
| +
|
| + android_standalone_library(android_standalone_name) {
|
| + deps = [ ":${android_lib_name}" ] + invoker.deps
|
| +
|
| + dex_path = dex_output_path
|
| + }
|
| +
|
| + mojo_android_java_application(target_name) {
|
| + input_dex_jar = dex_output_path
|
| + }
|
| +}
|
|
|