| OLD | NEW |
| 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("//remoting/remoting_options.gni") |
| 6 | 7 |
| 7 template("remoting_apk_tmpl") { | 8 template("remoting_apk_tmpl") { |
| 8 android_apk(target_name) { | 9 android_apk(target_name) { |
| 9 forward_variables_from(invoker, "*") | 10 forward_variables_from(invoker, "*") |
| 10 | 11 |
| 11 android_manifest = "$root_gen_dir/remoting/android/AndroidManifest.xml" | 12 android_manifest = "$root_gen_dir/remoting/android/AndroidManifest.xml" |
| 12 native_libs = [ "libremoting_client_jni.so" ] | 13 native_libs = [ "libremoting_client_jni.so" ] |
| 13 | 14 |
| 14 deps += [ | 15 deps += [ |
| 15 "//remoting/android:remoting_apk_manifest", | 16 "//remoting/android:remoting_apk_manifest", |
| 16 "//remoting/android:remoting_client_jni", | 17 "//remoting/android:remoting_client_jni", |
| 17 ] | 18 ] |
| 18 | 19 |
| 19 if (target_cpu == "arm") { | 20 if (remoting_enable_cardboard && target_cpu == "arm") { |
| 20 deps += [ "//remoting/android:remoting_cardboard_extract_native_lib" ] | 21 deps += [ "//remoting/android:remoting_cardboard_extract_native_lib" ] |
| 21 loadable_modules = [ "$root_out_dir/libvrtoolkit.so" ] | 22 loadable_modules = [ "$root_out_dir/libvrtoolkit.so" ] |
| 22 } | 23 } |
| 23 } | 24 } |
| 24 } | 25 } |
| OLD | NEW |