C++: Fix up build script to include the custom flags when building PGE

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2 12 months ago
parent 41e60aa0b5
commit 07f9ba8da6
  1. 4
      C++/scripts/build.sh
  2. 2
      C++/scripts/md5

@ -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

@ -1,4 +1,4 @@
build.sh:c073187e65d0e23aa77aa94af4ec6382 - build.sh:e307e0388d5f0d16c7f9a39e0177fc47 -
commit.sh:1af81bf417dfb932284d8a14fdd10657 - commit.sh:1af81bf417dfb932284d8a14fdd10657 -
debug.sh:8125f303032b6cbc137223df63d10096 - debug.sh:8125f303032b6cbc137223df63d10096 -
lines.sh:3b907786f7fc9204025993016c9080de - lines.sh:3b907786f7fc9204025993016c9080de -

Loading…
Cancel
Save