File: Makefile.am

package info (click to toggle)
viking 1.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,468 kB
  • sloc: ansic: 81,706; xml: 2,893; sh: 2,501; makefile: 874; python: 589; perl: 384; cpp: 259
file content (202 lines) | stat: -rw-r--r-- 4,772 bytes parent folder | download
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
# Ideally want to use -fsanitize=address and/or -fsanitize=leak too;
#  but either bugs in Viking or GTK libs not auto cleaning up - means can't use
AM_CFLAGS	= -Wall -fsanitize=undefined -fstack-protector-all \
	-I$(top_srcdir)/src \
	$(PACKAGE_CFLAGS) $(GTK_CFLAGS)
LDADD           = $(PACKAGE_LIBS) $(GTK_LIBS) @EXPAT_LIBS@ @LIBCURL@ $(top_builddir)/src/icons/libicons.a
if REALTIME_GPS_TRACKING
LDADD           += -lgps
AM_TESTS_ENVIRONMENT = \
  REALTIME_GPS_TRACKING="YES"; export REALTIME_GPS_TRACKING;
endif

if GEOCLUE
AM_TESTS_ENVIRONMENT = \
  GEOCLUE_ENABLED=="YES"; export GEOCLUE_ENABLED;
endif

TESTS = check_degrees_conversions.sh \
	check_decimal_output.sh \
	check_parse_latlon.sh \
	check_babel.sh \
	check_vikgoto.sh \
	check_geojson_osrm.sh \
	check_help_xml.sh \
	check_metatile.sh
if GEOTAG
TESTS += check_geotag.sh
endif
if MD5_HASH
TESTS += check_md5_hash.sh
endif
# Some tests use the test_file_load or vik2vik - which use VikViewport - which means need to use gtk_init()
#  which essentially means needs a display to work. Thus under some CI circumstances there is no DISPLAY,
#  so ATM simplest to avoid/skip the following tests
if HAVEDISPLAY
TESTS += check_gpx.sh
TESTS += check_fit.sh
TESTS += check_kml.sh
TESTS += check_tcx.sh
TESTS += check_vik2vik.sh
TESTS += check_xz.sh
TESTS += check_zip.sh
TESTS += check_gzip.sh
TESTS += check_remote.sh
endif

check_PROGRAMS = degrees_converter \
	geojson_osrm_to_gpx \
	gpx2gpx \
	vik2vik \
	test_vikgotoxmltool \
	test_time \
	test_decimal_output \
	test_coord_conversion \
	test_parse_latlon \
	test_babel \
	test_file_load \
	test_md5_hash \
	test_metatile

if GEOTAG
check_PROGRAMS += geotag_read geotag_write
endif

check_SCRIPTS = check_degrees_conversions.sh \
	check_decimal_output.sh \
	check_parse_latlon.sh \
	check_vik2vik.sh \
	check_vikgoto.sh \
	check_fit.sh \
	check_gpx.sh \
	check_kml.sh \
	check_tcx.sh \
	check_xz.sh \
	check_zip.sh \
	check_gzip.sh \
	check_geojson_osrm.sh \
	check_help_xml.sh \
	check_metatile.sh \
	check_remote.sh
if GEOTAG
check_SCRIPTS += check_geotag.sh
endif
if MD5_HASH
check_SCRIPTS += check_md5_hash.sh
endif

# Scripts and the test data that they use
EXTRA_DIST = check_degrees_conversions.sh \
	check_decimal_output.sh \
	check_parse_latlon.sh \
	check_babel.sh \
	check_help_xml.sh \
	check_vik2vik.sh \
	Simple.vik \
	Simple_no-geoclue.vik \
	Simple_no-realtime-gps-tracking.vik \
	check_fit.sh \
	check_gpx.sh \
	check_kml.sh \
	check_tcx.sh \
	check_xz.sh \
	check_zip.sh \
	check_gzip.sh \
	SF\#022.gpx \
	GH\#137.gpx \
	GPXv1.1-sample.gpx \
	Stonehenge.fit \
	Stonehenge.tcx \
	Stonehenge.kml \
	check_vikgoto.sh \
	search-result-geonames-viking.xml \
	search-result-geonames-attr-viking.xml \
	search-result-nominatim-viking.xml \
	check_md5_hash.sh \
	check_metatile.sh \
	metatile_example/13/0/0/250/220/0.meta \
	check_geojson_osrm.sh \
	OSRM_sample_response.txt \
	check_remote.sh \
	check_geotag.sh \
	Stonehenge.gpx \
	Stonehenge.jpg \
	ViewFromCribyn-Wales-GPS.jpg \
	WaypointSymbols.gpx

degrees_converter_SOURCES = degrees_converter.c
degrees_converter_LDADD = \
  $(top_builddir)/src/degrees_converters.o \
  $(LDADD)

if GEOTAG
geotag_read_SOURCES = geotag_read.c
geotag_read_LDADD = \
  $(top_builddir)/src/libviking.a \
  $(LDADD)

geotag_write_SOURCES = geotag_write.c
geotag_write_LDADD = \
  $(top_builddir)/src/libviking.a \
  $(LDADD)
endif

gpx2gpx_SOURCES = gpx2gpx.c
gpx2gpx_LDADD = \
  $(top_builddir)/src/libviking.a \
  $(LDADD)

vik2vik_SOURCES = vik2vik.c
vik2vik_LDADD = \
  $(top_builddir)/src/libviking.a \
  $(LDADD)

test_vikgotoxmltool_SOURCES = test_vikgotoxmltool.c
test_vikgotoxmltool_LDADD = \
  $(top_builddir)/src/libviking.a \
  $(LDADD)

test_time_SOURCES = test_time.c
test_time_LDADD = \
  $(top_builddir)/src/libviking.a \
  $(LDADD)

test_decimal_output_SOURCES = test_decimal_output.c
test_decimal_output_LDADD = \
  $(top_builddir)/src/libviking.a \
  $(LDADD)

test_coord_conversion_SOURCES = test_coord_conversion.c
test_coord_conversion_LDADD = \
  $(top_builddir)/src/libviking.a \
  $(LDADD)

geojson_osrm_to_gpx_SOURCES = geojson_osrm_to_gpx.c
geojson_osrm_to_gpx_LDADD = \
  $(top_builddir)/src/libviking.a \
  $(LDADD)

test_parse_latlon_SOURCES = test_parse_latlon.c
test_parse_latlon_LDADD = \
  $(top_builddir)/src/libviking.a \
  $(LDADD)

test_babel_SOURCES = test_babel.c
test_babel_LDADD = \
  $(top_builddir)/src/libviking.a \
  $(LDADD)

test_md5_hash_SOURCES = test_md5_hash.c
test_md5_hash_LDADD = \
  $(top_builddir)/src/libviking.a \
  $(LDADD)

test_metatile_SOURCES = test_metatile.c
test_metatile_LDADD = \
  $(top_builddir)/src/libviking.a \
  $(LDADD)

test_file_load_SOURCES = test_file_load.c
test_file_load_LDADD = \
  $(top_builddir)/src/libviking.a \
  $(LDADD)