18 lines
454 B
Bash
Executable File
18 lines
454 B
Bash
Executable File
#!/bin/bash
|
|
|
|
name="Test_Runner"
|
|
|
|
flags="-P-I/usr/include/freetype2 -L-lfreetype"
|
|
if [ "$1" == "wasm" ]; then
|
|
flags="-mtriple=wasm32-unknown-unknown-wasm --Xcc=-DBUILD_WASM -Iexternal/arsd-webassembly"
|
|
fi
|
|
|
|
/bin/bash ./build.sh build
|
|
|
|
ldc2 platform.d fonts.d aliases.d math.d util.d alloc.d assets.d build/libxxhash.a build/libcglm.a build/libprintf.a $flags -d-version=DLIB_TEST --main --unittest -g --of=$name -verrors=50
|
|
|
|
rm $name.o
|
|
./$name
|
|
#rm $name
|
|
|