summaryrefslogtreecommitdiff
path: root/src/navigation/script/0positioning.mk
blob: db089fbc8f1869061a6deccef5af749a1445080c (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# @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
#
# @licence end@
positioning_BIN=$(BIN_DIR)/positioning
gnss-service_BIN=$(BIN_DIR)/gnss-service
sensors-service_BIN=$(BIN_DIR)/sensors-service
positioning_URL=http://git.projects.genivi.org/lbs/positioning.git
positioning_VERSION=40c43fd3ae2210a2cfc634cf6628e97fbcd41d93
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/src/server/position-daemon

$(positioning_BIN)/Makefile: $(positioning_SRC)/enhanced-position-service/CMakeLists.txt
	mkdir -p $(positioning_BIN) $(gnss-service_BIN) $(sensors-service_BIN)
	cd $(gnss-service_BIN) && cmake $(positioning_SRC)/gnss-service
	cd $(sensors-service_BIN) && cmake $(positioning_SRC)/sensors-service
	cd $(positioning_BIN) && cmake -DWITH_GPSD=OFF -DWITH_DLT=OFF -DWITH_REPLAYER=ON -DWITH_TESTS=OFF $(positioning_SRC)/enhanced-position-service


$(positioning_BIN)/enhanced-position-service/src/server/position-daemon: $(positioning_BIN)/Makefile
	cd $(gnss-service_BIN) && make
	cd $(sensors-service_BIN) && make
	cd $(positioning_BIN) && make

$(positioning_SRC)/enhanced-position-service/CMakeLists.txt:
	cd $(positioning_SRC)/.. && git clone $(positioning_URL) $(positioning_SRC)
	cd $(positioning_SRC) && git checkout $(positioning_VERSION)