-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathspatialite-4.4.0.mk
214 lines (210 loc) · 8.98 KB
/
spatialite-4.4.0.mk
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
203
204
205
206
207
208
209
210
211
212
213
214
include $(CLEAR_VARS)
# ./configure --enable-rttopo --enable-gcp --enable-examples=no --build=x86_64-pc-linux-gnu --host=arm-linux-eabi
# 20170118.libspatialite-4.4.0-dev
# -------------------
# As of 2015-10-03 [4.4.0-t20160229]
# -------------------
# changes:
# - geos-3.5.0
# - json-c-0.12
# - json-c-0.12
# -------------------
# Excluded files:
# gaiageo/
# - directories 'flex' and 'lemon'
# - Ewkt.c/.h geoJSON.c/.h
# - Gml.c/.h Kml.c/.h
# - lex.*.c
# - vanuatuWkt.*
# srsinit/
# - directory 'epsg_update'
# -------------------
LOCAL_MODULE := spatialite
# SQLite flags copied from ASOP
common_sqlite_flags := \
-DHAVE_USLEEP=1 \
-DSQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576 \
-DSQLITE_THREADSAFE=1 \
-DNDEBUG=1 \
-DSQLITE_ENABLE_MEMORY_MANAGEMENT=1 \
-DSQLITE_DEFAULT_AUTOVACUUM=1 \
-DSQLITE_TEMP_STORE=3 \
-DSQLITE_ENABLE_FTS3 \
-DSQLITE_ENABLE_FTS3_BACKWARDS \
-DSQLITE_ENABLE_RTREE=1 \
-DSQLITE_DEFAULT_FILE_FORMAT=4
# spatialite flags
# comment out TARGET_CPU in config.h - will be replaced with TARGET_ARCH_ABI
spatialite_flags := \
-DOMIT_FREEXL \
-DTARGET_CPU=\"$(TARGET_ARCH_ABI)\" \
-Dfdatasync=fsync \
-DSQLITE_ENABLE_RTREE=1 \
-DENABLE_GCP=1 \
-DENABLE_GEOPACKAGE=1 \
-DENABLE_LIBXML2=1 \
-DENABLE_RTTOPO=1 \
-DSQLITE_OMIT_BUILTIN_TEST=1
LOCAL_CFLAGS := \
$(common_sqlite_flags) \
$(spatialite_flags)
# LOCAL_LDLIBS is always ignored for static libraries
# LOCAL_LDLIBS := -llog -lz
# LOADABLE_EXTENSION must NOT be defined
LOCAL_C_INCLUDES := \
$(SQLITE_PATH) \
$(SPATIALITE_PATH) \
$(SPATIALITE_PATH)/src/headers \
$(SPATIALITE_PATH)/src/topology \
$(ICONV_PATH)/include \
$(ICONV_PATH)/libcharset/include \
$(GEOS_PATH)/include \
$(GEOS_PATH)/capi \
$(RTTOPO_PATH)/headers \
$(PROJ4_PATH)/src \
$(LZMA_PATH)/src/liblzma/api \
$(XML2_PATH)/include
LOCAL_SRC_FILES := \
$(SPATIALITE_PATH)/src/connection_cache/generator/code_generator.c \
$(SPATIALITE_PATH)/src/connection_cache/alloc_cache.c \
$(SPATIALITE_PATH)/src/connection_cache/gg_sequence.c \
$(SPATIALITE_PATH)/src/control_points/gaia_control_points.c \
$(SPATIALITE_PATH)/src/control_points/grass_crs3d.c \
$(SPATIALITE_PATH)/src/control_points/grass_georef.c \
$(SPATIALITE_PATH)/src/control_points/grass_georef_tps.c \
$(SPATIALITE_PATH)/src/cutter/gaia_cutter.c \
$(SPATIALITE_PATH)/src/dxf/dxf_load_distinct.c \
$(SPATIALITE_PATH)/src/dxf/dxf_loader.c \
$(SPATIALITE_PATH)/src/dxf/dxf_load_mixed.c \
$(SPATIALITE_PATH)/src/dxf/dxf_parser.c \
$(SPATIALITE_PATH)/src/dxf/dxf_writer.c \
$(SPATIALITE_PATH)/src/gaiaaux/gg_sqlaux.c \
$(SPATIALITE_PATH)/src/gaiaaux/gg_utf8.c \
$(SPATIALITE_PATH)/src/gaiaexif/gaia_exif.c \
$(SPATIALITE_PATH)/src/gaiageo/gg_advanced.c \
$(SPATIALITE_PATH)/src/gaiageo/gg_endian.c \
$(SPATIALITE_PATH)/src/gaiageo/gg_ewkt.c \
$(SPATIALITE_PATH)/src/gaiageo/gg_extras.c \
$(SPATIALITE_PATH)/src/gaiageo/gg_geodesic.c \
$(SPATIALITE_PATH)/src/gaiageo/gg_geoJSON.c \
$(SPATIALITE_PATH)/src/gaiageo/gg_geometries.c \
$(SPATIALITE_PATH)/src/gaiageo/gg_geoscvt.c \
$(SPATIALITE_PATH)/src/gaiageo/gg_gml.c \
$(SPATIALITE_PATH)/src/gaiageo/gg_kml.c \
$(SPATIALITE_PATH)/src/gaiageo/gg_matrix.c \
$(SPATIALITE_PATH)/src/gaiageo/gg_relations.c \
$(SPATIALITE_PATH)/src/gaiageo/gg_relations_ext.c \
$(SPATIALITE_PATH)/src/gaiageo/gg_rttopo.c \
$(SPATIALITE_PATH)/src/gaiageo/gg_shape.c \
$(SPATIALITE_PATH)/src/gaiageo/gg_transform.c \
$(SPATIALITE_PATH)/src/gaiageo/gg_vanuatu.c \
$(SPATIALITE_PATH)/src/gaiageo/gg_voronoj.c \
$(SPATIALITE_PATH)/src/gaiageo/gg_wkb.c \
$(SPATIALITE_PATH)/src/gaiageo/gg_wkt.c \
$(SPATIALITE_PATH)/src/gaiageo/gg_xml.c \
$(SPATIALITE_PATH)/src/geopackage/gaia_cvt_gpkg.c \
$(SPATIALITE_PATH)/src/geopackage/gpkgAddGeometryColumn.c \
$(SPATIALITE_PATH)/src/geopackage/gpkg_add_geometry_triggers.c \
$(SPATIALITE_PATH)/src/geopackage/gpkg_add_spatial_index.c \
$(SPATIALITE_PATH)/src/geopackage/gpkg_add_tile_triggers.c \
$(SPATIALITE_PATH)/src/geopackage/gpkgBinary.c \
$(SPATIALITE_PATH)/src/geopackage/gpkgCreateBaseTables.c \
$(SPATIALITE_PATH)/src/geopackage/gpkgCreateTilesTable.c \
$(SPATIALITE_PATH)/src/geopackage/gpkgCreateTilesZoomLevel.c \
$(SPATIALITE_PATH)/src/geopackage/gpkgGetImageType.c \
$(SPATIALITE_PATH)/src/geopackage/gpkg_get_normal_row.c \
$(SPATIALITE_PATH)/src/geopackage/gpkg_get_normal_zoom.c \
$(SPATIALITE_PATH)/src/geopackage/gpkgInsertEpsgSRID.c \
$(SPATIALITE_PATH)/src/geopackage/gpkgMakePoint.c \
$(SPATIALITE_PATH)/src/md5/gaia_md5.c \
$(SPATIALITE_PATH)/src/md5/md5.c \
$(SPATIALITE_PATH)/src/shapefiles/shapefiles.c \
$(SPATIALITE_PATH)/src/shapefiles/validator.c \
$(SPATIALITE_PATH)/src/spatialite/extra_tables.c \
$(SPATIALITE_PATH)/src/spatialite/mbrcache.c \
$(SPATIALITE_PATH)/src/spatialite/metatables.c \
$(SPATIALITE_PATH)/src/spatialite/se_helpers.c \
$(SPATIALITE_PATH)/src/spatialite/spatialite.c \
$(SPATIALITE_PATH)/src/spatialite/spatialite_init.c \
$(SPATIALITE_PATH)/src/spatialite/srid_aux.c \
$(SPATIALITE_PATH)/src/spatialite/statistics.c \
$(SPATIALITE_PATH)/src/spatialite/table_cloner.c \
$(SPATIALITE_PATH)/src/spatialite/virtualbbox.c \
$(SPATIALITE_PATH)/src/spatialite/virtualdbf.c \
$(SPATIALITE_PATH)/src/spatialite/virtualelementary.c \
$(SPATIALITE_PATH)/src/spatialite/virtualfdo.c \
$(SPATIALITE_PATH)/src/spatialite/virtualgpkg.c \
$(SPATIALITE_PATH)/src/spatialite/virtualknn.c \
$(SPATIALITE_PATH)/src/spatialite/virtualnetwork.c \
$(SPATIALITE_PATH)/src/spatialite/virtualrouting.c \
$(SPATIALITE_PATH)/src/spatialite/virtualshape.c \
$(SPATIALITE_PATH)/src/spatialite/virtualspatialindex.c \
$(SPATIALITE_PATH)/src/spatialite/virtualXL.c \
$(SPATIALITE_PATH)/src/spatialite/virtualxpath.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_00.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_01.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_02.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_03.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_04.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_05.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_06.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_07.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_08.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_09.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_10.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_11.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_12.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_13.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_14.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_15.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_16.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_17.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_18.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_19.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_20.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_21.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_22.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_23.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_24.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_25.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_26.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_27.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_28.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_29.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_30.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_31.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_32.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_33.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_34.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_35.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_36.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_37.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_38.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_39.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_40.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_41.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_42.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_43.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_44.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_45.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_46.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_extra.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_prussian.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_wgs84_00.c \
$(SPATIALITE_PATH)/src/srsinit/epsg_inlined_wgs84_01.c \
$(SPATIALITE_PATH)/src/srsinit/srs_init.c \
$(SPATIALITE_PATH)/src/topology/gaia_auxnet.c \
$(SPATIALITE_PATH)/src/topology/gaia_auxtopo.c \
$(SPATIALITE_PATH)/src/topology/gaia_auxtopo_table.c \
$(SPATIALITE_PATH)/src/topology/gaia_netstmts.c \
$(SPATIALITE_PATH)/src/topology/gaia_network.c \
$(SPATIALITE_PATH)/src/topology/gaia_topology.c \
$(SPATIALITE_PATH)/src/topology/gaia_topostmts.c \
$(SPATIALITE_PATH)/src/topology/lwn_network.c \
$(SPATIALITE_PATH)/src/topology/net_callbacks.c \
$(SPATIALITE_PATH)/src/topology/topo_callbacks.c \
$(SPATIALITE_PATH)/src/versioninfo/version.c \
$(SPATIALITE_PATH)/src/virtualtext/virtualtext.c \
$(SPATIALITE_PATH)/src/wfs/wfs_in.c
LOCAL_STATIC_LIBRARIES := iconv proj geos libljson-c librttopo libxml2
include $(BUILD_STATIC_LIBRARY)