| OLD | NEW |
| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 "//device/gamepad", | 80 "//device/gamepad", |
| 81 "//device/gamepad/public/cpp:shared_with_blink", | 81 "//device/gamepad/public/cpp:shared_with_blink", |
| 82 "//third_party/WebKit/public:blink_headers", | 82 "//third_party/WebKit/public:blink_headers", |
| 83 ] | 83 ] |
| 84 ldflags = [ "-landroid" ] | 84 ldflags = [ "-landroid" ] |
| 85 libs = [ "//third_party/gvr-android-sdk/libgvr_shim_static_${current_cpu}.
a" ] | 85 libs = [ "//third_party/gvr-android-sdk/libgvr_shim_static_${current_cpu}.
a" ] |
| 86 configs += [ "//third_party/gvr-android-sdk:libgvr_config" ] | 86 configs += [ "//third_party/gvr-android-sdk:libgvr_config" ] |
| 87 } | 87 } |
| 88 | 88 |
| 89 if (enable_openvr) { | 89 if (enable_openvr) { |
| 90 deps += [ "//third_party/openvr:openvr" ] | 90 deps += [ |
| 91 "//device/gamepad", |
| 92 "//third_party/openvr:openvr", |
| 93 ] |
| 91 sources += [ | 94 sources += [ |
| 92 "openvr/openvr_device.cc", | 95 "openvr/openvr_device.cc", |
| 93 "openvr/openvr_device.h", | 96 "openvr/openvr_device.h", |
| 94 "openvr/openvr_device_provider.cc", | 97 "openvr/openvr_device_provider.cc", |
| 95 "openvr/openvr_device_provider.h", | 98 "openvr/openvr_device_provider.h", |
| 99 "openvr/openvr_gamepad_data_fetcher.cc", |
| 100 "openvr/openvr_gamepad_data_fetcher.h", |
| 96 ] | 101 ] |
| 97 } | 102 } |
| 98 } | 103 } |
| 99 } | 104 } |
| 100 | 105 |
| 101 if (enable_vr) { | 106 if (enable_vr) { |
| 102 static_library("fakes") { | 107 static_library("fakes") { |
| 103 testonly = true | 108 testonly = true |
| 104 | 109 |
| 105 sources = [ | 110 sources = [ |
| (...skipping 23 matching lines...) Expand all Loading... |
| 129 | 134 |
| 130 public_deps = [ | 135 public_deps = [ |
| 131 "//gpu/ipc/common:interfaces", | 136 "//gpu/ipc/common:interfaces", |
| 132 "//mojo/common:common_custom_types", | 137 "//mojo/common:common_custom_types", |
| 133 ] | 138 ] |
| 134 | 139 |
| 135 export_class_attribute = "DEVICE_VR_EXPORT" | 140 export_class_attribute = "DEVICE_VR_EXPORT" |
| 136 export_define = "DEVICE_VR_IMPLEMENTATION=1" | 141 export_define = "DEVICE_VR_IMPLEMENTATION=1" |
| 137 export_header = "device/vr/vr_export.h" | 142 export_header = "device/vr/vr_export.h" |
| 138 } | 143 } |
| OLD | NEW |