configure
changeset 12131 9601849b3079
parent 12130 24142c5073a4
child 12155 751cdc74d55c
     1.1 --- a/configure	Tue Aug 21 12:11:34 2018 -0700
     1.2 +++ b/configure	Tue Aug 21 13:29:21 2018 -0700
     1.3 @@ -24135,6 +24135,18 @@
     1.4              ;;
     1.5            esac
     1.6          fi
     1.7 +        # Set up files for the sensor library
     1.8 +        if test x$enable_sensor = xyes; then
     1.9 +          case $ARCH in
    1.10 +            android)
    1.11 +
    1.12 +$as_echo "#define SDL_SENSOR_ANDROID 1" >>confdefs.h
    1.13 +
    1.14 +                SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
    1.15 +                have_sensor=yes
    1.16 +            ;;
    1.17 +          esac
    1.18 +        fi
    1.19          # Set up files for the power library
    1.20          if test x$enable_power = xyes; then
    1.21               case $ARCH in
    1.22 @@ -24794,6 +24806,14 @@
    1.23      fi
    1.24      SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
    1.25  fi
    1.26 +if test x$have_sensor != xyes; then
    1.27 +    if test x$enable_sensor = xyes; then
    1.28 +
    1.29 +$as_echo "#define SDL_SENSOR_DISABLED 1" >>confdefs.h
    1.30 +
    1.31 +    fi
    1.32 +    SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
    1.33 +fi
    1.34  if test x$have_threads != xyes; then
    1.35      if test x$enable_threads = xyes; then
    1.36