initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
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
|
||||
|
||||
config BR2_PACKAGE_PUGIXML_HEADER_ONLY
|
||||
bool "Enable header-only version"
|
||||
help
|
||||
All source code for pugixml will be included in every
|
||||
translation unit that includes pugixml.hpp. This is how most
|
||||
of Boost and STL libraries work.
|
||||
|
||||
http://pugixml.org/docs/manual.html#install.building.header
|
||||
|
||||
endif
|
||||
|
||||
comment "pugixml needs a toolchain w/ C++"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally computed:
|
||||
sha256 8ddf57b65fb860416979a3f0640c2ad45ddddbbafa82508ef0a0af3ce7061716 pugixml-1.11.4.tar.gz
|
||||
sha256 ee495f34aeff0c578a99f3350a2050d4e5860d27b2004c03c384a594fa2b0a7a LICENSE.md
|
||||
@@ -0,0 +1,41 @@
|
||||
################################################################################
|
||||
#
|
||||
# pugixml
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PUGIXML_VERSION = 1.11.4
|
||||
PUGIXML_SITE = http://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))
|
||||
Reference in New Issue
Block a user