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

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

Issue 2825203004: Added support for OpenVR controllers (Closed)
Patch Set: Read pose by vr::TrackingUniverseSeated Created 3 years, 8 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
« no previous file with comments | « device/gamepad/gamepad_pad_state_provider.h ('k') | device/vr/openvr/openvr_device.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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("features.gni") 5 import("features.gni")
6 import("//build/buildflag_header.gni") 6 import("//build/buildflag_header.gni")
7 import("//mojo/public/tools/bindings/mojom.gni") 7 import("//mojo/public/tools/bindings/mojom.gni")
8 8
9 if (is_android) { 9 if (is_android) {
10 import("//build/config/android/rules.gni") # For generate_jni(). 10 import("//build/config/android/rules.gni") # For generate_jni().
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 "//device/gamepad", 79 "//device/gamepad",
80 "//device/gamepad/public/cpp:shared_with_blink", 80 "//device/gamepad/public/cpp:shared_with_blink",
81 "//third_party/WebKit/public:blink_headers", 81 "//third_party/WebKit/public:blink_headers",
82 ] 82 ]
83 ldflags = [ "-landroid" ] 83 ldflags = [ "-landroid" ]
84 libs = [ "//third_party/gvr-android-sdk/libgvr_shim_static_${current_cpu}. a" ] 84 libs = [ "//third_party/gvr-android-sdk/libgvr_shim_static_${current_cpu}. a" ]
85 configs += [ "//third_party/gvr-android-sdk:libgvr_config" ] 85 configs += [ "//third_party/gvr-android-sdk:libgvr_config" ]
86 } 86 }
87 87
88 if (enable_openvr) { 88 if (enable_openvr) {
89 deps += [ "//third_party/openvr:openvr" ] 89 deps += [
90 "//device/gamepad",
91 "//third_party/openvr:openvr",
92 ]
90 sources += [ 93 sources += [
91 "openvr/openvr_device.cc", 94 "openvr/openvr_device.cc",
92 "openvr/openvr_device.h", 95 "openvr/openvr_device.h",
93 "openvr/openvr_device_provider.cc", 96 "openvr/openvr_device_provider.cc",
94 "openvr/openvr_device_provider.h", 97 "openvr/openvr_device_provider.h",
98 "openvr/openvr_gamepad_data_fetcher.cc",
99 "openvr/openvr_gamepad_data_fetcher.h",
95 ] 100 ]
96 } 101 }
97 } 102 }
98 } 103 }
99 104
100 if (enable_vr) { 105 if (enable_vr) {
101 static_library("fakes") { 106 static_library("fakes") {
102 testonly = true 107 testonly = true
103 108
104 sources = [ 109 sources = [
(...skipping 23 matching lines...) Expand all
128 133
129 public_deps = [ 134 public_deps = [
130 "//gpu/ipc/common:interfaces", 135 "//gpu/ipc/common:interfaces",
131 "//mojo/common:common_custom_types", 136 "//mojo/common:common_custom_types",
132 ] 137 ]
133 138
134 export_class_attribute = "DEVICE_VR_EXPORT" 139 export_class_attribute = "DEVICE_VR_EXPORT"
135 export_define = "DEVICE_VR_IMPLEMENTATION=1" 140 export_define = "DEVICE_VR_IMPLEMENTATION=1"
136 export_header = "device/vr/vr_export.h" 141 export_header = "device/vr/vr_export.h"
137 } 142 }
OLDNEW
« no previous file with comments | « device/gamepad/gamepad_pad_state_provider.h ('k') | device/vr/openvr/openvr_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698