kumquat-buildroot/package/pugixml/Config.in
Fabrice Fontaine 6454358fe1 package/pugixml: drop header-only option
Header-only option raises the following build failure with gerbera since
commit cc3a4a7b1d:

/home/thomas/autobuild/instance-2/output-1/host/lib/gcc/nios2-buildroot-linux-gnu/10.4.0/../../../../nios2-buildroot-linux-gnu/bin/ld: CMakeFiles/gerbera.dir/src/main.cc.o: in function `ConfigGenerator::~ConfigGenerator()':
/home/thomas/autobuild/instance-2/output-1/build/gerbera-1.10.0/src/config/config_generator.h:33: undefined reference to `pugi::xml_document::~xml_document()'

This build failure can't be fixed by adding a
!BR2_PACKAGE_PUGIXML_HEADER_ONLY dependency as it will create the
following recursive dependency:

package/gerbera/Config.in:1:error: recursive dependency detected!
package/gerbera/Config.in:1:    symbol BR2_PACKAGE_GERBERA depends on BR2_PACKAGE_PUGIXML_HEADER_ONLY
package/pugixml/Config.in:42:   symbol BR2_PACKAGE_PUGIXML_HEADER_ONLY depends on BR2_PACKAGE_PUGIXML
package/pugixml/Config.in:1:    symbol BR2_PACKAGE_PUGIXML is selected by BR2_PACKAGE_GERBERA

Moreover, commit 48b2e50eb8 stated that
"Compact and header-only modes are not strictly needed for our use case,
but we did the work anyway and may be useful for someone else."

So dropping header-only seems to be the right approach

Fixes:
 - http://autobuild.buildroot.org/results/800537a1ef5f48d24c20aad7a9c96c56dfdc77f5

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2023-03-05 19:54:59 +01:00

46 lines
1.3 KiB
Plaintext

config BR2_PACKAGE_PUGIXML
bool "pugixml"
depends on BR2_INSTALL_LIBSTDCPP
help
Light-weight, simple and fast XML parser for C++ with XPath
support
Features:
* DOM-like interface with rich traversal/modification
capabilities
* Extremely fast non-validating XML parser which constructs
the DOM tree from an XML file/buffer
* XPath 1.0 implementation for complex data-driven tree
queries
* Full Unicode support with Unicode interface variants and
automatic encoding conversions
http://pugixml.org/
https://github.com/zeux/pugixml
if BR2_PACKAGE_PUGIXML
config BR2_PACKAGE_PUGIXML_XPATH_SUPPORT
bool "Enable XPath support"
default y
help
When disabled, both XPath interfaces and XPath implementation
are excluded from compilation. This option is provided in case
you do not need XPath functionality and need to save code
space.
config BR2_PACKAGE_PUGIXML_COMPACT
bool "Enable compact mode"
help
Activates a different internal representation of document
storage that is much more memory efficient for documents with
a lot of markup (i.e. nodes and attributes), but is slightly
slower to parse and access.
http://pugixml.org/docs/manual.html#dom.memory.compact
endif
comment "pugixml needs a toolchain w/ C++"
depends on !BR2_INSTALL_LIBSTDCPP