mirror of https://github.com/microsoft/vcpkg.git
add new port sourcemeta blaze (#47064)
Co-authored-by: Aleksandr Smyslov <aleksandr.smyslov@libertexgroup.com>
This commit is contained in:
parent
1f46bb7279
commit
0b04bca335
|
|
@ -0,0 +1,36 @@
|
|||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO sourcemeta/blaze
|
||||
REF 51a6158e5094c7881a68c0e9411023f1b1822a9f
|
||||
SHA512 69d85f0eac77fdc73a0689df209c3241ea311a9599ee89bff62abbfc24c2a23848f8ea761e0b4efadd976024601f3b2a7c0ebb6ed696a16bfd976aabf6da2daf
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
use_vcpkg_libs.patch
|
||||
)
|
||||
|
||||
file(REMOVE_RECURSE "${SOURCE_PATH}/vendor/core/vendor/boost-regex")
|
||||
file(REMOVE_RECURSE "${SOURCE_PATH}/vendor/core/vendor/uriparser")
|
||||
file(REMOVE_RECURSE "${SOURCE_PATH}/vendor/core/vendor/yaml")
|
||||
file(REMOVE_RECURSE "${SOURCE_PATH}/vendor/vendorpull")
|
||||
file(REMOVE_RECURSE "${SOURCE_PATH}/vendor/jsonschema-test-suite")
|
||||
file(REMOVE_RECURSE "${SOURCE_PATH}/vendor/core/vendor/googletest")
|
||||
file(REMOVE_RECURSE "${SOURCE_PATH}/vendor/core/vendor/googlebenchmark")
|
||||
|
||||
|
||||
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME blaze CONFIG_PATH "lib/cmake/blaze")
|
||||
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
# Handle copyright
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
diff --git a/vendor/core/CMakeLists.txt b/vendor/core/CMakeLists.txt
|
||||
index e30b6b3..9dfa331 100644
|
||||
--- a/vendor/core/CMakeLists.txt
|
||||
+++ b/vendor/core/CMakeLists.txt
|
||||
@@ -41,12 +41,12 @@ if(SOURCEMETA_CORE_INSTALL)
|
||||
endif()
|
||||
|
||||
if(SOURCEMETA_CORE_REGEX)
|
||||
- find_package(BoostRegex REQUIRED)
|
||||
+ find_package(Boost REQUIRED COMPONENTS regex)
|
||||
add_subdirectory(src/core/regex)
|
||||
endif()
|
||||
|
||||
if(SOURCEMETA_CORE_URI)
|
||||
- find_package(UriParser REQUIRED)
|
||||
+ find_package(uriparser CONFIG REQUIRED char wchar_t)
|
||||
add_subdirectory(src/core/uri)
|
||||
endif()
|
||||
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"name": "sourcemeta-blaze",
|
||||
"version": "1.0.0",
|
||||
"description": "The ultra high-performance C++ JSON Schema validator, providing validation in the nano-second range along with perfect compliance scores. Supports Draft 4, Draft 6, Draft 7, 2019-09 and 2020-12. For both servers and embedded devices",
|
||||
"homepage": "https://blaze.sourcemeta.com",
|
||||
"license": "BSD-3-Clause",
|
||||
"supports": "!arm",
|
||||
"dependencies": [
|
||||
"boost-regex",
|
||||
"libyaml",
|
||||
"uriparser",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -9032,6 +9032,10 @@
|
|||
"baseline": "2.3.3",
|
||||
"port-version": 0
|
||||
},
|
||||
"sourcemeta-blaze": {
|
||||
"baseline": "1.0.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"soxr": {
|
||||
"baseline": "0.1.3",
|
||||
"port-version": 8
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "1fe6c912b382589592f0691158cc1e07c4428976",
|
||||
"version": "1.0.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue