build: switch webvr and openvr by platform

This commit is contained in:
Ben Campbell 2017-10-23 12:24:35 +13:00
parent 2de844ab66
commit f8e05c99e0
1 changed files with 3 additions and 2 deletions

View File

@ -251,7 +251,6 @@ set(LOVR_SRC
src/graphics/texture.c
src/headset/fake.c
src/headset/headset.c
src/headset/openvr.c
src/lib/glad/glad.c
src/lib/lua-cjson/fpconv.c
src/lib/lua-cjson/lua_cjson.c
@ -281,7 +280,9 @@ set(LOVR_SRC
)
if(EMSCRIPTEN)
set(LOVR_SRC, ${LOVR_SRC} "src/headset/webvr.c")
set(LOVR_SRC ${LOVR_SRC} src/headset/webvr.c)
else()
set(LOVR_SRC ${LOVR_SRC} src/headset/openvr.c)
endif()
if(WIN32)