From 9dc9718f9891193857b80c71e04b10784adca0bb Mon Sep 17 00:00:00 2001 From: Rick Calixte <10281587+rcalixte@users.noreply.github.com> Date: Sat, 29 Mar 2025 14:43:18 -0400 Subject: [PATCH] config-libraries.go: Add Qt 6 Charts --- cmd/genbindings/config-libraries.go | 14 ++++++++++++++ qt-restricted-extras/README.md | 7 ++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/cmd/genbindings/config-libraries.go b/cmd/genbindings/config-libraries.go index 944c98c7..d531156a 100644 --- a/cmd/genbindings/config-libraries.go +++ b/cmd/genbindings/config-libraries.go @@ -337,6 +337,20 @@ func ProcessLibraries(clangBin, outDir, extraLibsDir string) { ClangMatchSameHeaderDefinitionOnly, ) + // Qt 6 Charts + // Depends on QtCore/Gui/Widgets + generate( + "qt-restricted-extras/charts6", + []string{ + "/usr/include/x86_64-linux-gnu/qt6/QtCharts", + }, + AllowAllHeaders, + clangBin, + "--std=c++17 "+pkgConfigCflags("Qt6Charts"), + outDir, + ClangMatchSameHeaderDefinitionOnly, + ) + // Qt 6 QScintilla // Depends on QtCore/Gui/Widgets, QPrintSupport generate( diff --git a/qt-restricted-extras/README.md b/qt-restricted-extras/README.md index 507cd104..53e99e92 100644 --- a/qt-restricted-extras/README.md +++ b/qt-restricted-extras/README.md @@ -2,6 +2,7 @@ This directory contains bindings to Qt libraries that use more restrictive licenses than permissive or LGPL. Care should be taken when evaluating these libraries. -|Library|License -|---|--- -|[QScintilla](https://riverbankcomputing.com/software/qscintilla)|GPL/Commercial +|Library|License| +|---|---| +|[QScintilla](https://riverbankcomputing.com/software/qscintilla)|GPL/Commercial| +|[Qt Charts](https://doc.qt.io/qt-6/qtcharts-index.html#licenses)|GPLv3|