Skip to content

Commit

Permalink
docker/genbindings: set up pkg-config definitions for qscintilla/scin…
Browse files Browse the repository at this point in the history
…tillaedit
  • Loading branch information
mappu committed Oct 18, 2024
1 parent a9dca1b commit b6302d3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/miqt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: actions/checkout@v4

- name: Linux64 docker build
run: cd docker && docker build -t miqt/genbindings:latest -f genbindings.Dockerfile .
run: docker build -t miqt/genbindings:latest -f docker/genbindings.Dockerfile .

- name: Cache clang ASTs
uses: actions/cache@v4
Expand All @@ -37,7 +37,7 @@ jobs:
uses: actions/checkout@v4

- name: Linux64 docker build
run: cd docker && docker build -t miqt/linux64:latest -f linux64-go1.19-qt5.15-dynamic.Dockerfile .
run: docker build -t miqt/linux64:latest -f docker/linux64-go1.19-qt5.15-dynamic.Dockerfile .

- name: Cache GOCACHE
uses: actions/cache@v4
Expand All @@ -62,7 +62,7 @@ jobs:
key: win64-gocache

- name: Win64 docker build
run: cd docker && docker build -t miqt/win64:latest -f win64-cross-go1.23-qt5.15-static.Dockerfile .
run: docker build -t miqt/win64:latest -f docker/win64-cross-go1.23-qt5.15-static.Dockerfile .

- name: Win64 bindings compile
run: docker run -v ~/.cache/go-build:/root/.cache/go-build -v $PWD:/src -w /src miqt/win64:latest /bin/bash -c 'cd qt && go build'
15 changes: 14 additions & 1 deletion docker/genbindings.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
FROM debian:bookworm

RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
apt-get install -qyy golang-go qtbase5-dev libqscintilla2-qt5-dev clang git
apt-get install --no-install-recommends -qyy \
golang-go \
qtbase5-dev \
libqscintilla2-qt5-dev \
clang \
git \
ca-certificates \
build-essential && \
apt-get clean

RUN mkdir -p /usr/local/src/scintilla && \
git clone 'https://github.com/mirror/scintilla.git' /usr/local/src/scintilla && \
Expand All @@ -15,3 +23,8 @@ RUN \
python3 WidgetGen.py && \
qmake && \
make

RUN mkdir -p /usr/local/lib/pkgconfig

COPY pkg-config/QScintilla.pc.example /usr/local/lib/pkgconfig/QScintilla.pc
COPY pkg-config/ScintillaEdit.pc.example /usr/local/lib/pkgconfig/ScintillaEdit.pc

0 comments on commit b6302d3

Please sign in to comment.