fc47afdc57
https://pugixml.org/docs/manual.html#v1.13 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
42 lines
1.3 KiB
Makefile
42 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# pugixml
|
|
#
|
|
################################################################################
|
|
|
|
PUGIXML_VERSION = 1.13
|
|
PUGIXML_SITE = https://github.com/zeux/pugixml/releases/download/v$(PUGIXML_VERSION)
|
|
PUGIXML_LICENSE = MIT
|
|
PUGIXML_LICENSE_FILES = LICENSE.md
|
|
PUGIXML_CPE_ID_VENDOR = pugixml_project
|
|
|
|
PUGIXML_INSTALL_STAGING = YES
|
|
|
|
# Pugixml will automatically enable 'long long' support on C++11 compilers,
|
|
# which means gcc 4.8+. As gcc always supports the 'long long' type,
|
|
# force-enable this option to support older gcc versions. See also:
|
|
# https://gcc.gnu.org/onlinedocs/gcc/Long-Long.html
|
|
PUGIXML_BUILD_DEFINES += PUGIXML_HAS_LONG_LONG
|
|
HOST_PUGIXML_BUILD_DEFINES += PUGIXML_HAS_LONG_LONG
|
|
|
|
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
|
|
|
|
HOST_PUGIXML_CONF_OPTS += \
|
|
-DBUILD_PKGCONFIG=ON \
|
|
-DBUILD_DEFINES="$(subst $(space),;,$(HOST_PUGIXML_BUILD_DEFINES))"
|
|
|
|
$(eval $(cmake-package))
|
|
$(eval $(host-cmake-package))
|