qt6/qprintsupport: add binding rules

This commit is contained in:
mappu 2024-10-20 18:59:59 +13:00
parent 4d29341c71
commit 92b80a4f5b
2 changed files with 21 additions and 0 deletions

View File

@ -168,6 +168,18 @@ func main() {
*outDir, *outDir,
ClangMatchSameHeaderDefinitionOnly, 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) { func generate(packageName string, srcDirs []string, clangBin string, cflags []string, outDir string, matcher ClangMatcher) {

View File

@ -0,0 +1,9 @@
// +build linux,!android
package qprintsupport
/*
#cgo CFLAGS: -fPIC
#cgo pkg-config: Qt6PrintSupport
*/
import "C"