summaryrefslogtreecommitdiffstats
path: root/scripts/build-armhf.sh
blob: 78eaee98b276a114d2477fdf8aa0db1864b15303 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/sh

sdir=`dirname $(readlink -f $0)`
rootdir=`dirname $sdir`
echo rootdir $rootdir

export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-armhf

cd $rootdir
rm -rf dist-armhf
mkdir -p dist-armhf/bin
rm -rf build-armhf
mkdir build-armhf
cd build-armhf
cmake -DCMAKE_INSTALL_PREFIX=$rootdir/dist-armhf -DBUILDJAVA=ON -DBUILDEXAMPLES=ON ..
# cmake -DCMAKE_INSTALL_PREFIX=$rootdir/dist-armhf -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON ..
cmake -DCMAKE_INSTALL_PREFIX=$rootdir/dist-armhf -DBUILDEXAMPLES=ON -DDEBUG=ON -DBUILD_TESTING=ON ..
make
make test
make install
cp -a examples/* $rootdir/dist-armhf/bin

cd $rootdir