Added stub Steam Controller sources to Android and iOS command line builds
authorSam Lantinga <slouken@libsdl.org>
Fri, 22 Sep 2017 16:33:34 -0700
changeset 11537ce94d20bd620
parent 11536 3dda7805448a
child 11538 08a2715a1e9d
Added stub Steam Controller sources to Android and iOS command line builds
CMakeLists.txt
configure
configure.in
     1.1 --- a/CMakeLists.txt	Fri Sep 22 08:32:31 2017 -0700
     1.2 +++ b/CMakeLists.txt	Fri Sep 22 16:33:34 2017 -0700
     1.3 @@ -816,7 +816,7 @@
     1.4    endif()
     1.5    if(SDL_JOYSTICK)
     1.6      set(SDL_JOYSTICK_ANDROID 1)
     1.7 -    file(GLOB ANDROID_JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/android/*.c)
     1.8 +    file(GLOB ANDROID_JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/android/*.c ${SDL2_SOURCE_DIR}/src/joystick/steam/*.c)
     1.9      set(SOURCE_FILES ${SOURCE_FILES} ${ANDROID_JOYSTICK_SOURCES})
    1.10      set(HAVE_SDL_JOYSTICK TRUE)
    1.11    endif()
    1.12 @@ -1055,7 +1055,7 @@
    1.13      CheckUSBHID()   # seems to be BSD specific - limit the test to BSD only?
    1.14      if(LINUX AND NOT ANDROID)
    1.15        set(SDL_JOYSTICK_LINUX 1)
    1.16 -      file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/linux/*.c)
    1.17 +      file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/linux/*.c ${SDL2_SOURCE_DIR}/src/joystick/steam/*.c)
    1.18        set(SOURCE_FILES ${SOURCE_FILES} ${JOYSTICK_SOURCES})
    1.19        set(HAVE_SDL_JOYSTICK TRUE)
    1.20      endif()
    1.21 @@ -1382,7 +1382,7 @@
    1.22    if(SDL_JOYSTICK)
    1.23      set(SDL_JOYSTICK_IOKIT 1)
    1.24      if (IOS)
    1.25 -      file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/iphoneos/*.m)
    1.26 +      file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/iphoneos/*.m ${SDL2_SOURCE_DIR}/src/joystick/steam/*.c)
    1.27      else()
    1.28        file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/darwin/*.c)
    1.29      endif()
     2.1 --- a/configure	Fri Sep 22 08:32:31 2017 -0700
     2.2 +++ b/configure	Fri Sep 22 16:33:34 2017 -0700
     2.3 @@ -23847,6 +23847,7 @@
     2.4  $as_echo "#define SDL_JOYSTICK_ANDROID 1" >>confdefs.h
     2.5  
     2.6                  SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
     2.7 +                SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
     2.8                  have_joystick=yes
     2.9              ;;
    2.10            esac
    2.11 @@ -24244,6 +24245,7 @@
    2.12  $as_echo "#define SDL_JOYSTICK_MFI 1" >>confdefs.h
    2.13  
    2.14              SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
    2.15 +            SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
    2.16              have_joystick=yes
    2.17          fi
    2.18          # Set up files for the haptic library
     3.1 --- a/configure.in	Fri Sep 22 08:32:31 2017 -0700
     3.2 +++ b/configure.in	Fri Sep 22 16:33:34 2017 -0700
     3.3 @@ -3366,6 +3366,7 @@
     3.4              android)
     3.5                  AC_DEFINE(SDL_JOYSTICK_ANDROID, 1, [ ])
     3.6                  SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
     3.7 +                SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
     3.8                  have_joystick=yes
     3.9              ;;
    3.10            esac
    3.11 @@ -3645,6 +3646,7 @@
    3.12          if test x$enable_joystick = xyes; then
    3.13              AC_DEFINE(SDL_JOYSTICK_MFI, 1, [ ])
    3.14              SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
    3.15 +            SOURCES="$SOURCES $srcdir/src/joystick/steam/*.c"
    3.16              have_joystick=yes
    3.17          fi
    3.18          # Set up files for the haptic library