2015-09-09 22:21:51 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-05-22 00:27:06 +02:00
|
|
|
# make_release <release name> <platform> [<cmake args ...>]
|
|
|
|
make_release()
|
|
|
|
{
|
|
|
|
echo
|
|
|
|
echo "--- build release for $1 ---"
|
|
|
|
echo
|
|
|
|
RELEASE=$1
|
|
|
|
PLATFORM=$2
|
|
|
|
shift 2
|
2021-11-16 18:12:56 +01:00
|
|
|
|
2020-08-08 16:51:23 +02:00
|
|
|
rm -rf build-${RELEASE}
|
2019-07-18 22:28:35 +02:00
|
|
|
mkdir -p build-${RELEASE}
|
2020-08-08 16:51:23 +02:00
|
|
|
rm -rf deploy/${RELEASE}
|
2016-05-24 19:56:43 +02:00
|
|
|
mkdir -p deploy/${RELEASE}
|
2019-06-10 15:19:08 +02:00
|
|
|
|
2019-07-18 22:28:35 +02:00
|
|
|
cd build-${RELEASE}
|
2021-10-28 19:54:54 +02:00
|
|
|
|
2022-02-11 20:36:15 +01:00
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -DPLATFORM=${PLATFORM} -DCMAKE_BUILD_TYPE=Release -Wno-dev $@ .. || exit 1
|
|
|
|
#cmake -DCMAKE_INSTALL_PREFIX=/usr -DPLATFORM=${PLATFORM} -DCMAKE_BUILD_TYPE=Debug $@ .. || exit 1
|
2016-05-22 00:27:06 +02:00
|
|
|
make -j $(nproc) || exit 1
|
2021-10-28 19:54:54 +02:00
|
|
|
strip bin/*
|
2016-05-24 19:56:43 +02:00
|
|
|
make package -j $(nproc)
|
2020-02-16 16:24:33 +01:00
|
|
|
mv Hyperion-* ../deploy/${RELEASE}
|
2016-05-22 00:27:06 +02:00
|
|
|
cd ..
|
|
|
|
bin/create_release.sh . ${RELEASE}
|
|
|
|
}
|
2015-09-09 22:21:51 +02:00
|
|
|
|
2022-02-11 20:36:15 +01:00
|
|
|
#export QTDIR="/opt/Qt/6.2.2/gcc_64"
|
|
|
|
#export QTDIR="/opt/Qt/5.15.2/gcc_64"
|
2021-11-16 18:12:56 +01:00
|
|
|
|
2019-07-18 22:28:35 +02:00
|
|
|
CMAKE_PROTOC_FLAG="-DIMPORT_PROTOC=../build-x86x64/protoc_export.cmake"
|
|
|
|
CMAKE_FLATC_FLAG="-DIMPORT_FLATC=../build-x86x64/flatc_export.cmake"
|
2019-06-10 15:19:08 +02:00
|
|
|
|
2022-02-11 20:36:15 +01:00
|
|
|
make_release x86x64 x11 $@
|
|
|
|
#make_release x32 x11 $@ -DCMAKE_TOOLCHAIN_FILE="../cmake/Toolchain-x32.cmake" ${CMAKE_PROTOC_FLAG} ${CMAKE_FLATC_FLAG}
|
|
|
|
#make_release rpi rpi $@ -DCMAKE_TOOLCHAIN_FILE="../cmake/Toolchain-rpi.cmake" ${CMAKE_PROTOC_FLAG} ${CMAKE_FLATC_FLAG}
|
|
|
|
#make_release wetek wetek $@ -DCMAKE_TOOLCHAIN_FILE="../cmake/Toolchain-rpi.cmake" ${CMAKE_PROTOC_FLAG} ${CMAKE_FLATC_FLAG}
|
|
|
|
#make_release imx6 imx6 $@ -DCMAKE_TOOLCHAIN_FILE="../cmake/Toolchain-imx6.cmake" ${CMAKE_PROTOC_FLAG} ${CMAKE_FLATC_FLAG}
|