3 # Stops on first error, echo on
17 echo >&2 "usage: $0 [-j<jobs>|--jobs=<jobs>] SRCDIR OUTDIR VERSION_SUFFIX"
20 break;; # terminate while loop
28 COMMON_OPTIONS
="-DALLOW_NIGHTLY_BUILDS=YES -DGVARS=YES -DHELI=YES -DLUA=YES -DMULTIMODULE=YES -DTELEMETRY=FRSKY -DPPM_LIMITS_SYMETRICAL=YES -DVARIO=YES -DGAUGES=YES -DAUTOSWITCH=YES -DAUTOSOURCE=YES -DAUDIO=YES -DGPS=YES -DPPM_CENTER_ADJUSTABLE=YES -DFLIGHT_MODES=YES -DOVERRIDE_CHANNEL_FUNCTION=YES -DFRSKY_STICKS=YES"
29 if [ "$(uname)" = "Darwin" ]; then
30 COMMON_OPTIONS
="${COMMON_OPTIONS} -DCMAKE_PREFIX_PATH=~/Qt/5.7/clang_64/ -DCMAKE_OSX_DEPLOYMENT_TARGET='10.9'"
33 if [ "$3" != "" ]; then
34 COMMON_OPTIONS
="${COMMON_OPTIONS} -DVERSION_SUFFIX=$3"
41 cmake
${COMMON_OPTIONS} -DPCB=9X
${SRCDIR}
42 make -j${JOBS} libsimulator
44 cmake
${COMMON_OPTIONS} -DPCB=GRUVIN9X
${SRCDIR}
45 make -j${JOBS} libsimulator
47 cmake
${COMMON_OPTIONS} -DPCB=MEGA2560
${SRCDIR}
48 make -j${JOBS} libsimulator
50 cmake
${COMMON_OPTIONS} -DPCB=SKY9X
${SRCDIR}
51 make -j${JOBS} libsimulator
53 cmake
${COMMON_OPTIONS} -DPCB=9XRPRO
${SRCDIR}
54 make -j${JOBS} libsimulator
56 cmake
${COMMON_OPTIONS} -DPCB=X7
${SRCDIR}
57 make -j${JOBS} libsimulator
59 cmake
${COMMON_OPTIONS} -DPCB=X9D
${SRCDIR}
60 make -j${JOBS} libsimulator
62 cmake
${COMMON_OPTIONS} -DPCB=X9D
+ ${SRCDIR}
63 make -j${JOBS} libsimulator
65 cmake
${COMMON_OPTIONS} -DPCB=X9E
${SRCDIR}
66 make -j${JOBS} libsimulator
68 cmake
${COMMON_OPTIONS} -DPCB=X12S
${SRCDIR}
69 make -j${JOBS} libsimulator
71 make -j${JOBS} package
73 if [ "$(uname)" = "Darwin" ]; then