forked from Framstag/libosmscout
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Framstag#1300 from Framstag/minimal_qt6_build
Qt6 support: Add a minimal Qt6 based build
- Loading branch information
Showing
8 changed files
with
93 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM ubuntu:jammy | ||
|
||
# disable interactive functions | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
git make libtool pkg-config \ | ||
qmake6 libqt6svg6-dev libqt6core5compat6-dev qt6-declarative-dev qt6-positioning-dev qt6-tools-dev-tools \ | ||
qt6-l10n-tools qt6-tools-dev qt6-multimedia-dev \ | ||
libgl-dev \ | ||
locales \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN locale-gen en_US.UTF-8 | ||
ENV LANG en_US.utf8 | ||
ENV QT_QPA_PLATFORM offscreen | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
meson \ | ||
g++ \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir /work | ||
|
||
COPY data/build.sh /work | ||
RUN chmod +x /work/build.sh | ||
|
||
WORKDIR /work | ||
CMD ./build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
cd `dirname $0` | ||
docker build -t libosmscout/ubuntu_22.04_gcc_meson_qt6 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
if [ $# -ge 1 ] ; then | ||
REPO="$1" | ||
else | ||
REPO="https://github.com/Framstag/libosmscout.git" | ||
fi | ||
|
||
if [ $# -ge 2 ] ; then | ||
BRANCH="$2" | ||
else | ||
BRANCH="master" | ||
fi | ||
|
||
git clone -b "$BRANCH" "$REPO" libosmscout | ||
|
||
export LANG=en_US.utf8 | ||
cd libosmscout | ||
mkdir debug | ||
PATH=/usr/lib/qt6/bin:/usr/lib/qt6/libexec:$PATH meson setup --buildtype debugoptimized --unity on --wrap-mode=nofallback -D qtVersion=6 debug | ||
ninja -C debug | ||
meson test -C debug --print-errorlogs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
docker run --rm=true -it libosmscout/ubuntu_22.04_gcc_meson_qt6 ./build.sh "$@" |