summaryrefslogtreecommitdiff
path: root/src/navigation/script/positioning.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/navigation/script/positioning.mk')
-rw-r--r--src/navigation/script/positioning.mk69
1 files changed, 69 insertions, 0 deletions
diff --git a/src/navigation/script/positioning.mk b/src/navigation/script/positioning.mk
new file mode 100644
index 0000000..f1898cf
--- /dev/null
+++ b/src/navigation/script/positioning.mk
@@ -0,0 +1,69 @@
+# @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.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
+#
+# 26/6/2014, Marco Residori, add support of new enhanced-position-service
+#
+# @licence end@
+
+positioning_BIN=$(BIN_DIR)/positioning
+
+log-replayer_BIN=$(positioning_BIN)/log-replayer
+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=963d70c3d3a1f534146372e24c4d53a57d14ade2
+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 $(positioning_SRC)
+
+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 $(log-replayer_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) $(log-replayer_BIN) $(enhanced-position-service_BIN)
+ cd $(gnss-service_BIN) && cmake $(positioning_SRC)/gnss-service
+ cd $(sensors-service_BIN) && cmake $(positioning_SRC)/sensors-service
+ cd $(log-replayer_BIN) && cmake $(positioning_SRC)/log-replayer
+ 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)