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

Side by Side Diff: device/vr/BUILD.gn

Issue 2624633002: Remove Sync GetPose VRService call, implement VRVSyncProvider (Closed)
Patch Set: Remove visibility restrictions - can address later if desired. Created 3 years, 11 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 unified diff | Download patch
OLDNEW
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/features.gni") 5 import("//build/config/features.gni")
6 import("//mojo/public/tools/bindings/mojom.gni") 6 import("//mojo/public/tools/bindings/mojom.gni")
7 7
8 if (is_android) { 8 if (is_android) {
9 import("//build/config/android/rules.gni") # For generate_jni(). 9 import("//build/config/android/rules.gni") # For generate_jni().
10 } 10 }
11 11
12 if (current_cpu == "arm" || current_cpu == "arm64") { 12 component("vr") {
13 component("vr") { 13 output_name = "device_vr"
14 output_name = "device_vr"
15 14
16 sources = [ 15 sources = [
17 "vr_device.cc", 16 "vr_device.cc",
18 "vr_device.h", 17 "vr_device.h",
19 "vr_device_manager.cc", 18 "vr_device_manager.cc",
20 "vr_device_manager.h", 19 "vr_device_manager.h",
21 "vr_device_provider.h", 20 "vr_device_provider.h",
22 "vr_display_impl.cc", 21 "vr_display_impl.cc",
23 "vr_display_impl.h", 22 "vr_display_impl.h",
24 "vr_service_impl.cc", 23 "vr_export.h",
25 "vr_service_impl.h", 24 "vr_service_impl.cc",
25 "vr_service_impl.h",
26 ]
27
28 public_deps = [
29 ":mojo_bindings",
30 "//base",
31 "//mojo/public/cpp/bindings",
32 "//ui/gfx",
33 ]
34
35 defines = [ "DEVICE_VR_IMPLEMENTATION" ]
36 if (is_android && (current_cpu == "arm" || current_cpu == "arm64")) {
37 sources += [
38 "android/gvr/gvr_delegate.cc",
39 "android/gvr/gvr_delegate.h",
40 "android/gvr/gvr_device.cc",
41 "android/gvr/gvr_device.h",
42 "android/gvr/gvr_device_provider.cc",
43 "android/gvr/gvr_device_provider.h",
44 "android/gvr/gvr_gamepad_data_fetcher.cc",
45 "android/gvr/gvr_gamepad_data_fetcher.h",
26 ] 46 ]
27 47
28 deps = [ 48 public_deps += [
29 ":mojo_bindings", 49 "//device/gamepad",
30 "//base", 50 "//third_party/WebKit/public:blink_headers",
31 "//mojo/public/cpp/bindings",
32 "//ui/gfx",
33 ] 51 ]
52 ldflags = [ "-landroid" ]
53 libs =
54 [ "//third_party/gvr-android-sdk/libgvr_shim_static_${current_cpu}.a" ]
55 configs += [ "//third_party/gvr-android-sdk:libgvr_config" ]
56 }
57 }
34 58
35 defines = [ "DEVICE_VR_IMPLEMENTATION" ] 59 static_library("fakes") {
60 testonly = true
36 61
37 if (is_android) { 62 sources = [
38 sources += [ 63 "test/fake_vr_device.cc",
39 "android/gvr/gvr_delegate.cc", 64 "test/fake_vr_device.h",
40 "android/gvr/gvr_delegate.h", 65 "test/fake_vr_device_provider.cc",
41 "android/gvr/gvr_device.cc", 66 "test/fake_vr_device_provider.h",
42 "android/gvr/gvr_device.h", 67 "test/fake_vr_display_impl_client.cc",
43 "android/gvr/gvr_device_provider.cc", 68 "test/fake_vr_display_impl_client.h",
44 "android/gvr/gvr_device_provider.h", 69 "test/fake_vr_service_client.cc",
45 "android/gvr/gvr_gamepad_data_fetcher.cc", 70 "test/fake_vr_service_client.h",
46 "android/gvr/gvr_gamepad_data_fetcher.h", 71 ]
47 ]
48 72
49 deps += [ 73 public_deps = [
50 "//device/gamepad", 74 ":mojo_bindings",
51 "//third_party/WebKit/public:blink_headers", 75 ":vr",
52 ] 76 "//base",
53 ldflags = [ "-landroid" ] 77 "//mojo/public/cpp/bindings",
54 libs = [ "//third_party/gvr-android-sdk/libgvr_shim_static_${current_cpu}. a" ] 78 ]
55 configs += [ "//third_party/gvr-android-sdk:libgvr_config" ]
56 }
57 }
58
59 static_library("fakes") {
60 testonly = true
61
62 sources = [
63 "test/fake_vr_device.cc",
64 "test/fake_vr_device.h",
65 "test/fake_vr_device_provider.cc",
66 "test/fake_vr_device_provider.h",
67 "test/fake_vr_display_impl_client.cc",
68 "test/fake_vr_display_impl_client.h",
69 "test/fake_vr_service_client.cc",
70 "test/fake_vr_service_client.h",
71 ]
72
73 public_deps = [
74 ":mojo_bindings",
75 ":vr",
76 "//base",
77 "//mojo/public/cpp/bindings",
78 ]
79 }
80 } 79 }
81 80
82 mojom("mojo_bindings") { 81 mojom("mojo_bindings") {
83 sources = [ 82 sources = [
84 "vr_service.mojom", 83 "vr_service.mojom",
85 ] 84 ]
85
86 public_deps = [
87 "//mojo/common:common_custom_types",
88 ]
89
90 export_class_attribute = "DEVICE_VR_EXPORT"
91 export_define = "DEVICE_VR_IMPLEMENTATION=1"
92 export_header = "device/vr/vr_export.h"
86 } 93 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698