Skip to content

Commit

Permalink
fmk - updating ifdef for release in shell scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
fmckenna committed Oct 6, 2024
1 parent 4d6d951 commit 2787d86
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions makeEXE.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

release=${1:-"NO_RELEASE"}

#
# create build dir if does not exist, cd to build, conan install and then qmake
#
Expand All @@ -13,11 +15,11 @@ rm -fr *.app *dmg
#

conan install .. --build missing
status=$?
if [[ $status != 0 ]]
cmd_status=$?
if [[ $cmd_status != 0 ]]
then
echo "PBE: conan install failed";
exit $status;
exit $cmd_status;
fi

#
Expand All @@ -26,17 +28,17 @@ fi

if [ -n "$release" ] && [ "$release" = "release" ]; then
echo "******** RELEASE BUILD *************"
qmake QMAKE_CXXFLAGS+="-D_SC_RELEASE" ../PBE.pro
qmake QMAKE_CXXFLAGS+=-D_SC_RELEASE ../PBE.pro
else
echo "********* NON RELEASE BUILD ********"
qmake ../PBE.pro
fi

status=$?
if [[ $status != 0 ]]
cmd_status=$?
if [[ $cmd_status != 0 ]]
then
echo "PBE: qmake failed";
exit $status;
exit $cmd_status;
fi

#
Expand All @@ -45,11 +47,11 @@ fi

touch ../WorkflowAppPBE.cpp
make -j 4
status=$?;
if [[ $status != 0 ]]
cmd_status=$?;
if [[ $cmd_status != 0 ]]
then
echo "PBE: make failed";
exit $status;
exit $cmd_status;
fi

# copy examples
Expand Down

0 comments on commit 2787d86

Please sign in to comment.