2024-06-16 15:41:13 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
FTEQCC=fteqcc-cli-lin
|
|
|
|
|
|
|
|
# Switch to macOS fteqcc binary if on that platform.
|
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
|
|
FTEQCC=fteqcc-cli-mac
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd ../
|
|
|
|
|
|
|
|
# generate hash table
|
|
|
|
echo "Generating Hash Table.."
|
|
|
|
python3 bin/qc_hash_generator.py -i tools/asset_conversion_table.csv -o source/server/hash_table.qc
|
|
|
|
|
|
|
|
# create build directories
|
|
|
|
mkdir -p build/{fte,standard}
|
|
|
|
|
|
|
|
cd bin/
|
|
|
|
|
|
|
|
# build..
|
|
|
|
echo "Compiling FTE CSQC.."
|
|
|
|
./$FTEQCC -srcfile ../progs/csqc.src | grep -E -i "warning |error |defined |not |unknown |branches"
|
|
|
|
echo "Compiling FTE SSQC.."
|
|
|
|
./$FTEQCC -O3 -DFTE -srcfile ../progs/ssqc.src | grep -E -i "warning |error |defined |not |unknown |branches"
|
2024-10-17 03:46:20 +00:00
|
|
|
echo "Compiling FTE MenuQC.."
|
|
|
|
./$FTEQCC -O3 -DFTE -srcfile ../progs/menu.src | grep -E -i "warning |error |defined |not |unknown |branches"
|
2024-06-16 15:41:13 +00:00
|
|
|
echo "Compiling Standard/Id SSQC.."
|
|
|
|
./$FTEQCC -O3 -srcfile ../progs/ssqc.src | grep -E -i "warning |error |defined |not |unknown |branches"
|
|
|
|
|
2024-06-29 21:09:18 +00:00
|
|
|
echo "End of script."
|