-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbuildsdk.sh
executable file
·45 lines (37 loc) · 1.03 KB
/
buildsdk.sh
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#! /bin/sh
#
# buildsdk.sh
#
# Build script for the macchina.io Remote Manager Device SDK.
#
PARALLEL_BUILDS=4
config=""
if [ "$1" != "" ] ; then
config="--config=$1"
fi
echo "Starting macchina.io Remote Manager SDK build..."
export POCO_BASE=`pwd`
export POCO_CONFIG=$1
./configure --cflags=-DPOCO_UTIL_NO_XMLCONFIGURATION --cflags=-DPOCO_UTIL_NO_JSONCONFIGURATION --no-tests --no-samples --omit=PageCompiler,PageCompiler/File2Page --static $config
if [ $? -ne 0 ] ; then
echo "Configure script failed. Exiting."
exit 1
fi
make -s -j$PARALLEL_BUILDS DEFAULT_TARGET=static_release
if [ $? -ne 0 ] ; then
echo "POCO C++ Libraries build failed. Exiting."
exit 1
fi
mkdir -p bin
for app in WebTunnelAgent WebTunnelClient WebTunnelSSH WebTunnelSCP WebTunnelSFTP WebTunnelVNC WebTunnelRDP; do
echo "Building: $app"
make -s DEFAULT_TARGET=shared_release -C WebTunnel/$app
if [ $? -ne 0 ] ; then
echo "SDK build failed."
exit 1
fi
cp -R WebTunnel/$app/bin/* bin
done
echo ""
echo "macchina.io Remote Manager SDK build is complete."
echo ""