File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -1358,9 +1358,7 @@ if(ANDROID)
1358
1358
set (HAVE_SDL_HAPTIC TRUE )
1359
1359
endif ()
1360
1360
1361
- if (SDL_HIDAPI )
1362
- CheckHIDAPI ()
1363
- endif ()
1361
+ CheckHIDAPI ()
1364
1362
1365
1363
if (SDL_JOYSTICK )
1366
1364
set (SDL_JOYSTICK_ANDROID 1 )
Original file line number Diff line number Diff line change @@ -1108,6 +1108,14 @@ endmacro()
1108
1108
1109
1109
# Check for HIDAPI support
1110
1110
macro (CheckHIDAPI )
1111
+ if (ANDROID )
1112
+ enable_language (CXX )
1113
+ sdl_sources ("${SDL3_SOURCE_DIR} /src/hidapi/android/hid.cpp" )
1114
+ endif ()
1115
+ if (IOS OR TVOS )
1116
+ sdl_sources ("${SDL3_SOURCE_DIR} /src/hidapi/ios/hid.m" )
1117
+ set (SDL_FRAMEWORK_COREBLUETOOTH 1 )
1118
+ endif ()
1111
1119
if (SDL_HIDAPI )
1112
1120
set (HAVE_HIDAPI ON )
1113
1121
if (SDL_HIDAPI_LIBUSB )
@@ -1140,14 +1148,6 @@ macro(CheckHIDAPI)
1140
1148
endif ()
1141
1149
1142
1150
if (HAVE_HIDAPI )
1143
- if (ANDROID )
1144
- enable_language (CXX )
1145
- sdl_sources ("${SDL3_SOURCE_DIR} /src/hidapi/android/hid.cpp" )
1146
- endif ()
1147
- if (IOS OR TVOS )
1148
- sdl_sources ("${SDL3_SOURCE_DIR} /src/hidapi/ios/hid.m" )
1149
- set (SDL_FRAMEWORK_COREBLUETOOTH 1 )
1150
- endif ()
1151
1151
set (HAVE_SDL_HIDAPI TRUE )
1152
1152
1153
1153
if (SDL_JOYSTICK AND SDL_HIDAPI_JOYSTICK )
You can’t perform that action at this time.
0 commit comments