This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
gdalconnector.pro
117 lines (99 loc) · 4.46 KB
/
gdalconnector.pro
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
#-------------------------------------------------
#
# Project created by QtCreator 2012-09-19T13:18:13
#
#-------------------------------------------------
CONFIG += plugin
TARGET = gdalconnector
include(global.pri)
TEMPLATE = lib
DEFINES += GDALCONNECTOR_LIBRARY
SOURCES += \
gdalconnector/gdalconnector.cpp \
gdalconnector/gdalmodule.cpp \
gdalconnector/gdalproxy.cpp \
gdalconnector/gdalitem.cpp \
gdalconnector/coverageconnector.cpp \
gdalconnector/coordinatesystemconnector.cpp \
gdalconnector/domainconnector.cpp \
gdalconnector/gridcoverageconnector.cpp \
gdalconnector/gdalobjectfactory.cpp \
gdalconnector/georefconnector.cpp \
gdalconnector/gdalfeatureconnector.cpp \
gdalconnector/gdalfeaturetableconnector.cpp \
gdalconnector/gdaltableloader.cpp \
gdalconnector/gdalcatalogexplorer.cpp \
gdalconnector/gdalcatalogfileexplorer.cpp
HEADERS += \
gdalconnector/gdalconnector.h\
gdalconnector/gdalconnector_global.h \
gdalconnector/gdalmodule.h \
gdalconnector/gdalproxy.h \
gdalconnector/gdalitem.h \
gdalconnector/coverageconnector.h \
gdalconnector/coordinatesystemconnector.h \
gdalconnector/domainconnector.h \
gdalconnector/gridcoverageconnector.h \
gdalconnector/gdalobjectfactory.h \
gdalconnector/georefconnector.h \
gdalconnector/gdalfeatureconnector.h \
gdalconnector/gdalfeaturetableconnector.h \
gdalconnector/gdaltableloader.h \
gdalconnector/gdalcatalogexplorer.h \
gdalconnector/gdalcatalogfileexplorer.h
OTHER_FILES += \
gdalconnector/gdalconnector.json \
gdalconnector/resources/ogr_formats.config \
gdalconnector/resources/libraries.config
INCLUDEPATH += $$PWD/../external/gdal
SOURCE_RESOURCE = $$clean_path($$PWD/$$TARGET/resources/libraries.config)
SOURCE_RESOURCE_2 = $$clean_path($$PWD/$$TARGET/resources/ogr_formats.config)
TARGET_RESOURCE_DIR = $$clean_path($$PWD/../output/$$PLATFORM$$CONF/bin/extensions/$$TARGET/resources/)
TARGET_RESOURCE = $$TARGET_RESOURCE_DIR/libraries.config
TARGET_RESOURCE_2 = $$TARGET_RESOURCE_DIR/ogr_formats.config
resources.target = $$TARGET_RESOURCE
resources_2.target = $$TARGET_RESOURCE_2
linux {
resources.commands = $$quote(test -d $$TARGET_RESOURCE_DIR || mkdir -p $$TARGET_RESOURCE_DIR$$escape_expand(\n\t))
resources_2.commands = $$quote(test -d $$TARGET_RESOURCE_DIR || mkdir -p $$TARGET_RESOURCE_DIR$$escape_expand(\n\t))
}
win32 {
SOURCE_RESOURCE = $$replace(SOURCE_RESOURCE,/,\\)
TARGET_RESOURCE = $$replace(TARGET_RESOURCE,/,\\)
SOURCE_RESOURCE_2 = $$replace(SOURCE_RESOURCE_2,/,\\)
TARGET_RESOURCE_2 = $$replace(TARGET_RESOURCE_2,/,\\)
TARGET_RESOURCE_DIR = $$replace(TARGET_RESOURCE_DIR,/,\\)
resources.commands = $$quote(if not exist $$TARGET_RESOURCE_DIR mkdir $$TARGET_RESOURCE_DIR$$escape_expand(\n\t))
resources_2.commands = $$quote(if not exist $$TARGET_RESOURCE_DIR mkdir $$TARGET_RESOURCE_DIR$$escape_expand(\n\t))
}
resources.commands += $$quote($(COPY) $$SOURCE_RESOURCE $$TARGET_RESOURCE_DIR$$escape_expand(\n\t))
resources_2.commands += $$quote($(COPY) $$SOURCE_RESOURCE_2 $$TARGET_RESOURCE_DIR$$escape_expand(\n\t))
resources.depends = $$SOURCE_RESOURCE
resources_2.depends = $$SOURCE_RESOURCE_2
PRE_TARGETDEPS += $$TARGET_RESOURCE $$TARGET_RESOURCE_2
QMAKE_EXTRA_TARGETS += resources resources_2
LIBS += -L$$PWD/../libraries/$$PLATFORM$$CONF/ -lilwiscore
win32{
DLLDESTDIR = $$PWD/../output/$$PLATFORM$$CONF/bin/extensions/$$TARGET
}
DESTDIR = $$PWD/../libraries/$$PLATFORM$$CONF/extensions/$$TARGET
linux{
dependencies.files = $$LINUXSYSTEMLIB/libz.so.1 \
$$LINUXLIB/libsqlite3.so \
$$LINUXLIB/libfreexl.so.1 \
/usr/lib/libgdal.so.1 \
/usr/lib/libpq.so \
$$LINUXLIB/libcurl.so.4 \
$$LINUXSYSTEMLIB/libexpat.so.1 \
/usr/lib/libproj.so.0 \
/usr/lib/libnetcdf.so.7 \
$$LINUXLIB/libhdf5.so \
$$LINUXLIB/libhdf5_hl.so \
/usr/local/libiconv/lib/libcharset.so.1 \
/usr/local/libiconv/lib/libiconv.so.2 \
$$LINUXLIB/libcrypto.so \
$$LINUXLIB/libssl.so
dependencies.path = $$PWD/../output/$$PLATFORM$$CONF/bin/extensions/$$TARGET
target.path = $$PWD/../output/$$PLATFORM$$CONF/bin/extensions/$$TARGET
INSTALLS += target dependencies
}