48b2e50eb8
Add config options for a few pugixml configurables. - Xpath support is enabled by default but has a size impact. Disabling it reduces the size significantly (it almost halves). Output of 'size' on the library compiled for x86: - Xpath support enabled 160374 1244 28 161646 2776e output/target/usr/lib/libpugixml.so.1.7 - Xpath support disabled 92754 880 8 93642 16dca usr/lib/libpugixml.so.1.7 - 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. Signed-off-by: Wouter Vermeiren <wouter.vermeiren@nokia.com> [ThomasDS: - align with Buildroot coding style - retain only feature options: xpath, compact mode, header-only] Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> Tested-by: Matthew Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
28 lines
791 B
Makefile
28 lines
791 B
Makefile
################################################################################
|
|
#
|
|
# pugixml
|
|
#
|
|
################################################################################
|
|
|
|
PUGIXML_VERSION = 1.9
|
|
PUGIXML_SITE = http://github.com/zeux/pugixml/releases/download/v$(PUGIXML_VERSION)
|
|
PUGIXML_LICENSE = MIT
|
|
PUGIXML_LICENSE_FILES = readme.txt
|
|
PUGIXML_INSTALL_STAGING = YES
|
|
|
|
ifeq ($(BR2_PACKAGE_PUGIXML_XPATH_SUPPORT),)
|
|
PUGIXML_BUILD_DEFINES += PUGIXML_NO_XPATH
|
|
endif
|
|
ifeq ($(BR2_PACKAGE_PUGIXML_COMPACT),y)
|
|
PUGIXML_BUILD_DEFINES += PUGIXML_COMPACT
|
|
endif
|
|
ifeq ($(BR2_PACKAGE_PUGIXML_HEADER_ONLY),y)
|
|
PUGIXML_BUILD_DEFINES += PUGIXML_HEADER_ONLY
|
|
endif
|
|
|
|
ifdef PUGIXML_BUILD_DEFINES
|
|
PUGIXML_CONF_OPTS += -DBUILD_DEFINES="$(subst $(space),;,$(PUGIXML_BUILD_DEFINES))"
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|