always build an implementation of GCAdapter (either libusb or android)

This commit is contained in:
Michael Maltese
2016-09-28 13:32:13 -04:00
parent 8bb2139224
commit a403e37901
2 changed files with 5 additions and 59 deletions

View File

@ -32,13 +32,12 @@ elseif(ANDROID)
ControllerInterface/Android/Android.cpp)
endif()
if(LIBUSB_FOUND)
set(SRCS ${SRCS} GCAdapter.cpp)
elseif(ANDROID)
set(SRCS ${SRCS} GCAdapter_Android.cpp)
if(ANDROID)
set(SRCS ${SRCS} GCAdapter_Android.cpp)
else()
set(SRCS ${SRCS} GCAdapter_Null.cpp)
endif(LIBUSB_FOUND)
set(SRCS ${SRCS} GCAdapter.cpp)
set(LIBS ${LIBS} ${LIBUSB_LIBRARIES})
endif()
if(LIBEVDEV_FOUND AND LIBUDEV_FOUND)
set(SRCS ${SRCS} ControllerInterface/evdev/evdev.cpp)