summaryrefslogtreecommitdiffstats
path: root/remoting/android/remoting_apk_tmpl.gni
blob: 1af1b94a4173949bff2967c985393a815a2dda16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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("//remoting/remoting_options.gni")

template("remoting_apk_tmpl") {
  android_apk(target_name) {
    forward_variables_from(invoker, "*")

    android_manifest = "$root_gen_dir/remoting/android/AndroidManifest.xml"
    native_libs = [ "libremoting_client_jni.so" ]

    deps += [
      "//remoting/android:remoting_apk_manifest",
      "//remoting/android:remoting_client_jni",
    ]

    if (remoting_enable_cardboard && target_cpu == "arm") {
      deps += [ "//remoting/android:remoting_cardboard_extract_native_lib" ]
      loadable_modules = [ "$root_out_dir/libvrtoolkit.so" ]
    }
  }
}