Skip to contentSkip to conversation

package/poco: convert to CMake package

PATCH New Yegor Yefremov via buildroot 1 participant 1 message Sep 11

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/poco: convert to CMake package

From: Yegor Yefremov <[email protected]>

Currently when building with make, the cmake config files are not generated. This leads to problems when integrating the package in an application built with cmake.

The CMake build system links the PDF component against the system libpng when POCO_UNBUNDLED is enabled, while the legacy make build system always used the bundled copy, so select libpng for the PDF component.

POCO_NO_FPENVIRONMENT and POCO_NO_WSTRING are plain preprocessor defines rather than CMake options, so pass them through CMAKE_CXX_FLAGS.

Poco is built as a set of shared libraries, so -latomic has to be passed via CMAKE_SHARED_LINKER_FLAGS as well.

Disable File2Page along with PageCompiler, and tie the ActiveRecord compiler to the ActiveRecord component, to match what the legacy make build system omitted.

This patch is based on this one:
https://lists.buildroot.org/pipermail/buildroot/2026-April/801019.html

Assisted-by Claude:claude-opus-5

---
Changes v1 -> v2:
- fix POCO_PDF dependency (Thomas Petazzoni)
- cleanup unrelated target options, flags, etc. (Claude Code)

 package/poco/Config.in |  1 +
 package/poco/poco.mk   | 98 +++++++++++++++++-------------------------
 2 files changed, 40 insertions(+), 59 deletions(-)
package/poco/Config.in +1 -0
index 4801b36a24..b0eeaa1dd8 100644
@@ -94,6 +94,7 @@ config BR2_PACKAGE_POCO_NETSSL_OPENSSL
 
 config BR2_PACKAGE_POCO_PDF
 	bool "PDF"
+	select BR2_PACKAGE_LIBPNG
 	select BR2_PACKAGE_POCO_JSON
 	select BR2_PACKAGE_POCO_UTIL
 	select BR2_PACKAGE_POCO_XML
package/poco/poco.mk +39 -59

119 lines not on this page · raw message

Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot