blob: a2d2d05fe3509451713584c4ef2159314baca5f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#! /bin/sh
sdir=`dirname $(readlink -f $0)`
rootdir=`dirname $sdir`
logfile=`basename $0 .sh`.log
rm -f $logfile
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-armhf
doit() {
echo rootdir $rootdir
echo logfile $logfile
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 -DBUILD_TESTING=ON ..
#cmake -DCMAKE_INSTALL_PREFIX=$rootdir/dist-armhf -DBUILDJAVA=ON -DBUILDEXAMPLES=ON -DBUILD_TESTING=ON -DDEBUG=ON ..
make
make test
make install
cp -a examples/* $rootdir/dist-armhf/bin
cd $rootdir
}
doit 2>&1 | tee $logfile
|