-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcontinueBuild.sh
More file actions
executable file
·67 lines (52 loc) · 1.3 KB
/
continueBuild.sh
File metadata and controls
executable file
·67 lines (52 loc) · 1.3 KB
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
62
63
64
65
66
67
#!/bin/bash
## This scripts clean all old build information and starts a fresh build
## Arguments: release : Do a release-build with packaging
build_type=debug
if [ "$1" = "release" ]; then
build_type=release
fi
# set environment variables needed for windows build tools
function run_vs14
{
# The environment variable VS140COMNTOOLS exists when Visual Studio 2015 is installed
eval vssetup="\$VS140COMNTOOLS\\..\\\..\\\VC\\\vcvarsall.bat"
#eval vssetup="\$VS140COMNTOOLS\\VsDevCmd.bat"
cmd /Q /C call "$vssetup" x64 "&&" "${@}"
}
# detect operating system
set OS=Linux
case "$(uname -s)" in
Linux)
OS=Linux
;;
CYGWIN*|MINGW*|MSYS*)
OS=Windows
;;
*)
echo 'unknown OS'
return 1
;;
esac
pushd build_pm
startTime=`date`
if [ "$OS" == "Windows" ]; then
# use 8 threads for compilation
run_vs14 jom -j 8 all || exit $?
#run_vs14 nmake all || exit $?
if [ "$build_type" = "release" ]; then
pushd ../install_windows/manual_packaging
./buildMsiSetup.sh || exit $?
popd
fi
else
# Linux
## use 8 threads for compilation
#make -j -l 8 all || exit $?
make -Wfatal-errors all || exit $?
# if [ "$build_type" = "release" ]; then
# cpack -G DEB .. || exit $?
# fi
fi
popd
echo "Build-Full started at: $startTime"
echo "Build-Full finished at: `date`"