Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
From 6883e346fa88f48022edf84328a09a4653b8c2fe Mon Sep 17 00:00:00 2001
|
||||
From: Roger Leigh <rleigh@codelibre.net>
|
||||
Date: Sat, 10 Mar 2018 21:27:27 +0000
|
||||
Subject: [PATCH] XERCESC-2141: Enable C++17, C++14 or C++11 when available
|
||||
|
||||
Upstream: https://github.com/apache/xerces-c/commit/6883e346fa88f48022edf84328a09a4653b8c2fe
|
||||
|
||||
[Bernd: rebased for version 3.3.0, limited to CMakeLists.txt]
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
CMakeLists.txt | 4 +-
|
||||
configure.ac | 9 +
|
||||
m4/ax_cxx_compile_stdcxx.m4 | 982 ++++++++++++++++++++++++++++++++++++
|
||||
3 files changed, 993 insertions(+), 2 deletions(-)
|
||||
create mode 100644 m4/ax_cxx_compile_stdcxx.m4
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 4254f89bb..f5cdb55cc 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -32,9 +32,9 @@ if (POLICY CMP0067)
|
||||
|
||||
cmake_minimum_required(VERSION 3.12.0)
|
||||
|
||||
-# Try C++14, then fall back to C++11 and C++98. Used for feature tests
|
||||
+# Try C++17, then fall back to C++14, C++11 then C++98. Used for feature tests
|
||||
# for optional features.
|
||||
-set(CMAKE_CXX_STANDARD 14)
|
||||
+set(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
# Use folders (for IDE project grouping)
|
||||
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
||||
23
package/xerces/Config.in
Normal file
23
package/xerces/Config.in
Normal file
@@ -0,0 +1,23 @@
|
||||
config BR2_PACKAGE_XERCES
|
||||
bool "xerces-c++"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_USE_WCHAR
|
||||
help
|
||||
Xerces-C++ is a validating XML parser written in portable C++.
|
||||
|
||||
http://xerces.apache.org/xerces-c/
|
||||
|
||||
if BR2_PACKAGE_XERCES
|
||||
|
||||
config BR2_PACKAGE_XERCES_ENABLE_NETWORK
|
||||
bool "Enable network support"
|
||||
default y
|
||||
help
|
||||
Enable network support in xerces
|
||||
|
||||
endif
|
||||
|
||||
comment "xerces-c++ needs a toolchain w/ C++, dynamic library, wchar"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || \
|
||||
!BR2_USE_WCHAR
|
||||
5
package/xerces/xerces.hash
Normal file
5
package/xerces/xerces.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# From https://archive.apache.org/dist/xerces/c/3/sources/xerces-c-3.3.0.tar.gz.sha256
|
||||
sha256 9555f1d06f82987fbb4658862705515740414fd34b4db6ad2ed76a2dc08d3bde xerces-c-3.3.0.tar.gz
|
||||
|
||||
# Hash for license file
|
||||
sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE
|
||||
48
package/xerces/xerces.mk
Normal file
48
package/xerces/xerces.mk
Normal file
@@ -0,0 +1,48 @@
|
||||
################################################################################
|
||||
#
|
||||
# xerces
|
||||
#
|
||||
################################################################################
|
||||
|
||||
XERCES_VERSION = 3.3.0
|
||||
XERCES_SOURCE = xerces-c-$(XERCES_VERSION).tar.gz
|
||||
XERCES_SITE = https://archive.apache.org/dist/xerces/c/3/sources
|
||||
XERCES_LICENSE = Apache-2.0
|
||||
XERCES_LICENSE_FILES = LICENSE
|
||||
XERCES_CPE_ID_VENDOR = apache
|
||||
XERCES_CPE_ID_PRODUCT = xerces-c\+\+
|
||||
XERCES_INSTALL_STAGING = YES
|
||||
|
||||
define XERCES_DISABLE_SAMPLES
|
||||
$(SED) 's/add_subdirectory(samples)//' $(@D)/CMakeLists.txt
|
||||
endef
|
||||
|
||||
XERCES_POST_PATCH_HOOKS += XERCES_DISABLE_SAMPLES
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ICU),y)
|
||||
XERCES_DEPENDENCIES += icu
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
||||
XERCES_CONF_ENV += LIBS=-liconv
|
||||
XERCES_DEPENDENCIES += libiconv
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XERCES_ENABLE_NETWORK),y)
|
||||
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
||||
XERCES_CONF_OPTS += -Dnetwork-accessor=curl
|
||||
XERCES_DEPENDENCIES += libcurl
|
||||
else
|
||||
XERCES_CONF_OPTS += -Dnetwork-accessor=socket
|
||||
endif
|
||||
else
|
||||
XERCES_CONF_OPTS += -Dnetwork=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
||||
XERCES_CONF_OPTS += -Dthreads=ON
|
||||
else
|
||||
XERCES_CONF_OPTS += -Dthreads=OFF
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user