Update template
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
94f9d41e5e
commit
1c1b4eea01
@ -9,7 +9,7 @@ fi
|
|||||||
if [ ! -f "pixelGameEngine.o" ]
|
if [ ! -f "pixelGameEngine.o" ]
|
||||||
then
|
then
|
||||||
printf "Pixel Game Engine compile object missing. Compiling for the first time..."
|
printf "Pixel Game Engine compile object missing. Compiling for the first time..."
|
||||||
g++ -c pixelGameEngine.cpp
|
g++ ${CUSTOM_PARAMS} -c pixelGameEngine.cpp
|
||||||
fi
|
fi
|
||||||
if [ "$1" = "test" ]
|
if [ "$1" = "test" ]
|
||||||
then
|
then
|
||||||
@ -21,7 +21,7 @@ then
|
|||||||
elif [ "$1" = "full" ]
|
elif [ "$1" = "full" ]
|
||||||
then
|
then
|
||||||
echo "" > ./test/test.h
|
echo "" > ./test/test.h
|
||||||
g++ -c pixelGameEngine.cpp
|
g++ ${CUSTOM_PARAMS} -c pixelGameEngine.cpp
|
||||||
if g++ $(find . -type f -name "*.cpp" -not -path "./test/*" -not -name "pixelGameEngine.cpp") pixelGameEngine.o ${CUSTOM_PARAMS} -o ${PROJECT_NAME}; then
|
if g++ $(find . -type f -name "*.cpp" -not -path "./test/*" -not -name "pixelGameEngine.cpp") pixelGameEngine.o ${CUSTOM_PARAMS} -o ${PROJECT_NAME}; then
|
||||||
./${PROJECT_NAME} "$@"
|
./${PROJECT_NAME} "$@"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user