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

Unified Diff: third_party/openvr/BUILD.gn

Issue 2929733002: Fix build break when building with enable_openvr=true on Windows (Closed)
Patch Set: Created 3 years, 6 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 | « device/vr/openvr/openvr_device.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/openvr/BUILD.gn
diff --git a/third_party/openvr/BUILD.gn b/third_party/openvr/BUILD.gn
index 6df649937fe93481746ecf7e4b60fe776c13ee4a..97887cf01d1dfa84ae7bfeb0fdb30b01a72ec3d1 100644
--- a/third_party/openvr/BUILD.gn
+++ b/third_party/openvr/BUILD.gn
@@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-loadable_module("openvr") {
+component("openvr") {
output_name = "openvr_api"
# Some ascii versions of Windows APIs are used in this code.
@@ -24,6 +24,10 @@ loadable_module("openvr") {
"src/src/vrcommon/vrpathregistry_public.cpp",
]
+ if (target_cpu == "x64" && is_win) {
+ defines += [ "WIN64" ]
+ }
+
include_dirs = [
"src/headers",
"src/src",
« no previous file with comments | « device/vr/openvr/openvr_device.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698