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:
5
.github/actions/qt5-build/Dockerfile
vendored
Normal file
5
.github/actions/qt5-build/Dockerfile
vendored
Normal 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
6
.github/actions/qt5-build/action.yml
vendored
Normal 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
19
.github/actions/qt5-build/entrypoint.sh
vendored
Executable 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
|
||||
Reference in New Issue
Block a user