summaryrefslogtreecommitdiff
path: root/src/poi-service/rebuild_all.sh
blob: 2ef165ad2556773e0b6fbb29e638b38df354535d (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
#!/bin/bash

if [ ! $COMMONAPI_TOOL_DIR ]
then 
	echo 'Set the dir of the common api tools'
	echo 'export COMMONAPI_TOOL_DIR=<path>'
	exit 1
fi

if [ ! $COMMONAPI_DBUS_TOOL_DIR ]
then 
	echo 'Set the dir of the common api dbus tools'
	echo 'export COMMONAPI_DBUS_TOOL_DIR=<path>'
	exit 1
fi

echo 'delete the build folder'
rm -rf build

mkdir build
cd build

echo 'build with CommonAPI'
cmake -DWITH_FRANCA_DBUS_INTERFACE=ON -DWITH_DBUS_INTERFACE=OFF -DCOMMONAPI_DBUS_TOOL_DIR=$COMMONAPI_DBUS_TOOL_DIR -DCOMMONAPI_TOOL_DIR=$COMMONAPI_TOOL_DIR -DWITH_DEBUG=ON . ../

make