Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
executable file 52 lines (35 sloc) 1.44 KB
#!/bin/sh
set -e
#--------------------------------------------------------------------------------------------------
# Settings
#--------------------------------------------------------------------------------------------------
source="https://github.com/omega-gg/3rdparty"
#--------------------------------------------------------------------------------------------------
# environment
compiler_win="mingw"
#--------------------------------------------------------------------------------------------------
# Syntax
#--------------------------------------------------------------------------------------------------
if [ $# != 1 -a $# != 2 ] \
|| \
[ $1 != "win32" -a $1 != "win64" -a $1 != "macOS" -a $1 != "linux" -a $1 != "android" ] \
|| \
[ $# = 2 -a "$2" != "all" ]; then
echo "Usage: 3rdparty <win32 | win64 | macOS | linux | android> [all]"
exit 1
fi
#--------------------------------------------------------------------------------------------------
# Clone
#--------------------------------------------------------------------------------------------------
cd ..
if [ ! -d "3rdparty" ]; then
git clone $source
fi
#--------------------------------------------------------------------------------------------------
# 3rdparty
#--------------------------------------------------------------------------------------------------
cd 3rdparty
if [ "$2" = "all" ]; then
sh environment.sh $compiler_win
fi
sh generate.sh $1