release.sh 728 Bytes
Newer Older
1 2 3 4 5
#/bin/bash

mkdir -p release
pushd release &> /dev/null

6
#for toolchain in armv7h-linux;
7
#for toolchain in multiarch-darwin;
8 9 10 11 12 13 14 15
for toolchain in i686-linux i686-w64-mingw32 x86_64-linux x86_64-w64-mingw32;
do
	echo $toolchain
	sudo rm -rf $toolchain
	mkdir $toolchain
	pushd $toolchain &> /dev/null
	cmake \
		-DCMAKE_TOOLCHAIN_FILE=../../cmake/$toolchain.cmake \
16
		-DCMAKE_OSX_ARCHITECTURES="x86_64;i386" \
17 18
		-DCMAKE_BUILD_TYPE=Release \
		-DBUILD_TESTING=1 \
19
		-DBUILD_COMMON_UI=0 \
Hanspeter Portner's avatar
Hanspeter Portner committed
20 21
		-DBUILD_SIMPLE_UI=0 \
		-DBUILD_WEB_UI=1 \
22 23
		-DUSE_FS_EVENT=1 \
		-DCPACK_SYSTEM_NAME="$toolchain" \
24
		-DPLUGIN_DEST=moony.lv2 \
25
		../..
26 27
	make -j4
	ARGS='-VV' make test
28 29 30 31 32 33
	sudo make package
	popd &> /dev/null
done

cp */*.zip .
popd &> /dev/null