diff options
author | <philippe colliot> | 2014-09-24 11:12:46 +0200 |
---|---|---|
committer | <philippe colliot> | 2014-09-24 11:12:46 +0200 |
commit | 9ec6469a73aa6a33675b137524bc2e9169db3d8b (patch) | |
tree | 219782e2ffbd6a62adb07c91d29c815854f7231f | |
parent | 4ad0c4eaf1d08e3e09f84b923fb3cdb845bafb58 (diff) | |
download | navigation-9ec6469a73aa6a33675b137524bc2e9169db3d8b.tar.gz |
fsa: migration of the whole build to cmake
-rw-r--r-- | src/.gitignore | 7 | ||||
-rw-r--r-- | src/CMakeLists.txt | 129 | ||||
-rw-r--r-- | src/fuel-stop-advisor/CMakeLists.txt | 22 | ||||
-rw-r--r-- | src/hmi/qml/hmi-launcher/CMakeLists.txt | 124 | ||||
-rw-r--r-- | src/script/0positioning.mk | 64 | ||||
-rw-r--r-- | src/script/automotive-message-broker.mk | 65 | ||||
-rw-r--r-- | src/script/empty.db | bin | 0 -> 36864 bytes | |||
-rw-r--r-- | src/script/genivilogreplayer.mk | 41 | ||||
-rw-r--r-- | src/script/hmi.mk | 46 | ||||
-rw-r--r-- | src/script/layer_management.mk | 69 | ||||
-rw-r--r-- | src/script/log-replayer.mk | 41 | ||||
-rw-r--r-- | src/script/navigation-service.mk | 84 | ||||
-rw-r--r-- | src/script/z_fuel-stop-advisor.mk | 42 |
13 files changed, 265 insertions, 469 deletions
diff --git a/src/.gitignore b/src/.gitignore index daa2aad..51fb2bb 100644 --- a/src/.gitignore +++ b/src/.gitignore @@ -1,5 +1,4 @@ -automotive-message-broker_* -navigation-service-* -navigation-service_* +automotive-message-broker +navigation-service positioning -positioning_* + diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..2cbcd38 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,129 @@ +########################################################################### +# @licence app begin@ +# SPDX-License-Identifier: MPL-2.0 +# +# Component Name: fuel stop advisor application +# +# Author: Philippe Colliot +# +# Copyright (C) 2014, PCA Peugeot Citroën +# +# License: +# This Source Code Form is subject to the terms of the +# Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with +# this file, You can obtain one at http://mozilla.org/MPL/2.0/. +# +# @licence end@ +########################################################################### +cmake_minimum_required(VERSION 2.8) +set (git_get_src_version git rev-parse HEAD) +set (git_executable git) +set (create_file cmake -E touch) + +# Check if navigation-service stuff with the right version has been cloned and do it if necessary +set(navigation-service_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/navigation-service) +set(navigation-service_URL http://git.projects.genivi.org/lbs/navigation.git) +set(navigation-service_VERSION fb92406d88997bd20c89b094b50db8762e1a4869) + +if (EXISTS ${navigation-service_SRC_DIR}) + execute_process( + COMMAND ${git_get_src_version} + WORKING_DIRECTORY "${navigation-service_SRC_DIR}" + RESULT_VARIABLE result + OUTPUT_VARIABLE version + ) + if (${version} MATCHES ${navigation-service_VERSION}) + message(STATUS "version of navigation-service up to date") + else() + message(STATUS "get the right version") + execute_process( + COMMAND "${git_executable}" checkout ${navigation-service_VERSION} + WORKING_DIRECTORY "${navigation-service_SRC_DIR}" + RESULT_VARIABLE error_code + ) + if(error_code) + message(FATAL_ERROR "Failed to checkout version: '${navigation-service_VERSION}'") + endif() + endif() +else() + message(STATUS "clone navigation-service") + execute_process( + COMMAND "${git_executable}" clone "${navigation-service_URL}" "${navigation-service_SRC_DIR}" + RESULT_VARIABLE error_code + ) + if(error_code) + message(FATAL_ERROR "Failed to clone repository: '${navigation-service_URL}'") + endif() + + message(STATUS "get the right version") + execute_process( + COMMAND "${git_executable}" checkout ${navigation-service_VERSION} + WORKING_DIRECTORY "${navigation-service_SRC_DIR}" + RESULT_VARIABLE error_code + ) + if(error_code) + message(FATAL_ERROR "Failed to checkout version: '${navigation-service_VERSION}'") + endif() +endif() + +# Check if automotive-message-broker stuff with the right version has been cloned and do it if necessary +set(automotive-message-broker_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/automotive-message-broker) +set(automotive-message-broker_URL https://github.com/otcshare/automotive-message-broker.git) +set(automotive-message-broker_VERSION ac3fe53327a13afc571efe079a31a0472ea285a3) +set(automotive-message-broker_PATCH_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/patches) +set(automotive-message-broker_PATCH_DUMMY_FILE ${automotive-message-broker_SRC_DIR}/.patched) + +if (EXISTS ${automotive-message-broker_SRC_DIR}) + execute_process( + COMMAND ${git_get_src_version} + WORKING_DIRECTORY "${automotive-message-broker_SRC_DIR}" + RESULT_VARIABLE result + OUTPUT_VARIABLE version + ) + if (${version} MATCHES ${automotive-message-broker_VERSION}) + message(STATUS "version of automotive-message-broker up to date") + else() + message(STATUS "get the right version") + execute_process( + COMMAND "${git_executable}" checkout ${automotive-message-broker_VERSION} + WORKING_DIRECTORY "${automotive-message-broker_SRC_DIR}" + RESULT_VARIABLE error_code + ) + if(error_code) + message(FATAL_ERROR "Failed to checkout version: '${automotive-message-broker_VERSION}'") + endif() + endif() +else() + message(STATUS "clone automotive-message-broker") + execute_process( + COMMAND "${git_executable}" clone "${automotive-message-broker_URL}" "${automotive-message-broker_SRC_DIR}" + RESULT_VARIABLE error_code + ) + if(error_code) + message(FATAL_ERROR "Failed to clone repository: '${automotive-message-broker_URL}'") + endif() + message(STATUS "get the right version") + execute_process( + COMMAND "${git_executable}" checkout ${automotive-message-broker_VERSION} + WORKING_DIRECTORY "${automotive-message-broker_SRC_DIR}" + RESULT_VARIABLE error_code + ) + if(error_code) + message(FATAL_ERROR "Failed to checkout version: '${automotive-message-broker_VERSION}'") + endif() +endif() + +if (EXISTS ${automotive-message-broker_PATCH_DUMMY_FILE}) + message(STATUS "patch already applied") +else() + message(STATUS "apply the patch") + execute_process( + COMMAND patch -d ${automotive-message-broker_SRC_DIR} -p1 -s <${automotive-message-broker_PATCH_SRC_DIR}/amb_allow_sessionbus.patch + COMMAND ${create_file} ${automotive-message-broker_PATCH_DUMMY_FILE} + TIMEOUT 0.1 #cmake -E touch never ends so add a timeout here + WORKING_DIRECTORY "${automotive-message-broker_SRC_DIR}" + RESULT_VARIABLE error_code + ) +endif() + + diff --git a/src/fuel-stop-advisor/CMakeLists.txt b/src/fuel-stop-advisor/CMakeLists.txt index b4598a2..1dfbc25 100644 --- a/src/fuel-stop-advisor/CMakeLists.txt +++ b/src/fuel-stop-advisor/CMakeLists.txt @@ -1,22 +1,18 @@ ########################################################################### +# @licence app begin@ +# SPDX-License-Identifier: MPL-2.0 +# # Component Name: Navit POC +# # Author: Martin Schaller <martin.schaller@it-schaller.de> # -# Copyright (C) 2012, GENIVI Alliance, Inc. -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. # -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# License: +# This Source Code Form is subject to the terms of the +# Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with +# this file, You can obtain one at http://mozilla.org/MPL/2.0/. # +# @licence end@ ########################################################################### cmake_minimum_required(VERSION 2.8) include(FindPkgConfig) diff --git a/src/hmi/qml/hmi-launcher/CMakeLists.txt b/src/hmi/qml/hmi-launcher/CMakeLists.txt new file mode 100644 index 0000000..656a535 --- /dev/null +++ b/src/hmi/qml/hmi-launcher/CMakeLists.txt @@ -0,0 +1,124 @@ +########################################################################### +# @licence app begin@ +# SPDX-License-Identifier: MPL-2.0 +# +# Component Name: hmi-launcher +# +# Author: Philippe Colliot +# +# Copyright (C) 2014, PCA Peugeot Citroën +# +# License: +# This Source Code Form is subject to the terms of the +# Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with +# this file, You can obtain one at http://mozilla.org/MPL/2.0/. +# +# @licence end@ +########################################################################### +project(hmi-launcher) +cmake_minimum_required(VERSION 2.8.11) + +message(STATUS "hmi-launcher") + +find_package(PkgConfig REQUIRED) + +pkg_check_modules(DBUS dbus-1) +pkg_check_modules(QT5_CORE REQUIRED Qt5Core) +pkg_check_modules(QT5_QML REQUIRED Qt5Qml) +pkg_check_modules(QT5_QUICK REQUIRED Qt5Quick) +pkg_check_modules(QT5_DBUS REQUIRED Qt5DBus) +pkg_check_modules(QT5_WIDGETS REQUIRED Qt5Widgets) +pkg_check_modules(QT5_GUI REQUIRED Qt5Gui) +pkg_check_modules(QT5_NETWORK REQUIRED Qt5Network) + +include_directories(${CMAKE_CURRENT_BINARY_DIR}) +include_directories(${QT5_CORE_INCLUDE_DIRS}) +include_directories(${QT5_QML_INCLUDE_DIRS}) +include_directories(${QT5_QUICK_INCLUDE_DIRS}) +include_directories(${QT5_DBUS_INCLUDE_DIRS}) +include_directories(${QT5_WIDGETS_INCLUDE_DIRS}) +include_directories(${QT5_GUI_INCLUDE_DIRS}) +include_directories(${QT5_NETWORK_INCLUDE_DIRS}) +include_directories(${DBUS_INCLUDE_DIRS}) + +set(cmake_create_dir cmake -E make_directory) + +#settings for Qt +set(CMAKE_XXX_FLAGS "${CMAKE_XXX_FLAGS} ${QT5_EXECUTABLE_COMPILE_FLAGS}") +set(CMAKE_POSITION_INDEPENDENT_CODE ON) +set(CMAKE_INCLUDE_CURRENT_DIR ON) +set(CMAKE_AUTOMOC ON) +add_definitions(${QT5_CORE_DEFINITIONS}) +add_definitions(-DQT_PLUGIN) +add_definitions(-DQT_NO_DEBUG) +set(qt_moc moc -o) +set(MOC moc) +set(MOC_DIR ${CMAKE_CURRENT_BINARY_DIR}/${MOC}) + +link_directories( + ${QT5_CORE_LIBRARY_DIRS} + ${QT5_QML_LIBRARY_DIRS} + ${QT5_QUICK_LIBRARY_DIRS} + ${QT5_DBUS_LIBRARY_DIRS} + ${QT5_WIDGETS_LIBRARY_DIRS} + ${QT5_GUI_LIBRARY_DIRS} + ${QT5_NETWORK_LIBRARY_DIRS} + ${DBUS_LIBRARY_DIRS} +) + +set(LIBRARIES + ${QT5_CORE_LIBRARIES} + ${QT5_QML_LIBRARIES} + ${QT5_QUICK_LIBRARIES} + ${QT5_DBUS_LIBRARIES} + ${QT5_WIDGETS_LIBRARIES} + ${QT5_GUI_LIBRARIES} + ${QT5_NETWORK_LIBRARIES} + ${DBUS_LIBRARIES} +) + +# for some reason, automoc doesn't run, so moc is made manually +set (SRC_TO_MOC ${CMAKE_CURRENT_SOURCE_DIR}/dbusif.h + ${CMAKE_CURRENT_SOURCE_DIR}/dbusifsignal.h + ${CMAKE_CURRENT_SOURCE_DIR}/wheelarea.h + ${CMAKE_CURRENT_SOURCE_DIR}/wheelareaplugin.h + ${CMAKE_CURRENT_SOURCE_DIR}/preference.h +) +execute_process( + COMMAND ${cmake_create_dir} ${MOC} +) +foreach (RAW_FILE ${SRC_TO_MOC}) + get_filename_component(FILE ${RAW_FILE} NAME_WE) + if(NOT EXISTS ${MOC_DIR}/moc_${FILE}.cpp) + execute_process( + COMMAND ${qt_moc} "${MOC_DIR}/moc_${FILE}.cpp" ${RAW_FILE} + ) + else() + if(${RAW_FILE} IS_NEWER_THAN ${MOC_DIR}/moc_${FILE}.cpp) + execute_process( + COMMAND ${qt_moc} "${MOC_DIR}/moc_${FILE}.cpp" ${RAW_FILE} + ) + endif() + endif() +endforeach() +file(GLOB MOC_SOURCES ${MOC_DIR}/moc_*.cpp) + +add_executable(hmi-launcher + ${MOC_SOURCES} + main.cpp + dbusif.cpp + wheelareaplugin.cpp + wheelareaplugin.h + preference.cpp + dbusif.h + dbusifsignal.h + wheelarea.h + preference.h +) + +target_link_libraries(hmi-launcher ${LIBRARIES}) + + + + + diff --git a/src/script/0positioning.mk b/src/script/0positioning.mk deleted file mode 100644 index ccad822..0000000 --- a/src/script/0positioning.mk +++ /dev/null @@ -1,64 +0,0 @@ -# @licence app begin@ -# SPDX-License-Identifier: MPL-2.0 -# -# \copyright Copyright (C) 2013-2014, PCA Peugeot Citroen -# -# \file 0positioning.mk -# -# \brief This file is part of the Build System. -# -# \author Martin Schaller <martin.schaller@it-schaller.de> -# \author Philippe Colliot <philippe.colliot@mpsa.com> -# -# \version 1.0 -# -# This Source Code Form is subject to the terms of the -# Mozilla Public License (MPL), v. 2.0. -# If a copy of the MPL was not distributed with this file, -# You can obtain one at http://mozilla.org/MPL/2.0/. -# -# For further information see http://www.genivi.org/. -# -# List of changes: -# -# 4/6/2014, Philippe Colliot, complete src-clean option -# -# @licence end@ -positioning_BIN=$(BIN_DIR)/positioning - -gnss-service_BIN=$(positioning_BIN)/gnss-service -sensors-service_BIN=$(positioning_BIN)/sensors-service -enhanced-position-service_BIN=$(positioning_BIN)/enhanced-position-service - -positioning_URL=http://git.projects.genivi.org/lbs/positioning.git -positioning_VERSION=09698f63ea27a24c533b4c015155ee9ebd7a3026 -positioning_SRC=$(SRC_DIR)/positioning_$(positioning_VERSION) -positioning_API=$(positioning_SRC)/enhanced-position-service/api - -ALL+=positioning - -SRC_CLEAN+=clean-positioning_SRC - -help:: - @echo "positioning: Build positioning" - -clean-positioning_SRC:: - rm -rf $(SRC_DIR)/positioning_* - -positioning: $(positioning_BIN)/enhanced-position-service - -$(positioning_BIN)/enhanced-position-service: $(positioning_BIN)/Makefile - cd $(gnss-service_BIN) && make - cd $(sensors-service_BIN) && make - cd $(enhanced-position-service_BIN) && make - - -$(positioning_BIN)/Makefile: $(positioning_SRC)/enhanced-position-service/CMakeLists.txt - mkdir -p $(positioning_BIN) $(gnss-service_BIN) $(sensors-service_BIN) $(enhanced-position-service_BIN) - cd $(gnss-service_BIN) && cmake $(positioning_SRC)/gnss-service - cd $(sensors-service_BIN) && cmake $(positioning_SRC)/sensors-service - cd $(enhanced-position-service_BIN) && cmake -DWITH_GPSD=OFF -DWITH_DLT=OFF -DWITH_REPLAYER=ON -DWITH_TESTS=OFF $(positioning_SRC)/enhanced-position-service - -$(positioning_SRC)/enhanced-position-service/CMakeLists.txt: - cd $(positioning_SRC)/.. && git clone $(positioning_URL) $(positioning_SRC) - cd $(positioning_SRC) && git checkout $(positioning_VERSION) diff --git a/src/script/automotive-message-broker.mk b/src/script/automotive-message-broker.mk deleted file mode 100644 index 5e1655c..0000000 --- a/src/script/automotive-message-broker.mk +++ /dev/null @@ -1,65 +0,0 @@ -# @licence app begin@ -# SPDX-License-Identifier: MPL-2.0 -# -# \copyright Copyright (C) 2013-2014, PCA Peugeot Citroen -# -# \file automotive-message-broker.mk -# -# \brief This file is part of the Build System. -# -# \author Martin Schaller <martin.schaller@it-schaller.de> -# \author Philippe Colliot <philippe.colliot@mpsa.com> -# -# \version 1.1 -# -# This Source Code Form is subject to the terms of the -# Mozilla Public License (MPL), v. 2.0. -# If a copy of the MPL was not distributed with this file, -# You can obtain one at http://mozilla.org/MPL/2.0/. -# -# For further information see http://www.genivi.org/. -# -# List of changes: -# -# 4/6/2014, Philippe Colliot, complete src-clean option -# -# @licence end@ -automotive-message-broker_URL="https://github.com/otcshare/automotive-message-broker.git" -automotive-message-broker_VERSION=ac3fe53327a13afc571efe079a31a0472ea285a3 -automotive-message-broker_SRC=$(SRC_DIR)/automotive-message-broker_$(automotive-message-broker_VERSION) -automotive-message-broker_BIN=$(BIN_DIR)/automotive-message-broker -automotive-message-broker_DEPS+=cmake libboost-dev libjson0-dev libtool uuid-dev - -DEPS+=$(automotive-message-broker_DEPS) -ALL+=automotive-message-broker -SRC_CLEAN+=clean-automotive-message-broker_SRC - -help:: - @echo "automotive-message-broker: Build automotive-message-broker" - -clean-automotive-message-broker_SRC:: - rm -rf $(SRC_DIR)/automotive-message-broker_* - - -$(automotive-message-broker_SRC)/CMakeLists.txt: - cd $(automotive-message-broker_SRC)/.. && git clone $(automotive-message-broker_URL) $(automotive-message-broker_SRC) - cd $(automotive-message-broker_SRC) && git checkout $(automotive-message-broker_VERSION) - -automotive-message-broker-checkout: $(automotive-message-broker_SRC)/CMakeLists.txt - -$(automotive-message-broker_SRC)/.patched: $(automotive-message-broker_SRC)/CMakeLists.txt - patch -d $(automotive-message-broker_SRC) -p1 -s <$(PATCH_DIR)/amb_allow_sessionbus.patch - touch $(automotive-message-broker_SRC)/.patched - -automotive-message-broker-patch: $(automotive-message-broker_SRC)/.patched - -$(automotive-message-broker_BIN)/Makefile: $(automotive-message-broker_SRC)/.patched - mkdir -p $(automotive-message-broker_BIN) - cd $(automotive-message-broker_BIN) && cmake $(automotive-message-broker_SRC) - -automotive-message-broker-configure: $(automotive-message-broker_BIN)/Makefile - -$(automotive-message-broker_BIN)/ambd/ambd: $(automotive-message-broker_BIN)/Makefile - make -C $(automotive-message-broker_BIN) - -automotive-message-broker: $(automotive-message-broker_BIN)/ambd/ambd diff --git a/src/script/empty.db b/src/script/empty.db Binary files differnew file mode 100644 index 0000000..2ea39bc --- /dev/null +++ b/src/script/empty.db diff --git a/src/script/genivilogreplayer.mk b/src/script/genivilogreplayer.mk deleted file mode 100644 index 19b99dd..0000000 --- a/src/script/genivilogreplayer.mk +++ /dev/null @@ -1,41 +0,0 @@ -# @licence app begin@ -# SPDX-License-Identifier: MPL-2.0 -# -# \copyright Copyright (C) 2013-2014, PCA Peugeot Citroen -# -# \file genivilogreplayer.mk -# -# \brief This file is part of the Build System. -# -# \author Martin Schaller <martin.schaller@it-schaller.de> -# -# \version 1.0 -# -# This Source Code Form is subject to the terms of the -# Mozilla Public License (MPL), v. 2.0. -# If a copy of the MPL was not distributed with this file, -# You can obtain one at http://mozilla.org/MPL/2.0/. -# -# For further information see http://www.genivi.org/. -# -# List of changes: -# -# <date>, <name>, <description of change> -# -# @licence end@ -genivilogreplayer_SRC=$(SRC_DIR)/genivilogreplayer -genivilogreplayer_BIN=$(BIN_DIR)/genivilogreplayer - -ALL+=genivilogreplayer - -help:: - @echo "genivilogreplayer: Build genivilogreplayer" - -$(genivilogreplayer_BIN)/Makefile: $(genivilogreplayer_SRC)/CMakeLists.txt - mkdir -p $(genivilogreplayer_BIN) - cd $(genivilogreplayer_BIN) && cmake -Dautomotive-message-broker_SRC=$(automotive-message-broker_SRC) -Dautomotive-message-broker_BIN=$(automotive-message-broker_BIN) $(genivilogreplayer_SRC) - -$(genivilogreplayer_BIN)/genivilogreplayer: $(genivilogreplayer_BIN)/Makefile - $(MAKE) -C $(genivilogreplayer_BIN) - -genivilogreplayer: $(genivilogreplayer_BIN)/genivilogreplayer diff --git a/src/script/hmi.mk b/src/script/hmi.mk deleted file mode 100644 index bc98444..0000000 --- a/src/script/hmi.mk +++ /dev/null @@ -1,46 +0,0 @@ -# @licence app begin@ -# SPDX-License-Identifier: MPL-2.0 -# -# \copyright Copyright (C) 2013-2014, PCA Peugeot Citroen -# -# \file hmi.mk -# -# \brief This file is part of the Build System. -# -# \author Martin Schaller <martin.schaller@it-schaller.de> -# -# \version 1.0 -# -# This Source Code Form is subject to the terms of the -# Mozilla Public License (MPL), v. 2.0. -# If a copy of the MPL was not distributed with this file, -# You can obtain one at http://mozilla.org/MPL/2.0/. -# -# For further information see http://www.genivi.org/. -# -# List of changes: -# -# 16/06/2014, Philippe Colliot, Migration to Qt5.2 -# 16/07/2014, Philippe Colliot, hmi into an application launcher -# 25/07/2014, Philippe Colliot, update dependencies list -# -# @licence end@ -HMI_SRC=$(SRC_DIR)/hmi/qml/hmi-launcher -HMI_BIN=$(BIN_DIR)/hmi/qml -HMI_DEPS=qtdeclarative5-quicklayouts-plugin qtdeclarative5-dialogs-plugin qtdeclarative5-controls-plugin qtdeclarative5-qtquick2-plugin qtdeclarative5-window-plugin libqt5declarative5 - -DEPS += $(HMI_DEPS) -hmi: $(HMI_BIN)/Makefile $(HMI_BIN)/constants.js - $(MAKE) -C $(HMI_BIN) - -$(HMI_BIN)/Makefile: $(HMI_SRC)/hmi-launcher.pro - mkdir -p $(HMI_BIN) - cd $(HMI_BIN) && $(QMAKE) $(HMI_SRC)/hmi-launcher.pro - -ALL += hmi - -$(HMI_BIN)/constants.js: $(HMI_SRC)/javascript.xsl $(CONSTANTS_SRC) - for i in $(CONSTANTS_SRC); do xsltproc $(HMI_SRC)/javascript.xsl $$i || exit ; done >$(HMI_BIN)/constants.js - -help:: - @echo "hmi: Build hmi" diff --git a/src/script/layer_management.mk b/src/script/layer_management.mk deleted file mode 100644 index e356beb..0000000 --- a/src/script/layer_management.mk +++ /dev/null @@ -1,69 +0,0 @@ -# @licence app begin@ -# SPDX-License-Identifier: MPL-2.0 -# -# \copyright Copyright (C) 2013-2014, PCA Peugeot Citroen -# -# \file layer_management.mk -# -# \brief This file is part of the Build System. -# -# \author Martin Schaller <martin.schaller@it-schaller.de> -# -# \version 1.0 -# -# This Source Code Form is subject to the terms of the -# Mozilla Public License (MPL), v. 2.0. -# If a copy of the MPL was not distributed with this file, -# You can obtain one at http://mozilla.org/MPL/2.0/. -# -# For further information see http://www.genivi.org/. -# -# List of changes: -# -# <date>, <name>, <description of change> -# -# @licence end@ -# layer_management_URL=https://git.genivi.org/srv/git/layer_management -# layer_management_VERSION=ec56d1114fa3ad8d28a8415e85b4c0093dea12f4 - -LAYER_MANAGEMENT=0 -ifneq ($(LAYER_MANAGEMENT),0) -layer_management_URL=http://git.projects.genivi.org/layer_management.git -layer_management_VERSION=d3927a6ae5e6c9230d55b6ba4195d434586521c1 -layer_management_SRC=$(SRC_DIR)/layer_management_$(layer_management_VERSION) -layer_management_BIN=$(BIN_DIR)/layer_management -layer_management_INST=$(layer_management_BIN)/inst/usr/local - -ALL+=layer_management -SRC_CLEAN+=clean-layer_management_SRC - -help:: - @echo "layer_management: Build layer_management" - -clean-layer_management_SRC:: - rm -rf $(layer_management_SRC) - - -$(layer_management_SRC)/CMakeLists.txt: - cd $(layer_management_SRC)/.. && git clone $(layer_management_URL) $(layer_management_SRC) - cd $(layer_management_SRC) && git checkout $(layer_management_VERSION) - -layer_management-checkout: $(layer_management_SRC)/CMakeLists.txt - -$(layer_management_SRC)/.patched: $(layer_management_SRC)/CMakeLists.txt - # patch -d $(layer_management_SRC) -p1 -s <$(PATCH_DIR)/layer_management_cast_fix.patch - touch $(layer_management_SRC)/.patched - -layer_management-patch: $(layer_management_SRC)/.patched - -$(layer_management_BIN)/Makefile: $(layer_management_SRC)/CMakeLists.txt $(layer_management_SRC)/.patched - mkdir -p $(layer_management_BIN) - cd $(layer_management_BIN) && cmake -DWITH_DESKTOP=ON -DWITH_X11_GLES=OFF -DWITH_INPUT_EVENTS=ON -DWITH_FORCE_COPY=ON -DWITH_EGL_EXAMPLE=OFF $(layer_management_SRC) - -layer_management-configure: $(layer_management_BIN)/Makefile - -$(layer_management_BIN)/inst: $(layer_management_BIN)/Makefile - cd $(layer_management_BIN) && make && make DESTDIR=inst install - -layer_management: $(layer_management_BIN)/inst -endif diff --git a/src/script/log-replayer.mk b/src/script/log-replayer.mk deleted file mode 100644 index 390ad60..0000000 --- a/src/script/log-replayer.mk +++ /dev/null @@ -1,41 +0,0 @@ -# @licence app begin@ -# SPDX-License-Identifier: MPL-2.0 -# -# \copyright Copyright (C) 2013-2014, PCA Peugeot Citroen -# -# \file log-replayer.mk -# -# \brief This file is part of the Build System. -# -# \author Martin Schaller <martin.schaller@it-schaller.de> -# -# \version 1.0 -# -# This Source Code Form is subject to the terms of the -# Mozilla Public License (MPL), v. 2.0. -# If a copy of the MPL was not distributed with this file, -# You can obtain one at http://mozilla.org/MPL/2.0/. -# -# For further information see http://www.genivi.org/. -# -# List of changes: -# -# <date>, <name>, <description of change> -# -# @licence end@ -log-replayer_SRC=$(SRC_DIR)/log-replayer -log-replayer_BIN=$(BIN_DIR)/log-replayer - -ALL+=log-replayer - -help:: - @echo "log-replayer: Build log-replayer" - -$(log-replayer_BIN)/Makefile: $(log-replayer_SRC)/CMakeLists.txt - mkdir -p $(log-replayer_BIN) - cd $(log-replayer_BIN) && cmake $(log-replayer_SRC) - -$(log-replayer_BIN)/log-replayer: $(log-replayer_BIN)/Makefile - $(MAKE) -C $(log-replayer_BIN) - -log-replayer: $(log-replayer_BIN)/log-replayer diff --git a/src/script/navigation-service.mk b/src/script/navigation-service.mk deleted file mode 100644 index 446226b..0000000 --- a/src/script/navigation-service.mk +++ /dev/null @@ -1,84 +0,0 @@ -# @licence app begin@ -# SPDX-License-Identifier: MPL-2.0 -# -# \copyright Copyright (C) 2013-2014, PCA Peugeot Citroen -# -# \file navigation-service.mk -# -# \brief This file is part of the Build System. -# -# \author Martin Schaller <martin.schaller@it-schaller.de> -# -# \version 1.1 -# -# This Source Code Form is subject to the terms of the -# Mozilla Public License (MPL), v. 2.0. -# If a copy of the MPL was not distributed with this file, -# You can obtain one at http://mozilla.org/MPL/2.0/. -# -# For further information see http://www.genivi.org/. -# -# List of changes: -# -# 4/6/2014, Philippe Colliot, complete src-clean option -# -# @licence end@ -navigation-service_URL="http://git.projects.genivi.org/lbs/navigation.git" -navigation-service_VERSION=50e6d0a351b7c79ff3d4905c446cd95f11482781 -navigation-service_SRC=$(SRC_DIR)/navigation-service_$(navigation-service_VERSION) -navigation-service_API=$(navigation-service_SRC)/api -navigation-service_BIN=$(BIN_DIR)/navigation-service -navigation-service_DEPS=libsqlite3-dev libglibmm-2.4-dev sqlite3 xsltproc libdbus-c++-dev libdbus-1-dev - -poi-service_SRC=$(navigation-service_SRC)/src/poi-service -poi-service_API=$(navigation-service_API)/poi-service -poi-service_BIN=$(BIN_DIR)/poi-service - -poi-common_BIN=$(BIN_DIR)/poi-common - -DEPS+=$(navigation-service_DEPS) -deps:: $(poi-service_SRC)/poi-server/poi-server.pro - -ALL+=poi-service navit-plugins -SRC_CLEAN+=clean-navigation-service_SRC - -navigation-service_CONSTANTS+=$(navigation-service_SRC)/api/map-viewer/genivi-mapviewer-constants.xml -navigation-service_CONSTANTS+=$(navigation-service_SRC)/api/navigation-core/genivi-navigationcore-constants.xml -navigation-service_CONSTANTS+=$(navigation-service_SRC)/api/poi-service/genivi-poiservice-constants.xml -CONSTANTS_SRC+=$(navigation-service_CONSTANTS) -CONSTANTS_SRC+=$(positioning_API)/genivi-positioning-constants.xml - - -clean-navigation-service_SRC:: - rm -rf $(SRC_DIR)/navigation-service_* - -help:: - @echo "poi-service: Build poi-service" - @echo "navit-plugins: Build navit-plugins" - -$(poi-service_SRC)/poi-server/poi-server.pro $(navigation-service_CONSTANTS): - cd $(SRC_DIR) && git clone $(navigation-service_URL) $(navigation-service_SRC) - cd $(navigation-service_SRC) && git checkout $(navigation-service_VERSION) - -navigation-service-checkout: $(poi-service_SRC)/poi-server/poi-server.pro - -$(poi-service_BIN)/Makefile: $(poi-service_SRC)/poi-server/poi-server.pro - mkdir -p $(poi-service_BIN) - cd $(poi-service_BIN) && $(QMAKE) $(poi-service_SRC)/poi-server/poi-server.pro - -$(poi-common_BIN)/genivi-poiservice-constants.h: $(navigation-service_API)/poi-service/genivi-poiservice-constants.xml - mkdir -p $(poi-common_BIN) - $(poi-service_SRC)/script/generate-api-for-navigation.sh $(navigation-service_API) $(poi-common_BIN) $(positioning_API) - -poi-service-configure: $(poi-service_BIN)/Makefile $(poi-common_BIN)/genivi-poiservice-constants.h - -$(poi-service_BIN)/poi-server: $(poi-service_BIN)/Makefile $(poi-common_BIN)/genivi-poiservice-constants.h - $(MAKE) -C $(poi-service_BIN) - -$(poi-service_BIN)/empty.db: - sqlite3 $(poi-service_BIN)/empty.db "create table empty (int int)" - -poi-service: $(poi-service_BIN)/poi-server $(poi-service_BIN)/empty.db - -navit-plugins mapviewer navigationcore deps:: - $(MAKE) BIN_DIR=$(BIN_DIR) poi-service_API=$(poi-service_API) layer_management_INST=$(layer_management_INST) positioning_SRC=$(positioning_SRC) -C $(navigation-service_SRC)/src/navigation/script $@ diff --git a/src/script/z_fuel-stop-advisor.mk b/src/script/z_fuel-stop-advisor.mk deleted file mode 100644 index ff60697..0000000 --- a/src/script/z_fuel-stop-advisor.mk +++ /dev/null @@ -1,42 +0,0 @@ -# @licence app begin@ -# SPDX-License-Identifier: MPL-2.0 -# -# \copyright Copyright (C) 2013-2014, PCA Peugeot Citroen -# -# \file fuel-stop-advisor.mk -# -# \brief This file is part of the Build System. -# -# \author Martin Schaller <martin.schaller@it-schaller.de> -# -# \version 1.0 -# -# This Source Code Form is subject to the terms of the -# Mozilla Public License (MPL), v. 2.0. -# If a copy of the MPL was not distributed with this file, -# You can obtain one at http://mozilla.org/MPL/2.0/. -# -# For further information see http://www.genivi.org/. -# -# List of changes: -# -# <date>, <name>, <description of change> -# -# @licence end@ -fuel-stop-advisor_SRC=$(SRC_DIR)/fuel-stop-advisor -fuel-stop-advisor_BIN=$(BIN_DIR)/fuel-stop-advisor - -ALL+=fuel-stop-advisor -CONSTANTS_SRC+=$(fuel-stop-advisor_SRC)/constants.xml - -help:: - @echo "fuel-stop-advisor: Build fuel-stop-advisor" - -$(fuel-stop-advisor_BIN)/Makefile: $(fuel-stop-advisor_SRC)/CMakeLists.txt navigation-service-checkout - mkdir -p $(fuel-stop-advisor_BIN) - cd $(fuel-stop-advisor_BIN) && cmake -Dgenivi-navigationcore-routing_API=$(navigation-service_API)/navigation-core/genivi-navigationcore-routing.xml -Dgenivi-navigationcore-constants_API=$(navigation-service_API)/navigation-core/genivi-navigationcore-constants.xml $(fuel-stop-advisor_SRC) - -$(fuel-stop-advisor_BIN)/fuel-stop-advisor: $(fuel-stop-advisor_BIN)/Makefile - $(MAKE) -C $(fuel-stop-advisor_BIN) - -fuel-stop-advisor: $(fuel-stop-advisor_BIN)/fuel-stop-advisor |