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, ClangMatchSameHeaderDefinitionOnly,
) )
generate(
"qt/svg",
[]string{
"/usr/include/x86_64-linux-gnu/qt5/QtSvg",
},
AllowAllHeaders,
clangBin,
pkgConfigCflags("Qt5Svg"),
outDir,
ClangMatchSameHeaderDefinitionOnly,
)
generate( generate(
"qt/network", "qt/network",
[]string{ []string{
@ -173,6 +185,20 @@ func ProcessLibraries(clangBin, outDir, extraLibsDir string) {
ClangMatchSameHeaderDefinitionOnly, 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 // Qt 6 QtNetwork
generate( generate(
"qt6/network", "qt6/network",

View File

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