Qt build improvements and documentation (#277)

* Qt build improvements and documentation

* Update include/mbgl/actor/actor_ref.hpp

Co-authored-by: Oliver Wipfli <oliver.wipfli@leichteralsluft.ch>
This commit is contained in:
Tadej Novak
2022-06-16 20:52:52 +02:00
committed by GitHub
parent 6dbc711e07
commit 9cd70bfe7f
29 changed files with 401 additions and 148 deletions

5
.github/actions/qt5-build/Dockerfile vendored Normal file
View File

@@ -0,0 +1,5 @@
FROM ghcr.io/maplibre/linux-builder:centos7
# Copy and set the entry point
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

6
.github/actions/qt5-build/action.yml vendored Normal file
View File

@@ -0,0 +1,6 @@
# action.yml
name: 'Qt5 Linux Builder'
description: 'Helper action to build in a specific Docker container'
runs:
using: 'docker'
image: 'Dockerfile'

19
.github/actions/qt5-build/entrypoint.sh vendored Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash -l
source scl_source enable devtoolset-8 rh-git218
set -e
set -x
export CCACHE_DIR="$GITHUB_WORKSPACE/.ccache"
export PATH="$Qt5_Dir/bin:$PATH"
mkdir build && cd build
cmake ../source/ \
-G Ninja \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DMBGL_WITH_QT=ON \
-DMBGL_QT_LIBRARY_ONLY=ON \
-DCMAKE_INSTALL_PREFIX="../install/"
ninja
ninja install