diff --git a/cmd/genbindings/main.go b/cmd/genbindings/main.go index 87788a9f..143db35f 100644 --- a/cmd/genbindings/main.go +++ b/cmd/genbindings/main.go @@ -168,6 +168,18 @@ func main() { *outDir, ClangMatchSameHeaderDefinitionOnly, ) + + // Qt 6 QtPrintSupport + generate( + "qt6/qprintsupport", + []string{ + "/usr/include/x86_64-linux-gnu/qt6/QtPrintSupport", + }, + *clang, + strings.Fields("--std=c++17 "+pkgConfigCflags("Qt6PrintSupport")), + *outDir, + ClangMatchSameHeaderDefinitionOnly, + ) } func generate(packageName string, srcDirs []string, clangBin string, cflags []string, outDir string, matcher ClangMatcher) { diff --git a/qt6/qprintsupport/cflags_linux.go b/qt6/qprintsupport/cflags_linux.go new file mode 100644 index 00000000..970e6d4e --- /dev/null +++ b/qt6/qprintsupport/cflags_linux.go @@ -0,0 +1,9 @@ +// +build linux,!android + +package qprintsupport + +/* +#cgo CFLAGS: -fPIC +#cgo pkg-config: Qt6PrintSupport +*/ +import "C"