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 7198dfb3636e1438557b6c55a6043dd3795e74a5..901d150d0b836059393ccbcc9b4fbff3fb51829e 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