[qt] Build improvements and better handling of map settings (#197)

* QMapboxGLSettings functions for changing default options and getting default styles

* [qt] allow to build without widgets and other cmake improvements

* [qt] Install include/mbgl for development

* [qt] library static/shared install+export

* [qt] Add missing mbgl-compiler-options dependency for 'qmapboxgl'

* [qt] Raise CMAKE_OSX_DEPLOYMENT_TARGET from 10.13 to 13.0

* [qt] Add Qt::Sql dependency also to the final library. Build qmapboxgl as OBJECT lib inside QtLocation plugin.

* Remove Qt::Sql dependency from 'qmapboxgl'. Not really needed.

* Set CMake config files path back to ${CMAKE_INSTALL_LIBDIR}/cmake/QMapboxGL/

* [qt] Set CMAKE_OSX_DEPLOYMENT_TARGET only if it is not yet set

* [qt] Support CMake v3.11 and earlier versions

* [qt] Comment out 'iOS_static' from CI until it is fixed.

Co-authored-by: Rinigus <rinigus.git@gmail.com>
This commit is contained in:
kiibimees
2022-02-14 18:18:29 +02:00
committed by GitHub
parent 13983337f6
commit 747eb3a440
10 changed files with 192 additions and 82 deletions

View File

@@ -38,11 +38,11 @@ jobs:
static: ON
qt: 5.15.2
qt_target: desktop
- name: iOS_static
os: macos-latest
static: ON
qt: 5.15.2
qt_target: ios
# - name: iOS_static
# os: macos-latest
# static: ON
# qt: 5.15.2
# qt_target: ios
- name: macOS
os: macos-latest
static: ON
@@ -133,7 +133,7 @@ jobs:
mkdir build && cd build
cmake ../source/ \
-DCMAKE_TOOLCHAIN_FILE=../source/platform/ios/platform/ios/toolchain.cmake \
-G Xcode \
-G XCode \
-DPLATFORM=OS64COMBINED \
-DDEPLOYMENT_TARGET=12.0 \
-DENABLE_BITCODE=ON \