if [ $opt_release = true ]; then
target_opts="-O3"
else
- target_opts="-O0 -fsanitize=address -ggdb3 -fno-omit-frame-pointer"
+ target_opts="-O1 -fsanitize=address -ggdb3 -fno-omit-frame-pointer"
fi
}
steam_part="$opt_steam $target_libs_steam"
fi
- warnings="-Wall -Wstrict-aliasing=3 -Wno-unused-function"
+ warnings="-Wall -Wstrict-aliasing=3 -Wno-unused-function -Wno-unused-variable -Wno-unused-but-set-variable"
sources="$1 $vg_root/dep/glad/glad.c $target_miniaudio"
output="-o $2$target_ext"
mv $target_dir/.temp_textures $target_dir/textures
cp -r sound $target_dir
cp -r maps $target_dir
+ cp -r models $target_dir
}
compile_tools(){
$vg_root/bin/qoiconv$target_ext $f .temp_textures/"$(basename "$f" .png).qoi"
done
- # Autocombine textures
- echo " [combine]:"
-
- auto_combine=""
- cd textures_combine
- for f in *.png;
- do logit " combine: $f";
- auto_combine="$auto_combine $f"
- done
- $vg_root/bin/texsheet$taget_ext ../.temp_textures/autocombine.qoi ../sprites_autocombine.h sprites_auto_combine $auto_combine
- cd ..
+ if [[ -d "textures_combine" ]]; then
+ # Autocombine textures
+ echo " [combine]:"
+
+ auto_combine=""
+ cd textures_combine
+ for f in *.png;
+ do logit " combine: $f";
+ auto_combine="$auto_combine $f"
+ done
+ $vg_root/bin/texsheet$taget_ext ../.temp_textures/autocombine.qoi ../sprites_autocombine.h sprites_auto_combine $auto_combine
+ cd ..
+ fi
# Compile font file
echo ""