Adding testing functions.
This commit is contained in:
1 parent
e9cf447512
commit
f9c12f4ba2
2 files changed
+72
No files matched your search
Executable
+32
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
for file in *.cpp
|
||||
do
|
||||
filename="${file%.*}"
|
||||
list="$list $filename.o"
|
||||
echo -n "Compiling $filename..."
|
||||
g++ -g -c -std=c++23 -I../../CoreUtils -I../../ServerCore $file &
|
||||
if [ $? = '0' ]
|
||||
then
|
||||
echo "OK"
|
||||
else
|
||||
echo "ERROR"
|
||||
exit -1
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
wait
|
||||
echo -n "Building executable consoleserver..."
|
||||
g++ -g -o consoleserver $list -std=c++23 -L../../CoreUtils -lCoreUtils -L../../ServerCore -lServerCore -lpthread -luuid -lssl -lcrypto
|
||||
if [ $? = '0' ]
|
||||
then
|
||||
echo "OK"
|
||||
else
|
||||
echo "ERROR"
|
||||
exit -1
|
||||
fi
|
||||
|
||||
rm *.o
|
||||
|
||||
|
||||
Reference in new issue
Block a user