This repository has been archived by the owner on Aug 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
qgis-quick-demo-app.pro
137 lines (111 loc) · 4.09 KB
/
qgis-quick-demo-app.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
TEMPLATE = app
include(config.pri)
# Mac specific includes/libraries paths
mac {
QGIS_QML_DIR = $${QGIS_INSTALL_PATH}/QGIS.app/Contents/MacOS/qml
QGIS_PREFIX_PATH = $${QGIS_INSTALL_PATH}/QGIS.app/Contents/MacOS
QGIS_QUICK_FRAMEWORK = $${QGIS_INSTALL_PATH}/QGIS.app/Contents/MacOS/lib/qgis_quick.framework
QGIS_NATIVE_FRAMEWORK = $${QGIS_INSTALL_PATH}/QGIS.app/Contents/Frameworks/qgis_native.framework
QGIS_CORE_FRAMEWORK = $${QGIS_INSTALL_PATH}/QGIS.app/Contents/Frameworks/qgis_core.framework
exists($${QGIS_CORE_FRAMEWORK}/qgis_core) {
message("Building from QGIS: $${QGIS_INSTALL_PATH}")
} else {
error("Missing qgis_core Framework in $${QGIS_CORE_FRAMEWORK}/qgis_core")
}
INCLUDEPATH += \
$${QGIS_QUICK_FRAMEWORK}/Headers \
$${QGIS_NATIVE_FRAMEWORK}/Headers \
$${QGIS_CORE_FRAMEWORK}/Headers
LIBS += -F$${QGIS_INSTALL_PATH}/QGIS.app/Contents/MacOS/lib \
-F$${QGIS_INSTALL_PATH}/QGIS.app/Contents/Frameworks
LIBS += -framework qgis_quick \
-framework qgis_native \
-framework qgis_core
}
# Linux+Android specific includes/libraries paths
!mac {
QGIS_PREFIX_PATH = $${QGIS_INSTALL_PATH}
QGIS_LIB_DIR = $${QGIS_INSTALL_PATH}/lib
QGIS_INCLUDE_DIR = $${QGIS_INSTALL_PATH}/include
QGIS_QML_DIR = $${QGIS_INSTALL_PATH}/qml
QT_LIBS_DIR = $$dirname(QMAKE_QMAKE)/../lib
exists($${QGIS_LIB_DIR}/libqgis_core.so) {
message("Building from QGIS: $${QGIS_INSTALL_PATH}")
} else {
error("Missing QGIS Core library in $${QGIS_LIB_DIR}/libqgis_core.so")
}
INCLUDEPATH += \
$${QGIS_INCLUDE_DIR}/qgis \
$${QGIS_INCLUDE_DIR}
LIBS += -L$${QGIS_LIB_DIR}
LIBS += -lqgis_core -lqgis_quick
}
################
DEFINES += "CORE_EXPORT="
DEFINES += "QUICK_EXPORT="
DEFINES += "QGIS_QUICK_DATA_PATH=$${QGIS_QUICK_DATA_PATH}"
CONFIG(debug, debug|release) {
DEFINES += "QGIS_PREFIX_PATH=$${QGIS_PREFIX_PATH}"
DEFINES += "QGIS_QUICK_EXPAND_TEST_DATA"
}
QT += qml quick xml concurrent positioning quickcontrols2
QT += network svg printsupport sql
QT += opengl
SOURCES += \
main.cpp \
RESOURCES += \
qml.qrc
TRANSLATIONS +=
lupdate_only {
SOURCES += *.qml
}
# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH = $${QGIS_QML_DIR}
QMAKE_CXXFLAGS += -std=c++11
# files from this folder will be added to the package
# (and will override any default files from Qt - template is in $QTDIR/src/android)
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
# this makes the manifest visible from Qt Creator
DISTFILES += android/AndroidManifest.xml
# packaging
ANDROID_EXTRA_LIBS += \
$${QGIS_LIB_DIR}/libcrystax.so \
$${QGIS_LIB_DIR}/libexpat.so \
$${QGIS_LIB_DIR}/libgeos.so \
$${QGIS_LIB_DIR}/libgeos_c.so \
$${QGIS_LIB_DIR}/libgslcblas.so \
$${QGIS_LIB_DIR}/libsqlite3.so \
$${QGIS_LIB_DIR}/libcharset.so \
$${QGIS_LIB_DIR}/libiconv.so \
$${QGIS_LIB_DIR}/libfreexl.so \
$${QGIS_LIB_DIR}/libtiff.so \
$${QGIS_LIB_DIR}/libgdal.so \
$${QGIS_LIB_DIR}/libproj.so \
$${QGIS_LIB_DIR}/libspatialindex.so \
$${QGIS_LIB_DIR}/libpq.so \
$${QGIS_LIB_DIR}/libspatialite.so \
$${QGIS_LIB_DIR}/libqca-qt5.so \
$${QGIS_LIB_DIR}/libqgis_core.so \
$${QGIS_LIB_DIR}/libqgis_quick.so \
$${QGIS_LIB_DIR}/libqgis_native.so \
$${QGIS_LIB_DIR}/libqt5keychain.so \
$${QGIS_LIB_DIR}/libzip.so \
$${QGIS_LIB_DIR}/libspatialiteprovider.so \
$${QGIS_LIB_DIR}/libdelimitedtextprovider.so \
$${QGIS_LIB_DIR}/libgdalprovider.so \
$${QGIS_LIB_DIR}/libgpxprovider.so \
$${QGIS_LIB_DIR}/libmssqlprovider.so \
$${QGIS_LIB_DIR}/libogrprovider.so \
$${QGIS_LIB_DIR}/libowsprovider.so \
$${QGIS_LIB_DIR}/libpostgresprovider.so \
$${QGIS_LIB_DIR}/libspatialiteprovider.so \
$${QGIS_LIB_DIR}/libwcsprovider.so \
$${QGIS_LIB_DIR}/libwfsprovider.so \
$${QGIS_LIB_DIR}/libwmsprovider.so \
$$QT_LIBS_DIR/libQt5OpenGL.so \
$$QT_LIBS_DIR/libQt5PrintSupport.so \
$$QT_LIBS_DIR/libQt5Sensors.so \
$$QT_LIBS_DIR/libQt5Sql.so \
$$QT_LIBS_DIR/libQt5Svg.so \
$$QT_LIBS_DIR/libQt5AndroidExtras.so
ANDROID_EXTRA_PLUGINS += $${QGIS_QML_DIR}