| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 | 6 |
| 7 gvr_arch = current_cpu | |
| 8 if (gvr_arch == "x64") { | |
| 9 gvr_arch = "x86_64" | |
| 10 } | |
| 11 | |
| 12 android_aar_prebuilt("gvr_common_java") { | 7 android_aar_prebuilt("gvr_common_java") { |
| 13 aar_path = "src/ndk/lib/common_library.aar" | 8 aar_path = "common_library.aar" |
| 14 proguard_configs = [ "src/proguard-gvr.txt" ] | 9 proguard_configs = [ "src/proguard-gvr.txt" ] |
| 15 ignore_manifest = true # Ignored because manifest merging is not supported (h
ttp://crbug.com/643967) | 10 ignore_manifest = true # Ignored because manifest merging is not supported (h
ttp://crbug.com/643967) |
| 16 ignore_native_libraries = true | 11 ignore_native_libraries = true |
| 17 } | 12 } |
| 18 | 13 |
| 19 android_aar_prebuilt("gvr_controller_java") { | 14 android_aar_prebuilt("gvr_controller_java") { |
| 20 aar_path = "src/libraries/controller/controller.aar" | 15 aar_path = "src/libraries/controller/controller.aar" |
| 21 } | 16 } |
| 22 | 17 |
| 23 source_set("libgvr") { | |
| 24 if (gvr_arch != "mipsel") { | |
| 25 data_deps = [ | |
| 26 ":libgvr_copy", | |
| 27 ] | |
| 28 libs = [ "${root_out_dir}/libgvr.so" ] | |
| 29 } | |
| 30 } | |
| 31 | |
| 32 if (gvr_arch != "mipsel") { | |
| 33 copy("libgvr_copy") { | |
| 34 sources = [ | |
| 35 "src/ndk/lib/android_${gvr_arch}/libgvr.so", | |
| 36 ] | |
| 37 outputs = [ | |
| 38 "${root_out_dir}/libgvr.so", | |
| 39 ] | |
| 40 } | |
| 41 } | |
| 42 | |
| 43 config("libgvr_config") { | 18 config("libgvr_config") { |
| 44 include_dirs = [ "src/ndk/include/" ] | 19 include_dirs = [ "src/ndk/include/" ] |
| 45 } | 20 } |
| OLD | NEW |