Chromium Code Reviews| Index: third_party/gvr-android-sdk/BUILD.gn |
| diff --git a/third_party/gvr-android-sdk/BUILD.gn b/third_party/gvr-android-sdk/BUILD.gn |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7442d3792d75f8b698bfe9e8a908de0ee5b365a3 |
| --- /dev/null |
| +++ b/third_party/gvr-android-sdk/BUILD.gn |
| @@ -0,0 +1,39 @@ |
| +# 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") |
| + |
| +source_set("libgvr") { |
| + deps = [ |
| + ":libgvr_shared_library", |
| + ] |
| + libs = [ "$root_out_dir/libgvr.so" ] |
| +} |
| + |
| +copy("libgvr_shared_library") { |
| + if (target_cpu == "arm") { |
| + sources = [ |
| + "src/ndk-beta/lib/android_arm/libgvr.so", |
|
Nico
2016/06/30 20:17:24
Is the SDK open-source? If so, can we compile it i
|
| + ] |
| + } else if (target_cpu == "arm64") { |
| + sources = [ |
| + "src/ndk-beta/lib/android_arm64/libgvr.so", |
| + ] |
| + } else if (target_cpu == "x86") { |
| + sources = [ |
| + "src/ndk-beta/lib/android_x86/libgvr.so", |
| + ] |
| + } else if (target_cpu == "x64") { |
| + sources = [ |
| + "src/ndk-beta/lib/android_x86_64/libgvr.so", |
| + ] |
| + } |
| + outputs = [ |
| + "${root_out_dir}/libgvr.so", |
| + ] |
| +} |
| + |
| +config("libgvr_config") { |
| + include_dirs = [ "src/ndk-beta/include/" ] |
| +} |