From 81f7429f25a555ae2d37d14c5c3843dd3621c22f Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Thu, 14 Oct 2010 18:29:45 +0200 Subject: standalone builds: windows executables end in .exe This change only applies to the stand-alone build system. It ensures that when one does the following under Linux: ./android-configure.sh --mingw make then, the Windows executables that are generated have their name ending in .exe (e.g. objs/emulator.exe instead of objs/emulator) This does not affect the Android build system which already does the right thing (and is used to build SDK binaries). Change-Id: If9597e550f0bceec04d334eb84199a0f024a3fdf --- android-configure.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'android-configure.sh') diff --git a/android-configure.sh b/android-configure.sh index febf59c..f31831c 100755 --- a/android-configure.sh +++ b/android-configure.sh @@ -202,7 +202,7 @@ if [ -n "$SDL_CONFIG" ] ; then #include #undef main int main( int argc, char** argv ) { - return SDL_Init (SDL_INIT_VIDEO); + return SDL_Init (SDL_INIT_VIDEO); } EOF feature_check_link SDL_LINKING @@ -229,7 +229,7 @@ int main( int argc, char** argv ) { SDL_WM_SetPos(x, y); SDL_WM_GetMonitorDPI(&x, &y); SDL_WM_GetMonitorRect(&r); - return SDL_Init (SDL_INIT_VIDEO); + return SDL_Init (SDL_INIT_VIDEO); } EOF feature_check_link SDL_LINKING @@ -362,10 +362,20 @@ feature_check_header HAVE_FNMATCH_H "" # Build the config.make file # +case $TARGET_OS in + windows) + TARGET_EXEEXT=.exe + ;; + *) + TARGET_EXEEXT= + ;; +esac + create_config_mk echo "" >> $config_mk echo "TARGET_ARCH := arm" >> $config_mk echo "HOST_PREBUILT_TAG := $TARGET_OS" >> $config_mk +echo "HOST_EXEEXT := $TARGET_EXEEXT" >> $config_mk echo "PREBUILT := $ANDROID_PREBUILT" >> $config_mk PWD=`pwd` -- cgit v1.1