diff --git a/cmd/genbindings/config-libraries.go b/cmd/genbindings/config-libraries.go index a7b66d2e..b70a1078 100644 --- a/cmd/genbindings/config-libraries.go +++ b/cmd/genbindings/config-libraries.go @@ -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", diff --git a/docker/genbindings.Dockerfile b/docker/genbindings.Dockerfile index 228f75af..2bcdd632 100644 --- a/docker/genbindings.Dockerfile +++ b/docker/genbindings.Dockerfile @@ -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 \