2021-11-07 03:03:57 +01:00
|
|
|
@@ -30,7 +30,7 @@
|
2021-11-05 17:51:09 +01:00
|
|
|
SRCDIR=$1
|
|
|
|
OUTDIR=$2
|
|
|
|
|
|
|
|
-COMMON_OPTIONS="-DGVARS=YES -DHELI=YES -DLUA=YES -Wno-dev -DCMAKE_BUILD_TYPE=Release"
|
|
|
|
+COMMON_OPTIONS="-DCMAKE_INSTALL_PREFIX=/usr -DGVARS=YES -DHELI=YES -DLUA=YES -Wno-dev -DCMAKE_BUILD_TYPE=Release"
|
|
|
|
if [ "$(uname)" = "Darwin" ]; then
|
|
|
|
COMMON_OPTIONS="${COMMON_OPTIONS} -DCMAKE_OSX_DEPLOYMENT_TARGET='10.9'"
|
|
|
|
elif [ "$(uname)" != "Linux" ]; then
|
2021-11-07 03:03:57 +01:00
|
|
|
@@ -41,9 +41,9 @@
|
2021-11-05 17:51:09 +01:00
|
|
|
COMMON_OPTIONS="${COMMON_OPTIONS} -DVERSION_SUFFIX=$3"
|
|
|
|
fi
|
|
|
|
|
|
|
|
-rm -rf build
|
|
|
|
-mkdir build
|
|
|
|
-cd build
|
|
|
|
+rm -rf ${OUTDIR}
|
|
|
|
+mkdir ${OUTDIR}
|
|
|
|
+cd ${OUTDIR}
|
|
|
|
|
|
|
|
cmake ${COMMON_OPTIONS} -DPCB=X9LITE ${SRCDIR}
|
|
|
|
make -j${JOBS} libsimulator
|
2021-11-07 03:03:57 +01:00
|
|
|
@@ -128,13 +128,3 @@
|
2021-11-05 17:51:09 +01:00
|
|
|
cmake ${COMMON_OPTIONS} -DPCB=X12S ${SRCDIR}
|
|
|
|
make -j${JOBS} libsimulator
|
|
|
|
|
|
|
|
-if [ "$(uname)" = "Darwin" ]; then
|
|
|
|
- make -j${JOBS} package
|
|
|
|
- cp *.dmg ${OUTDIR}
|
|
|
|
-elif [ "$(uname)" = "Linux" ]; then
|
|
|
|
- make -j${JOBS} package
|
|
|
|
- cp *.AppImage ${OUTDIR}
|
|
|
|
-else
|
|
|
|
- make installer
|
|
|
|
- cp companion/*.exe ${OUTDIR}
|
|
|
|
-fi
|