project_files/Android-build/download_libs.sh
author Wuzzy <Wuzzy2@mail.ru>
Sat, 06 Jun 2020 15:40:51 +0200
changeset 15597 6e72bd61002e
parent 9369 b96988134dc6
permissions -rwxr-xr-x
Disable gfMoreWind for land objects on turn end only after a fixed-time delay 15s sounds much, but it's the average amount for gfMineStrike mines to settle naturally. And it would be very confusing to see falling mines suddenly not caring about gfMoreWind for no apparent reason. Note this whole thing is a giant hack anyway, to prevent a turn being blocked by infinitely bouncing mines. The better solution would be to help gfMoreWind-affected land objects settle naturally more reliably even under extreme wind. But this commit is "good enough" for now. If you don't like the delay, you can always tweak the constant.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6590
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
     1
#!/bin/sh
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
     2
download_and_zip (){
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
     3
    echo "Downloading: $1"
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
     4
    curl -silent -o tmp.zip $1 #grab the zips from an url
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
     5
    unzip -qq tmp.zip  -d SDL-android-project/jni/tmp #unzip it to a tmp file
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
     6
    rm -fr SDL-android-project/jni/$2 #remove any old dirs, we will get those files back with hg revert in CMakeList
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
     7
    mv SDL-android-project/jni/tmp/* SDL-android-project/jni/$2 #move the tmp dir to the jni directory
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
     8
    rm tmp.zip #remove old tmp dir
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
     9
}
6592
cf12f07d6f24 update the core/android/SDL_android.cpp fix some includes in Android.mks, use a different host to download some libs, sdl doesn't have up to date tarballs..
Xeli
parents: 6590
diff changeset
    10
download_and_zip http://www.xelification.com/tmp/jpeg.zip jpeg
cf12f07d6f24 update the core/android/SDL_android.cpp fix some includes in Android.mks, use a different host to download some libs, sdl doesn't have up to date tarballs..
Xeli
parents: 6590
diff changeset
    11
download_and_zip http://www.xelification.com/tmp/png.zip png
9369
b96988134dc6 fixed urls - added new version links
Edža <s@o-o.lv>
parents: 6592
diff changeset
    12
download_and_zip http://www.libsdl.org/tmp/SDL_image/release/SDL2_image-2.0.0.zip SDL_image
b96988134dc6 fixed urls - added new version links
Edža <s@o-o.lv>
parents: 6592
diff changeset
    13
download_and_zip http://www.libsdl.org/tmp/SDL_mixer/release/SDL2_mixer-2.0.0.zip SDL_mixer
6590
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
    14
download_and_zip http://www.xelification.com/tmp/mikmod.zip mikmod #temporary url since the libsdl.org site doesn't work at the moment
9369
b96988134dc6 fixed urls - added new version links
Edža <s@o-o.lv>
parents: 6592
diff changeset
    15
download_and_zip http://www.libsdl.org/projects/SDL_net/release/SDL_net-1.2.8.zip SDL_net
6590
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
    16
download_and_zip http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-2.0.11.zip SDL_ttf
9369
b96988134dc6 fixed urls - added new version links
Edža <s@o-o.lv>
parents: 6592
diff changeset
    17
download_and_zip http://www.libsdl.org/tmp/release/SDL2-2.0.0.zip SDL
6590
5f15b4026b19 Added a script to simplify building the android port
Xeli
parents:
diff changeset
    18