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
="-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=AR9X
${SRCDIR}
42 make -j${JOBS} libsimulator
44 cmake
${COMMON_OPTIONS} -DPCB=9X
${SRCDIR}
45 make -j${JOBS} libsimulator
47 cmake
${COMMON_OPTIONS} -DPCB=9X128
${SRCDIR}
48 make -j${JOBS} libsimulator
50 cmake
${COMMON_OPTIONS} -DPCB=9XR128
${SRCDIR}
51 make -j${JOBS} libsimulator
53 cmake
${COMMON_OPTIONS} -DPCB=9XR
${SRCDIR}
54 make -j${JOBS} libsimulator
56 cmake
${COMMON_OPTIONS} -DPCB=GRUVIN9X
${SRCDIR}
57 make -j${JOBS} libsimulator
59 cmake
${COMMON_OPTIONS} -DPCB=MEGA2560
${SRCDIR}
60 make -j${JOBS} libsimulator
62 cmake
${COMMON_OPTIONS} -DPCB=SKY9X
${SRCDIR}
63 make -j${JOBS} libsimulator
65 cmake
${COMMON_OPTIONS} -DPCB=9XRPRO
${SRCDIR}
66 make -j${JOBS} libsimulator
68 cmake
${COMMON_OPTIONS} -DPCB=X7
${SRCDIR}
69 make -j${JOBS} libsimulator
71 cmake
${COMMON_OPTIONS} -DPCB=X9D
${SRCDIR}
72 make -j${JOBS} libsimulator
74 cmake
${COMMON_OPTIONS} -DPCB=X9D
+ ${SRCDIR}
75 make -j${JOBS} libsimulator
77 cmake
${COMMON_OPTIONS} -DPCB=X9E
${SRCDIR}
78 make -j${JOBS} libsimulator
80 cmake
${COMMON_OPTIONS} -DPCB=X10
${SRCDIR}
81 make -j${JOBS} libsimulator
83 cmake
${COMMON_OPTIONS} -DPCB=X12S
${SRCDIR}
84 make -j${JOBS} libsimulator
86 make -j${JOBS} package
88 if [ "$(uname)" = "Darwin" ]; then