summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--api/franca/navigation/mapviewer/Session.fidl1
-rw-r--r--src/navigation/CMakeLists.txt2
-rwxr-xr-xsrc/navigation/build.sh27
-rw-r--r--src/navigation/navigation-core/enhancedposition-client-plugin/genivi_positioning_enhancedposition.cxx2
4 files changed, 22 insertions, 10 deletions
diff --git a/api/franca/navigation/mapviewer/Session.fidl b/api/franca/navigation/mapviewer/Session.fidl
index 7f38ecb..58177bd 100644
--- a/api/franca/navigation/mapviewer/Session.fidl
+++ b/api/franca/navigation/mapviewer/Session.fidl
@@ -8,7 +8,6 @@ package org.genivi.navigation.mapviewer
import org.genivi.CommonTypes.* from "../../CommonTypes.fidl"
import org.genivi.navigation.NavigationTypes.* from "../NavigationTypes.fidl"
-import org.genivi.navigation.mapviewer.MapViewerTypes.* from "./MapViewerTypes.fidl"
<** @description : This interface offers methods that implement the navigation core session functionality of a navigation system.**>
diff --git a/src/navigation/CMakeLists.txt b/src/navigation/CMakeLists.txt
index bdc00ea..a05b1d2 100644
--- a/src/navigation/CMakeLists.txt
+++ b/src/navigation/CMakeLists.txt
@@ -58,7 +58,7 @@ set(NAVIGATION_COMMON_DIR "${CMAKE_CURRENT_SOURCE_DIR}/navigation-common")
if(NOT ${YOCTO_CONFIG})
set(NAVIT_CMAKE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/navit/cmake")
- set(DBUS_GENERATED_INCLUDE_DIR_POSITIONING "${CMAKE_CURRENT_BINARY_DIR}/enhanced-position-service/dbus/api") # this one is for positioning
+ set(DBUS_GENERATED_INCLUDE_DIR_POSITIONING "${CMAKE_BINARY_DIR}/enhanced-position-service/dbus/api") # this one is for positioning, NB: it uses CMAKE_BINARY_DIR
set(NAVIT_CONFIG_H_DIR "${CMAKE_CURRENT_BINARY_DIR}/navit")
else()
set(NAVIT_CMAKE_DIR "${STAGING_LIBDIR}/navit/cmake")
diff --git a/src/navigation/build.sh b/src/navigation/build.sh
index 9b35d20..c1d36e4 100755
--- a/src/navigation/build.sh
+++ b/src/navigation/build.sh
@@ -2,6 +2,7 @@
clean=0
capi=0
+navit=0
commonapi_tools_option=""
function check_path_for_capi
@@ -30,7 +31,7 @@ function check_path_for_capi
commonapi_tools_option="-DDBUS_LIB_PATH="$DBUS_LIB_PATH" -DCOMMONAPI_DBUS_TOOL_DIR="$COMMONAPI_DBUS_TOOL_DIR" -DCOMMONAPI_TOOL_DIR="$COMMONAPI_TOOL_DIR
}
-while getopts cm opt
+while getopts cmn opt
do
case $opt in
c)
@@ -39,11 +40,15 @@ do
m)
capi=1
;;
+ n)
+ navit=1
+ ;;
\?)
echo "Usage:"
- echo "$0 [-c] [-m]"
+ echo "$0 [-cmn]"
echo "-c: build with clean"
echo "-m: build with commonAPI plugins "
+ echo "-n: Build navit"
exit 1
esac
done
@@ -66,12 +71,22 @@ mkdir -p build
cd build
mkdir -p navit
cd navit
-echo 'build navit'
-if [ "$clean" = 1 ]
+
+if [ "$navit" = 1 ]
then
- cmake -DDISABLE_QT=1 -DSAMPLE_MAP=0 -Dvehicle/null=1 -Dgraphics/qt_qpainter=0 ../../navit/
+ echo 'build navit'
+ if [ "$clean" = 1 ]
+ then
+ cmake -DDISABLE_QT=1 -DSAMPLE_MAP=0 -Dvehicle/null=1 -Dgraphics/qt_qpainter=0 ../../navit/
+ fi
+ make
+else
+ if [ "$clean" = 1 ]
+ then
+ cmake -DDISABLE_QT=1 -DSAMPLE_MAP=0 -Dvehicle/null=1 -Dgraphics/qt_qpainter=0 ../../navit/
+ make
+ fi
fi
-make
cd ../
echo 'build navigation'
if [ "$clean" = 1 ]
diff --git a/src/navigation/navigation-core/enhancedposition-client-plugin/genivi_positioning_enhancedposition.cxx b/src/navigation/navigation-core/enhancedposition-client-plugin/genivi_positioning_enhancedposition.cxx
index e1645a2..24d45da 100644
--- a/src/navigation/navigation-core/enhancedposition-client-plugin/genivi_positioning_enhancedposition.cxx
+++ b/src/navigation/navigation-core/enhancedposition-client-plugin/genivi_positioning_enhancedposition.cxx
@@ -111,7 +111,6 @@ class EnhancedPositionClientProxy
{
dbg(lvl_debug,"enter\n");
bool position_found=false;
- printf("A %ld\n",changedValues);
if ((changedValues & (EnhancedPositionServiceTypes::PositionInfoKey::LATITUDE | EnhancedPositionServiceTypes::PositionInfoKey::LONGITUDE)) == (EnhancedPositionServiceTypes::PositionInfoKey::LATITUDE | EnhancedPositionServiceTypes::PositionInfoKey::LONGITUDE))
{
position_found=true;
@@ -120,7 +119,6 @@ class EnhancedPositionClientProxy
printf("B %ld\n",changedValues);
event_add_timeout(0, 0, mp_priv->cb);
mp_priv->cb_pending=1;
- printf("B %ld\n",changedValues);
}
}
};