blob: 09bf12df0683a75bf7a132cfdefb3879af0ee195 (
plain)
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
|
TEMPLATE = subdirs
SUBDIRS = nokia osm mapbox esri
defineTest(supportsMapboxGL) {
!qtHaveModule(opengl) {
return(false)
}
linux|android {
equals(QT_GCC_MAJOR_VERSION, 4): greaterThan(QT_GCC_MINOR_VERSION, 8) {
return(true)
}
greaterThan(QT_GCC_MAJOR_VERSION, 4) {
return(true)
}
}
ios|macos {
return(true)
}
return(false)
}
supportsMapboxGL() {
!exists(../../3rdparty/mapbox-gl-native/CMakeLists.txt) {
warning("Submodule mapbox-gl-native does not exist. Run 'git submodule update --init' on qtlocation.")
} else {
SUBDIRS += mapboxgl ../../3rdparty/mapbox-gl-native
mapboxgl.depends = ../../3rdparty/mapbox-gl-native
}
}
|