early-access version 2853
This commit is contained in:
15
externals/vcpkg/ports/libunifex/fix-compile-error.patch
vendored
Executable file
15
externals/vcpkg/ports/libunifex/fix-compile-error.patch
vendored
Executable file
@@ -0,0 +1,15 @@
|
||||
diff --git a/cmake/unifex_env.cmake b/cmake/unifex_env.cmake
|
||||
index cb99ae4..9825532 100644
|
||||
--- a/cmake/unifex_env.cmake
|
||||
+++ b/cmake/unifex_env.cmake
|
||||
@@ -21,8 +21,8 @@ endif()
|
||||
|
||||
if (MSVC)
|
||||
# warning level 3 and all warnings as errors
|
||||
- add_compile_options(/W3 /WX)
|
||||
+ add_compile_options(/W3 /WX /Zc:externConstexpr /EHsc)
|
||||
else()
|
||||
# lots of warnings and all warnings as errors
|
||||
- add_compile_options(-Wall -Wextra -pedantic -Werror)
|
||||
+ add_compile_options(-Wall -Wextra -pedantic)
|
||||
endif()
|
||||
42
externals/vcpkg/ports/libunifex/portfile.cmake
vendored
Executable file
42
externals/vcpkg/ports/libunifex/portfile.cmake
vendored
Executable file
@@ -0,0 +1,42 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO facebookexperimental/libunifex
|
||||
REF 9df21c58d34ce8a1cd3b15c3a7347495e29417a0
|
||||
SHA512 2a1c6dbe0e66893be888c301e53b5d2813049047a817e9e1562acf2dec4ae79dec7db90409cd415c59238f2f3e2738e52f86a424041459390c720568ee52d860
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
fix-compile-error.patch
|
||||
)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
test BUILD_TESTING
|
||||
test UNIFEX_BUILD_EXAMPLES
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
${FEATURE_OPTIONS}
|
||||
-DCMAKE_CXX_STANDARD:STRING=20
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME unifex CONFIG_PATH lib/cmake/unifex)
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE.txt"
|
||||
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/share"
|
||||
"${CURRENT_PACKAGES_DIR}/include/unifex/config.hpp.in"
|
||||
)
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/unifex/linux")
|
||||
elseif(VCPKG_TARGET_IS_LINUX)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/unifex/win32")
|
||||
endif()
|
||||
29
externals/vcpkg/ports/libunifex/vcpkg.json
vendored
Executable file
29
externals/vcpkg/ports/libunifex/vcpkg.json
vendored
Executable file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"name": "libunifex",
|
||||
"version-date": "2021-12-07",
|
||||
"port-version": 1,
|
||||
"description": "Unified Executors",
|
||||
"homepage": "https://github.com/facebookexperimental/libunifex",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "liburing",
|
||||
"platform": "linux"
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"features": {
|
||||
"test": {
|
||||
"description": "Build test/example programs",
|
||||
"dependencies": [
|
||||
"gtest"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user