Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Unified Diff: third_party/gvr-android-sdk/BUILD.gn

Issue 2106243003: Added gvr-android-sdk to third_party/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated to 0.9.0 Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | third_party/gvr-android-sdk/LICENSE » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..173fc61bf3684366498aa7663e22ea723e1f44e1
--- /dev/null
+++ b/third_party/gvr-android-sdk/BUILD.gn
@@ -0,0 +1,52 @@
+# 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")
+
+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") {
+ 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",
+ ]
+ } 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/" ]
+}
« no previous file with comments | « DEPS ('k') | third_party/gvr-android-sdk/LICENSE » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698