OLD | NEW |
(Empty) | |
| 1 # Copyright 2016 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 |
| 7 android_aar_prebuilt("gvr_common_java") { |
| 8 aar_path = "src/ndk-beta/lib/common_library.aar" |
| 9 jar_excluded_patterns = [ "*/protobuf/*" ] |
| 10 } |
| 11 |
| 12 android_aar_prebuilt("gvr_base_java") { |
| 13 aar_path = "src/libraries/base/base.aar" |
| 14 } |
| 15 |
| 16 android_aar_prebuilt("gvr_controller_java") { |
| 17 aar_path = "src/libraries/controller/controller.aar" |
| 18 } |
| 19 |
| 20 source_set("libgvr") { |
| 21 deps = [ |
| 22 ":libgvr_shared_library", |
| 23 ] |
| 24 libs = [ "$root_out_dir/libgvr.so" ] |
| 25 } |
| 26 |
| 27 copy("libgvr_shared_library") { |
| 28 if (target_cpu == "arm") { |
| 29 sources = [ |
| 30 "src/ndk-beta/lib/android_arm/libgvr.so", |
| 31 ] |
| 32 } else if (target_cpu == "arm64") { |
| 33 sources = [ |
| 34 "src/ndk-beta/lib/android_arm64/libgvr.so", |
| 35 ] |
| 36 } else if (target_cpu == "x86") { |
| 37 sources = [ |
| 38 "src/ndk-beta/lib/android_x86/libgvr.so", |
| 39 ] |
| 40 } else if (target_cpu == "x64") { |
| 41 sources = [ |
| 42 "src/ndk-beta/lib/android_x86_64/libgvr.so", |
| 43 ] |
| 44 } |
| 45 outputs = [ |
| 46 "${root_out_dir}/libgvr.so", |
| 47 ] |
| 48 } |
| 49 |
| 50 config("libgvr_config") { |
| 51 include_dirs = [ "src/ndk-beta/include/" ] |
| 52 } |
OLD | NEW |