forked from opengisch/QField
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqgis.pri
43 lines (38 loc) · 1.69 KB
/
qgis.pri
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
################################################
# DON'T EDIT THIS FILE, USE config.pri instead #
################################################
include( paths.pri )
!android {
macx {
LIBS += -F$${QGIS_INSTALL_PATH}/QGIS.app/Contents/Frameworks/
LIBS += -framework qgis_core
LIBS += -framework qgis_analysis
INCLUDEPATH += $${QGIS_INSTALL_PATH}/QGIS.app/Contents/Frameworks/qgis_core.framework/Versions/Current/Headers
INCLUDEPATH += $${QGIS_INSTALL_PATH}/QGIS.app/Contents/Frameworks/qgis_analysis.framework/Versions/Current/Headers
INCLUDEPATH += $${GEOS_INCLUDE_PATH}
}
!macx {
INCLUDEPATH += $${QGIS_INSTALL_PATH}/include/qgis
LIBS += $${QGIS_INSTALL_PATH}/lib/libqgis_core.so
LIBS += $${QGIS_INSTALL_PATH}/lib/libqgis_analysis.so
}
}
android {
QGIS_INSTALL_PATH = $${OSGEO4A_STAGE_DIR}/$$ANDROID_TARGET_ARCH$$/files
INCLUDEPATH += $${OSGEO4A_STAGE_DIR}/$$ANDROID_TARGET_ARCH$$/include/qgis
LIBS += $${OSGEO4A_STAGE_DIR}/$$ANDROID_TARGET_ARCH$$/lib/libqgis_core.so
LIBS += $${OSGEO4A_STAGE_DIR}/$$ANDROID_TARGET_ARCH$$/lib/libqgis_analysis.so
}
macx {
DEFINES += "QGIS_PLUGIN_DIR=\\\"$$QGIS_INSTALL_PATH$$/QGIS.app/Contents/PlugIns/qgis\\\"" \
"QGIS_INSTALL_DIR=\\\"$$QGIS_INSTALL_PATH$$\\\""
QMAKE_RPATHDIR += $${QGIS_INSTALL_PATH}/Contents/MacOS/lib/
} else {
DEFINES += "QGIS_PLUGIN_DIR=\\\"$$QGIS_INSTALL_PATH$$/lib/qgis/plugins/\\\"" \
"QGIS_INSTALL_DIR=\\\"$$QGIS_INSTALL_PATH$$\\\""
QMAKE_RPATHDIR += $${QGIS_INSTALL_PATH}/lib/
}
# Add QWT and QScintilla custom build paths if your distro only ships Qt4 versions
# and you had to build them manually for Qt5
QMAKE_RPATHDIR += $${QWT_DIR}
QMAKE_RPATHDIR += $${QSCINTILLA_DIR}