genbindings/config: block qdtls on Qt 5

This commit is contained in:
mappu 2025-02-01 12:49:02 +13:00
parent cae8967119
commit e72fcf40e9

View File

@ -79,7 +79,15 @@ func ProcessLibraries(clangBin, outDir, extraLibsDir string) {
[]string{ []string{
"/usr/include/x86_64-linux-gnu/qt5/QtNetwork", "/usr/include/x86_64-linux-gnu/qt5/QtNetwork",
}, },
AllowAllHeaders, func(fullpath string) bool {
baseName := filepath.Base(fullpath)
if baseName == "qdtls.h" {
// Qt 5 as distributed by Brew removes all the DTLS functionality.
// @ref
return false
}
return true
},
clangBin, clangBin,
pkgConfigCflags("Qt5Network"), pkgConfigCflags("Qt5Network"),
outDir, outDir,