2016-09-07 17:37:07 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# pugixml
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-06-09 12:13:17 +02:00
|
|
|
PUGIXML_VERSION = 1.9
|
2016-09-07 17:37:07 +02:00
|
|
|
PUGIXML_SITE = http://github.com/zeux/pugixml/releases/download/v$(PUGIXML_VERSION)
|
|
|
|
PUGIXML_LICENSE = MIT
|
|
|
|
PUGIXML_LICENSE_FILES = readme.txt
|
|
|
|
PUGIXML_INSTALL_STAGING = YES
|
|
|
|
|
2019-02-05 15:28:26 +01:00
|
|
|
# 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
|
2019-06-16 22:16:19 +02:00
|
|
|
HOST_PUGIXML_BUILD_DEFINES += PUGIXML_HAS_LONG_LONG
|
2019-02-05 15:28:26 +01:00
|
|
|
|
2019-02-04 11:06:13 +01:00
|
|
|
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
|
|
|
|
|
2019-06-16 22:16:19 +02:00
|
|
|
HOST_PUGIXML_CONF_OPTS += \
|
|
|
|
-DBUILD_PKGCONFIG=ON \
|
|
|
|
-DBUILD_DEFINES="$(subst $(space),;,$(HOST_PUGIXML_BUILD_DEFINES))"
|
|
|
|
|
2016-09-07 17:37:07 +02:00
|
|
|
$(eval $(cmake-package))
|
2019-06-16 22:16:19 +02:00
|
|
|
$(eval $(host-cmake-package))
|