svg: add genbindings configuration

This commit is contained in:
mappu 2024-11-26 19:52:58 +13:00
parent 25e10f2824
commit fc47abea0e
2 changed files with 28 additions and 0 deletions

View File

@ -62,6 +62,18 @@ func ProcessLibraries(clangBin, outDir, extraLibsDir string) {
ClangMatchSameHeaderDefinitionOnly,
)
generate(
"qt/svg",
[]string{
"/usr/include/x86_64-linux-gnu/qt5/QtSvg",
},
AllowAllHeaders,
clangBin,
pkgConfigCflags("Qt5Svg"),
outDir,
ClangMatchSameHeaderDefinitionOnly,
)
generate(
"qt/network",
[]string{
@ -173,6 +185,20 @@ func ProcessLibraries(clangBin, outDir, extraLibsDir string) {
ClangMatchSameHeaderDefinitionOnly,
)
// Qt 6 SVG
generate(
"qt6/svg",
[]string{
"/usr/include/x86_64-linux-gnu/qt6/QtSvg",
"/usr/include/x86_64-linux-gnu/qt6/QtSvgWidgets",
},
AllowAllHeaders,
clangBin,
"--std=c++17 "+pkgConfigCflags("Qt6SvgWidgets"),
outDir,
ClangMatchSameHeaderDefinitionOnly,
)
// Qt 6 QtNetwork
generate(
"qt6/network",

View File

@ -5,8 +5,10 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
golang-go \
qtbase5-dev \
qtmultimedia5-dev \
libqt5svg5-dev \
qt6-base-dev \
qt6-multimedia-dev \
qt6-svg-dev \
libqscintilla2-qt5-dev \
libqscintilla2-qt6-dev \
clang \