Use cmake to determine if we are enabling the Android Controller Interface
This commit is contained in:
parent
018625e54f
commit
6305f09467
|
@ -31,6 +31,7 @@ elseif(X11_FOUND)
|
|||
endif()
|
||||
set(LIBS ${LIBS} ${X11_LIBRARIES} ${XINPUT2_LIBRARIES})
|
||||
elseif(ANDROID)
|
||||
add_definitions(-DCIFACE_USE_ANDROID)
|
||||
set(SRCS ${SRCS}
|
||||
ControllerInterface/Android/Android.cpp)
|
||||
endif()
|
||||
|
|
|
@ -29,9 +29,6 @@
|
|||
#if defined(__APPLE__)
|
||||
#define CIFACE_USE_OSX
|
||||
#endif
|
||||
#ifdef ANDROID
|
||||
#define CIFACE_USE_ANDROID
|
||||
#endif
|
||||
#if defined(HAVE_SDL) && HAVE_SDL
|
||||
#define CIFACE_USE_SDL
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue