blob: dc26b37d1f97c6f65ed5069c6c6fd0dd0f01826f [file] [log] [blame]
# Copyright 2016 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")
gvr_arch = current_cpu
if (gvr_arch == "x64") {
gvr_arch = "x86_64"
}
android_aar_prebuilt("gvr_common_java") {
aar_path = "src/ndk-beta/lib/common_library.aar"
jar_excluded_patterns = [ "*/protobuf/*" ]
}
android_aar_prebuilt("gvr_base_java") {
aar_path = "src/libraries/base/base.aar"
}
android_aar_prebuilt("gvr_controller_java") {
aar_path = "src/libraries/controller/controller.aar"
}
source_set("libgvr") {
data_deps = [
":libgvr_copy",
]
libs = [ "${root_out_dir}/libgvr.so" ]
}
copy("libgvr_copy") {
sources = [
"src/ndk-beta/lib/android_${gvr_arch}/libgvr.so",
]
outputs = [
"${root_out_dir}/libgvr.so",
]
}
config("libgvr_config") {
include_dirs = [ "src/ndk-beta/include/" ]
}