-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathmakeEXE.sh
executable file
·61 lines (45 loc) · 1.13 KB
/
makeEXE.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
release=${1:-"NO_RELEASE"}
#
# create build dir if does not exist, cd to build, conan install and then qmake
#
mkdir -p build
cd build
rm -fr *.dmg *.app
# conan install
conan install .. --build missing
if [[ $0 != 0 ]]; then
echo "EE-UQ: conan install failed";
fi
#
# qmake
#
if [ -n "$release" ] && [ "$release" = "release" ]; then
echo "******** RELEASE BUILD *************"
qmake QMAKE_CXXFLAGS+=-D_SC_RELEASE ../EE-UQ.pro
cmd_status=$?; if [[ $cmd_status != 0 ]]; then echo "EE-UQ: qmake failed"; exit $cmd_status; fi
else
echo "********* NON RELEASE BUILD ********"
qmake ../EE-UQ.pro
cmd_status=$?; if [[ $cmd_status != 0 ]]; then echo "EE-UQ: qmake failed"; exit $cmd_status; fi
fi
#
# make
#
touch ../WorkflowAppEE-UQ.cpp
make -j 4
cmd_status=$?;
if [[ $cmd_status != 0 ]]
then
echo "EE-UQ: make failed";
exit $cmd_status;
fi
if [[ "$OSTYPE" == "darwin"* ]]
then
cp -r ../Examples ./EE_UQ.app/contents/MacOS
rm -fr ./EE_UQ.app/contents/MacOS/Examples/.archive
rm -fr ./EE_UQ.app/contents/MacOS/Examples/.aurore
else
#
echo "No Examples Copied"
fi