opt_windows=false
opt_tools=false
opt_full=false
+opt_gcc=""
opt_steam=""
# Util
target_os_linux(){
target_ext=""
target_compiler="gcc"
- target_libs="-lGL -lglfw -lX11 -lXxf86vm -lXrandr -lm -lpthread -lXi -ldl"
+ target_libs="-lGL -lglfw -lX11 -lXxf86vm -lXrandr -lm -lpthread -lXi -ldl -lsteam_api"
target_dir="build.linux"
target_steam_api="libsteam_api.so"
if [ $opt_release = true ]; then
}
compile_x(){
- paths="-I. -L$vg_root/dep/glfw -I$vg_root/dep -I$vg_root/src"
- setup="$target_compiler -Wall -Wstrict-aliasing=3 -Wno-unused-function $paths"
+ paths="-I. -L$vg_root/dep/glfw -L$vg_root/dep/steam -I$vg_root/dep -I$vg_root/src"
+ setup="$target_compiler $opt_gcc -Wall -Wstrict-aliasing=3 -Wno-unused-function $paths"
targets="$1 $vg_root/dep/glad/glad.c -o $2$target_ext"
final="$target_libs -Wl,-rpath=./ $opt_steam"
cmd="$setup $target_opts $targets $final"
target_os_linux
fi
-options=rptlwa
+options=rptlwaq
longopts=release,build-linux,build-windows,steam,play,build-tools,assets,full
parsed=$(getopt --options=$options --longoptions=$longopts --name "vgc" -- "$@")
eval set -- "$parsed"
while true; do
case "$1" in
+ -q)
+ opt_gcc=""
+ shift;
+ ;;
-a|--assets)
opt_assets=true
shift;