added check to prevent unnecessary SDL download for Android build
authorHolger Schemel <info@artsoft.org>
Sun, 4 Oct 2020 23:17:43 +0000 (01:17 +0200)
committerHolger Schemel <info@artsoft.org>
Sun, 4 Oct 2020 23:17:43 +0000 (01:17 +0200)
build-projects/android/build-scripts/create_sdl.sh

index 7198dfb..901d150 100755 (executable)
@@ -12,6 +12,10 @@ for i in $SDL_VERSIONS; do
     SDL_SUBDIR=`echo $i | sed -e "s/-.*//"`
     SDL_SUBURL=`echo $SDL_SUBDIR | tr -d '2'`
 
+    if [ -d "$JNI_DIR/$SDL_SUBDIR" ]; then
+       continue;
+    fi
+
     if [ "$SDL_SUBURL" = "SDL" ]; then
        SDL_RELEASE_DIR="release"
     else