generated from gaoyang3513/SDK_RK3288
[Mod] First commit
This commit is contained in:
29
package/json-for-modern-cpp/Config.in
Normal file
29
package/json-for-modern-cpp/Config.in
Normal file
@ -0,0 +1,29 @@
|
||||
config BR2_PACKAGE_JSON_FOR_MODERN_CPP
|
||||
bool "json-for-modern-cpp"
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++11
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
help
|
||||
Json for modern c++ has the following desing goals in mind:
|
||||
|
||||
- Intuitive syntax. In languages such as Python, JSON feels
|
||||
like a first class data type. All the operator magic of
|
||||
modern C++ is used to achieve the same feeling in c++.
|
||||
|
||||
- Trivial integration. The whole code consists of a single
|
||||
header file json.hpp. That's it. No library, no
|
||||
subproject, no dependencies, no complex build system. The
|
||||
class is written in vanilla C++11. All in all, everything
|
||||
should require no adjustment of compiler flags or project
|
||||
settings.
|
||||
|
||||
- Serious testing. The class is heavily unit-tested and
|
||||
covers 100% of the code, including all exceptional
|
||||
behavior. Furthermore, it is checked with Valgrind that
|
||||
there are no memory leaks. To maintain high quality, the
|
||||
project is following the Core Infrastructure Initiative
|
||||
(CII) best practices.
|
||||
|
||||
https://github.com/nlohmann/json
|
||||
|
||||
comment "json-for-modern-cpp needs a toolchain w/ C++, gcc >= 4.9"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
3
package/json-for-modern-cpp/json-for-modern-cpp.hash
Normal file
3
package/json-for-modern-cpp/json-for-modern-cpp.hash
Normal file
@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 5daca6ca216495edf89d167f808d1d03c4a4d929cef7da5e10f135ae1540c7e4 json-3.10.5.tar.gz
|
||||
sha256 86b998c792894ccb911a1cb7994f7a9652894e7a094c0b5e45be2f553f45cf14 LICENSE.MIT
|
||||
19
package/json-for-modern-cpp/json-for-modern-cpp.mk
Normal file
19
package/json-for-modern-cpp/json-for-modern-cpp.mk
Normal file
@ -0,0 +1,19 @@
|
||||
################################################################################
|
||||
#
|
||||
# json-for-modern-cpp
|
||||
#
|
||||
################################################################################
|
||||
|
||||
JSON_FOR_MODERN_CPP_VERSION = 3.10.5
|
||||
JSON_FOR_MODERN_CPP_SOURCE = json-$(JSON_FOR_MODERN_CPP_VERSION).tar.gz
|
||||
JSON_FOR_MODERN_CPP_SITE = $(call github,nlohmann,json,v$(JSON_FOR_MODERN_CPP_VERSION))
|
||||
JSON_FOR_MODERN_CPP_LICENSE = MIT
|
||||
JSON_FOR_MODERN_CPP_LICENSE_FILES = LICENSE.MIT
|
||||
JSON_FOR_MODERN_CPP_CPE_ID_VENDOR = json-for-modern-cpp_project
|
||||
|
||||
JSON_FOR_MODERN_CPP_INSTALL_STAGING = YES
|
||||
# header only library
|
||||
JSON_FOR_MODERN_CPP_INSTALL_TARGET = NO
|
||||
JSON_FOR_MODERN_CPP_CONF_OPTS = -DJSON_BuildTests=OFF -DJSON_MultipleHeaders=ON
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user