Prefix headset implementation files with headset_;

This commit is contained in:
bjorn 2020-05-24 13:31:14 -06:00
parent d6abcdfb0e
commit 6d2fdac89f
10 changed files with 16 additions and 16 deletions

View File

@ -445,38 +445,38 @@ if(LOVR_ENABLE_HEADSET)
if(LOVR_USE_OPENVR)
add_definitions(-DLOVR_USE_OPENVR)
target_sources(lovr PRIVATE src/modules/headset/openvr.c)
target_sources(lovr PRIVATE src/modules/headset/headset_openvr.c)
if(UNIX)
target_compile_options(lovr PRIVATE -Wno-typedef-redefinition)
endif()
endif()
if(LOVR_USE_OPENXR)
add_definitions(-DLOVR_USE_OPENXR)
target_sources(lovr PRIVATE src/modules/headset/openxr.c)
target_sources(lovr PRIVATE src/modules/headset/headset_openxr.c)
endif()
if(LOVR_USE_OCULUS)
add_definitions(-DLOVR_USE_OCULUS)
target_sources(lovr PRIVATE src/modules/headset/oculus.c)
target_sources(lovr PRIVATE src/modules/headset/headset_oculus.c)
endif()
if(LOVR_USE_OCULUS_MOBILE)
add_definitions(-DLOVR_USE_OCULUS_MOBILE)
target_sources(lovr PRIVATE src/modules/headset/oculus_mobile.c)
target_sources(lovr PRIVATE src/modules/headset/headset_oculus_mobile.c)
endif()
if(LOVR_USE_WEBVR)
add_definitions(-DLOVR_USE_WEBVR)
target_sources(lovr PRIVATE src/modules/headset/webvr.c)
target_sources(lovr PRIVATE src/modules/headset/headset_webvr.c)
endif()
if(LOVR_USE_WEBXR)
add_definitions(-DLOVR_USE_WEBXR)
target_sources(lovr PRIVATE src/modules/headset/webxr.c)
target_sources(lovr PRIVATE src/modules/headset/headset_webxr.c)
endif()
if(LOVR_USE_DESKTOP_HEADSET)
add_definitions(-DLOVR_USE_DESKTOP_HEADSET)
target_sources(lovr PRIVATE src/modules/headset/desktop.c)
target_sources(lovr PRIVATE src/modules/headset/headset_desktop.c)
endif()
if(LOVR_USE_LEAP)
add_definitions(-DLOVR_USE_LEAP)
target_sources(lovr PRIVATE src/modules/headset/leap.c)
target_sources(lovr PRIVATE src/modules/headset/headset_leap.c)
endif()
endif()

16
Tupfile
View File

@ -21,14 +21,14 @@ SRC_@(EVENT) += src/modules/event/*.c
SRC_@(FILESYSTEM) += src/modules/filesystem/*.c
SRC_@(GRAPHICS) += src/modules/graphics/*.c
SRC_@(HEADSET) += src/modules/headset/headset.c
SRC_@(HEADSET)@(SIMULATOR) += src/modules/headset/desktop.c
SRC_@(HEADSET)@(OPENVR) += src/modules/headset/openvr.c
SRC_@(HEADSET)@(OPENXR) += src/modules/headset/openxr.c
SRC_@(HEADSET)@(OCULUS) += src/modules/headset/oculus.c
SRC_@(HEADSET)@(VRAPI) += src/modules/headset/oculus_mobile.c
SRC_@(HEADSET)@(WEBVR) += src/modules/headset/webvr.c
SRC_@(HEADSET)@(WEBXR) += src/modules/headset/webxr.c
SRC_@(HEADSET)@(LEAP) += src/modules/headset/leap.c
SRC_@(HEADSET)@(SIMULATOR) += src/modules/headset/headset_desktop.c
SRC_@(HEADSET)@(OPENVR) += src/modules/headset/headset_openvr.c
SRC_@(HEADSET)@(OPENXR) += src/modules/headset/headset_openxr.c
SRC_@(HEADSET)@(OCULUS) += src/modules/headset/headset_oculus.c
SRC_@(HEADSET)@(VRAPI) += src/modules/headset/headset_oculus_mobile.c
SRC_@(HEADSET)@(WEBVR) += src/modules/headset/headset_webvr.c
SRC_@(HEADSET)@(WEBXR) += src/modules/headset/headset_webxr.c
SRC_@(HEADSET)@(LEAP) += src/modules/headset/headset_leap.c
SRC_@(MATH) += src/modules/math/*.c
SRC_@(PHYSICS) += src/modules/physics/*.c
SRC_@(THREAD) += src/modules/thread/*.c