Skip to content

Commit

Permalink
Remove hard dependency on XInput.lib
Browse files Browse the repository at this point in the history
  • Loading branch information
InsanityBringer committed Sep 12, 2024
1 parent 36c262a commit 7c2535c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ IF (WIN32)

FIND_LIBRARY(DINPUT_LIBRARY NAMES dinput "${CMAKE_SOURCE_DIR}/lib/win" "${CMAKE_SOURCE_DIR}/lib/win/directx")
FIND_LIBRARY(DXGUID_LIBRARY NAMES dxguid "${CMAKE_SOURCE_DIR}/lib/win" "${CMAKE_SOURCE_DIR}/lib/win/directx")
FIND_LIBRARY(XINPUT_LIBRARY NAMES xinput "${CMAKE_SOURCE_DIR}/lib/win" "${CMAKE_SOURCE_DIR}/lib/win/directx")
#TODO: May need to find OpenAL64 eventually
FIND_LIBRARY(OPENAL_LIBRARY NAMES openal32 "${CMAKE_SOURCE_DIR}/thirdparty/OpenAL/libs" "${CMAKE_SOURCE_DIR}/thirdparty/OpenAL/libs/Win32")
ENDIF ()
Expand All @@ -86,7 +85,7 @@ include_directories("lib" "Descent3" "netcon/includes" ${PLATFORM_INCLUDES})

IF (WIN32)
SET (PLATFORM_LIBS wsock32.lib winmm.lib Glu32.lib OpenGL32.lib dbghelp.lib wininet.lib
${DINPUT_LIBRARY} ${DXGUID_LIBRARY} ${XINPUT_LIBRARY} ${OPENAL_LIBRARY})
${DINPUT_LIBRARY} ${DXGUID_LIBRARY} ${OPENAL_LIBRARY})
SET (MIN_PLATFORM_LIBS wsock32.lib wininet.lib)
ENDIF()
IF (UNIX AND NOT APPLE)
Expand Down
Binary file removed lib/win/DirectX/xInput.lib
Binary file not shown.

0 comments on commit 7c2535c

Please sign in to comment.