summaryrefslogtreecommitdiff
path: root/test/poi-service/rebuild_all.sh
blob: ac20e380442fc44fb914a2984eaf0c144da71a07 (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
31
32
33
34
#!/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 'build the poi server'
cd ../../src/poi-service
./rebuild_all.sh
cd ../../test/poi-service

echo 'build the poi client'

echo 'delete the build folder'
rm -rf build

mkdir build
cd build

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

make