projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
model fmt & heisenbug
[carveJwlIkooP6JGAAIwe30JlM.git]
/
build.sh
diff --git
a/build.sh
b/build.sh
index 5c72dd35a66e20f4e36d67ace43c4e949d53fd9c..0228534080bc83d6aee13c56acbaa198e065ba1d 100755
(executable)
--- a/
build.sh
+++ b/
build.sh
@@
-10,7
+10,7
@@
# Compiler Presets
# ==============================================================================
# Compiler Presets
# ==============================================================================
-_linux_compiler="
gcc
-std=c99 -D_REENTRANT"
+_linux_compiler="
clang
-std=c99 -D_REENTRANT"
_linux_linkgraphics="-lGL -lglfw3 -lX11 -lXxf86vm -lXrandr -lm -pthread -lXi -ldl"
_linux_asan="-fsanitize=address"
_linux_linksteam="-lsteam_api"
_linux_linkgraphics="-lGL -lglfw3 -lX11 -lXxf86vm -lXrandr -lm -pthread -lXi -ldl"
_linux_asan="-fsanitize=address"
_linux_linksteam="-lsteam_api"
@@
-23,7
+23,7
@@
_windows_asan=""
_windows_linksteam="vg/dep/steam/steam_api.dll"
_windows_folder="bin/win32"
_windows_linksteam="vg/dep/steam/steam_api.dll"
_windows_folder="bin/win32"
-_options_debugmode="-O0 -ggdb3 -fno-omit-frame-pointer"
+_options_debugmode="-O0 -ggdb3 -fno-omit-frame-pointer
-rdynamic
"
_options_release="-O3 -DVG_RELEASE"
# Compiler lines
_options_release="-O3 -DVG_RELEASE"
# Compiler lines
@@
-57,7
+57,7
@@
compile_miniaudio(){
# TODO
run_game(){
cd $_linux_folder
# TODO
run_game(){
cd $_linux_folder
- ./skaterift
+ ./skaterift
--samples=4
cd ./../
}
cd ./../
}
@@
-94,6
+94,14
@@
vg_command(){
_linux_options="$_linux_asan $_options_debugmode"
_windows_options="$_windows_asan $_options_debugmode"
;;
_linux_options="$_linux_asan $_options_debugmode"
_windows_options="$_windows_asan $_options_debugmode"
;;
+ ltools)
+ _compiler=$_linux_compiler
+ _options=$_linux_options
+ _folder=$_linux_folder
+ _ext=""
+ vg_compile_tools
+
+ ;;
game)
titleit "Creating Linux build"
mkdir -p $_linux_folder/cfg
game)
titleit "Creating Linux build"
mkdir -p $_linux_folder/cfg
@@
-188,13
+196,24
@@
vg_command(){
./bin/linux/tools/qoiconv $f $dest
done
;;
./bin/linux/tools/qoiconv $f $dest
done
;;
+ sounds)
+ titleit "Compiling sounds"
+ mkdir -p ./bin/content/textures
+
+ for f in ./sound_src/*.wav
+ do
+ dest=./bin/content/sounds/"$(basename "$f" .wav).44100.ima_adpcm"
+ ./bin/linux/tools/audcomp $f $dest
+ done
+ ;;
+
content)
logit "Copying content"
mkdir -p ./bin/content/models
mkdir -p ./bin/content/sound
cp ./models_src/* ./bin/content/models/
content)
logit "Copying content"
mkdir -p ./bin/content/models
mkdir -p ./bin/content/sound
cp ./models_src/* ./bin/content/models/
- cp ./sound_src/* ./bin/content/sound/
+
#
cp ./sound_src/* ./bin/content/sound/
;;
all)
;;
all)
@@
-228,6
+247,11
@@
vg_command(){
test)
run_game
;;
test)
run_game
;;
+ gdb)
+ cd $_linux_folder
+ gdb -tui ./skaterift
+ cd ./../
+ ;;
testserver)
run_server
;;
testserver)
run_server
;;