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

Unified Diff: device/vr/BUILD.gn

Issue 2467873004: Linking arm and arm64 gvr static shim library (Closed)
Patch Set: Move DEPS to android Created 4 years, 1 month 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 | « chrome/browser/android/vr_shell/BUILD.gn ('k') | third_party/gvr-android-sdk/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/BUILD.gn
diff --git a/device/vr/BUILD.gn b/device/vr/BUILD.gn
index d07f62630e14556f253d30629db4929b63551131..bf2372bdb637b4f385109a3836a738797acf03a5 100644
--- a/device/vr/BUILD.gn
+++ b/device/vr/BUILD.gn
@@ -9,67 +9,70 @@ if (is_android) {
import("//build/config/android/rules.gni") # For generate_jni().
}
-component("vr") {
- output_name = "device_vr"
+if (current_cpu == "arm" || current_cpu == "arm64") {
+ component("vr") {
+ output_name = "device_vr"
- sources = [
- "vr_device.cc",
- "vr_device.h",
- "vr_device_manager.cc",
- "vr_device_manager.h",
- "vr_device_provider.h",
- "vr_display_impl.cc",
- "vr_display_impl.h",
- "vr_service_impl.cc",
- "vr_service_impl.h",
- ]
+ sources = [
+ "vr_device.cc",
+ "vr_device.h",
+ "vr_device_manager.cc",
+ "vr_device_manager.h",
+ "vr_device_provider.h",
+ "vr_display_impl.cc",
+ "vr_display_impl.h",
+ "vr_service_impl.cc",
+ "vr_service_impl.h",
+ ]
- deps = [
- ":mojo_bindings",
- "//base",
- "//mojo/public/cpp/bindings",
- "//ui/gfx",
- ]
+ deps = [
+ ":mojo_bindings",
+ "//base",
+ "//mojo/public/cpp/bindings",
+ "//ui/gfx",
+ ]
- defines = [ "DEVICE_VR_IMPLEMENTATION" ]
+ defines = [ "DEVICE_VR_IMPLEMENTATION" ]
- if (is_android) {
- sources += [
- "android/gvr/gvr_delegate.cc",
- "android/gvr/gvr_delegate.h",
- "android/gvr/gvr_device.cc",
- "android/gvr/gvr_device.h",
- "android/gvr/gvr_device_provider.cc",
- "android/gvr/gvr_device_provider.h",
- "android/gvr/gvr_gamepad_data_fetcher.cc",
- "android/gvr/gvr_gamepad_data_fetcher.h",
- ]
+ if (is_android) {
+ sources += [
+ "android/gvr/gvr_delegate.cc",
+ "android/gvr/gvr_delegate.h",
+ "android/gvr/gvr_device.cc",
+ "android/gvr/gvr_device.h",
+ "android/gvr/gvr_device_provider.cc",
+ "android/gvr/gvr_device_provider.h",
+ "android/gvr/gvr_gamepad_data_fetcher.cc",
+ "android/gvr/gvr_gamepad_data_fetcher.h",
+ ]
- deps += [
- "//device/gamepad",
- "//third_party/WebKit/public:blink_headers",
- "//third_party/gvr-android-sdk:libgvr",
- ]
- configs += [ "//third_party/gvr-android-sdk:libgvr_config" ]
+ deps += [
+ "//device/gamepad",
+ "//third_party/WebKit/public:blink_headers",
+ ]
+ ldflags = [ "-landroid" ]
+ libs = [ "//third_party/gvr-android-sdk/libgvr_shim_static_${current_cpu}.a" ]
+ configs += [ "//third_party/gvr-android-sdk:libgvr_config" ]
+ }
}
-}
-static_library("fakes") {
- testonly = true
+ static_library("fakes") {
+ testonly = true
- sources = [
- "test/fake_vr_device.cc",
- "test/fake_vr_device.h",
- "test/fake_vr_device_provider.cc",
- "test/fake_vr_device_provider.h",
- ]
+ sources = [
+ "test/fake_vr_device.cc",
+ "test/fake_vr_device.h",
+ "test/fake_vr_device_provider.cc",
+ "test/fake_vr_device_provider.h",
+ ]
- public_deps = [
- ":mojo_bindings",
- ":vr",
- "//base",
- "//mojo/public/cpp/bindings",
- ]
+ public_deps = [
+ ":mojo_bindings",
+ ":vr",
+ "//base",
+ "//mojo/public/cpp/bindings",
+ ]
+ }
}
mojom("mojo_bindings") {
« no previous file with comments | « chrome/browser/android/vr_shell/BUILD.gn ('k') | third_party/gvr-android-sdk/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698