configure.in
changeset 12245 0c1c3e41a6f2
parent 12244 63282fe5089e
child 12248 a65c2e471570
equal deleted inserted replaced
12244:63282fe5089e 12245:0c1c3e41a6f2
  3626                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  3626                     EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldinput8 -ldxguid -ldxerr8"
  3627                 fi
  3627                 fi
  3628             else
  3628             else
  3629                 AC_DEFINE(SDL_JOYSTICK_WINMM, 1, [ ])
  3629                 AC_DEFINE(SDL_JOYSTICK_WINMM, 1, [ ])
  3630             fi
  3630             fi
       
  3631             AC_DEFINE(SDL_JOYSTICK_HIDAPI, 1, [ ])
  3631             SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
  3632             SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
       
  3633             SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
       
  3634             SOURCES="$SOURCES $srcdir/src/hidapi/windows/hid.c"
       
  3635             EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
  3632             have_joystick=yes
  3636             have_joystick=yes
  3633         fi
       
  3634         if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
       
  3635             AC_DEFINE(SDL_JOYSTICK_HIDAPI, 1, [ ])
       
  3636             EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
       
  3637             SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
       
  3638         fi
  3637         fi
  3639         if test x$enable_haptic = xyes; then
  3638         if test x$enable_haptic = xyes; then
  3640             if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  3639             if test x$have_dinput = xyes -o x$have_xinput = xyes; then
  3641                 if test x$have_xinput = xyes; then
  3640                 if test x$have_xinput = xyes; then
  3642                     AC_DEFINE(SDL_HAPTIC_XINPUT, 1, [ ])
  3641                     AC_DEFINE(SDL_HAPTIC_XINPUT, 1, [ ])
  3681         if test -f /lib/w32api/libuuid.a; then
  3680         if test -f /lib/w32api/libuuid.a; then
  3682             LIBUUID=/lib/w32api/libuuid.a
  3681             LIBUUID=/lib/w32api/libuuid.a
  3683         else
  3682         else
  3684             LIBUUID=-luuid
  3683             LIBUUID=-luuid
  3685         fi
  3684         fi
  3686         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion $LIBUUID -static-libgcc"
  3685         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lsetupapi -lversion $LIBUUID -static-libgcc"
  3687         # The Windows platform requires special setup
  3686         # The Windows platform requires special setup
  3688         VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  3687         VERSION_SOURCES="$srcdir/src/main/windows/*.rc"
  3689         SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  3688         SDLMAIN_SOURCES="$srcdir/src/main/windows/*.c"
  3690         SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  3689         SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
  3691         SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"
  3690         SDL_LIBS="-lSDL2main $SDL_LIBS -mwindows"