configure.in
changeset 6329 77dcb8c486e9
parent 6327 7c37af802e63
child 6340 eadb3790009f
     1.1 --- a/configure.in	Mon Jun 04 12:31:14 2012 -0400
     1.2 +++ b/configure.in	Tue Jun 19 12:29:53 2012 -0400
     1.3 @@ -2439,6 +2439,54 @@
     1.4          SOURCES="$srcdir/src/main/beos/*.cc $SOURCES"
     1.5          EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lroot -lbe -lmedia -lgame -ldevice -ltextencoding"
     1.6          ;;
     1.7 +    arm*-apple-darwin*)
     1.8 +        # iOS - We are not writing anything to confdefs.h because you have to replace
     1.9 +        # SDL_config.h for SDL_config_iphoneos.h anyway
    1.10 +        ARCH=ios
    1.11 +
    1.12 +        CheckVisibilityHidden
    1.13 +        CheckDummyVideo
    1.14 +        CheckDiskAudio
    1.15 +        CheckDummyAudio
    1.16 +        CheckDLOPEN
    1.17 +        CheckCOCOA
    1.18 +        CheckPTHREAD
    1.19 +
    1.20 +
    1.21 +        # Set up files for the audio library
    1.22 +        if test x$enable_audio = xyes; then
    1.23 +            SOURCES="$SOURCES $srcdir/src/audio/coreaudio/*.c"
    1.24 +            have_audio=yes
    1.25 +        fi
    1.26 +        # Set up files for the joystick library
    1.27 +        if test x$enable_joystick = xyes; then
    1.28 +            SOURCES="$SOURCES $srcdir/src/joystick/iphoneos/*.m"
    1.29 +            have_joystick=yes
    1.30 +        fi
    1.31 +        # Set up files for the haptic library
    1.32 +        #if test x$enable_haptic = xyes; then
    1.33 +        #    SOURCES="$SOURCES $srcdir/src/haptic/darwin/*.c"
    1.34 +        #    have_haptic=yes
    1.35 +        #    EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,ForceFeedback"
    1.36 +        #fi
    1.37 +        # Set up files for the power library
    1.38 +        if test x$enable_power = xyes; then
    1.39 +            SOURCES="$SOURCES $srcdir/src/power/uikit/*.m"
    1.40 +            have_power=yes
    1.41 +        fi
    1.42 +        # Set up files for the timer library
    1.43 +        if test x$enable_timers = xyes; then
    1.44 +            SOURCES="$SOURCES $srcdir/src/timer/unix/*.c"
    1.45 +            have_timers=yes
    1.46 +        fi
    1.47 +        # Set up additional files for the file library
    1.48 +        if test x$enable_file = xyes; then
    1.49 +            SOURCES="$SOURCES $srcdir/src/file/cocoa/*.m"
    1.50 +        fi
    1.51 +        # The iOS platform requires special setup.
    1.52 +        SOURCES="$SOURCES $srcdir/src/video/uikit/*.m"
    1.53 +        SOURCES="$SOURCES $srcdir/src/video/uikit/*.c"
    1.54 +        ;;
    1.55      *-*-darwin* )
    1.56          # This could be either full "Mac OS X", or plain "Darwin" which is
    1.57          # just the OS X kernel sans upper layers like Carbon and Cocoa.