summaryrefslogtreecommitdiff
path: root/test/poi-service/rebuild_all.sh
blob: b115d32f40b76271d441c746687731a055934dc0 (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/bash

if [ ! $COMMON_API_ROOT_DIR ]
then 
	echo 'Set the root dir of the common api tools'
	echo 'You are supposed to build common-api-dbus-tools and common-api-tools under the same root dir'
	echo 'export COMMON_API_ROOT_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

OS_VERSION=$(uname -i)

echo 'build with CommonAPI'
cmake -DWITH_FRANCA_DBUS_INTERFACE=ON -DWITH_DATABASE_SUPPLIER=ON -DCOMMONAPI_DBUS_TOOL_GENERATOR=$COMMON_API_ROOT_DIR/common-api-dbus-tools/org.genivi.commonapi.dbus.cli.product/target/products/org.genivi.commonapi.dbus.cli.product/linux/gtk/$OS_VERSION/commonapi-dbus-generator-linux-$OS_VERSION -DCOMMONAPI_TOOL_GENERATOR=$COMMON_API_ROOT_DIR/common-api-tools/org.genivi.commonapi.core.cli.product/target/products/org.genivi.commonapi.core.cli.product/linux/gtk/$OS_VERSION/commonapi-generator-linux-$OS_VERSION -DWITH_DEBUG=ON . ../

make