bug 1003812 - Check for Windows 8 SDK for building Gamepad on Windows. r=glandium
authorTed Mielczarek <ted@mielczarek.org>
Thu, 01 May 2014 07:17:19 -0400
changeset 181224 720a660bac20c8d11822ca99606e6f33eda87380
parent 181223 7f7abc547fb9fc435063572e9b36839dc0604d9e
child 181225 6173eafc6e42260aeb9ae8dc1bdec1d1f5158efc
push id6606
push userkwierso@gmail.com
push dateFri, 02 May 2014 01:38:06 +0000
treeherderfx-team@e2e1b19fcffc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1003812
milestone32.0a1
bug 1003812 - Check for Windows 8 SDK for building Gamepad on Windows. r=glandium
configure.in
--- a/configure.in
+++ b/configure.in
@@ -5881,16 +5881,25 @@ MOZ_ARG_DISABLE_BOOL(gamepad,
     MOZ_GAMEPAD=1)
 
 if test "$MOZ_GAMEPAD"; then
     case "$OS_TARGET" in
     Darwin)
         MOZ_GAMEPAD_BACKEND=cocoa
         ;;
     WINNT)
+        case "$MOZ_WINSDK_MAXVER" in
+        # We support building with the Windows 7 SDK otherwise, but
+        # Gamepad support requires the Windows 8 SDK for some HID headers.
+        0x0601*)
+          AC_MSG_ERROR([The Windows 8 SDK or newer is required to build Gamepad support. Please install a newer Windows SDK or reconfigure with --disable-gamepad to disable gamepad support.])
+          ;;
+        *)
+          ;;
+        esac
         MOZ_GAMEPAD_BACKEND=windows
         ;;
     Linux)
         MOZ_CHECK_HEADER([linux/joystick.h])
         if test "$ac_cv_header_linux_joystick_h" != "yes"; then
           AC_MSG_ERROR([Can't find header linux/joystick.h, needed for gamepad support. Please install Linux kernel headers or reconfigure with --disable-gamepad to disable gamepad support.])
         fi
         MOZ_GAMEPAD_BACKEND=linux