[mman] only windows (#22453)

This commit is contained in:
autoantwort 2022-01-10 22:07:18 +01:00 committed by GitHub
parent 9e7de58738
commit 0e96f76e01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 19 additions and 12 deletions

View File

@ -8,12 +8,11 @@ vcpkg_from_github(
mman-static.patch
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_install_cmake()
vcpkg_cmake_install()
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/include/mman)
file(RENAME ${CURRENT_PACKAGES_DIR}/include/sys ${CURRENT_PACKAGES_DIR}/include/mman/sys)
@ -23,9 +22,7 @@ file(INSTALL ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(READ ${CURRENT_PACKAGES_DIR}/include/mman/sys/mman.h _contents)
string(REPLACE "__declspec(dllimport)" "" _contents "${_contents}")
file(WRITE ${CURRENT_PACKAGES_DIR}/include/mman/sys/mman.h "${_contents}")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/mman/sys/mman.h" "__declspec(dllimport)" "")
endif()
vcpkg_copy_pdbs()

View File

@ -1,7 +1,14 @@
{
"name": "mman",
"version-string": "git-f5ff813",
"port-version": 4,
"port-version": 5,
"description": "A light implementation of the mmap functions for MinGW.",
"homepage": "https://github.com/witwall/mman-win32"
"homepage": "https://github.com/witwall/mman-win32",
"supports": "windows",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
]
}

View File

@ -856,8 +856,6 @@ microsoft-signalr:x64-windows-static-md=skip
microsoft-signalr:x86-windows=skip
# https://github.com/mlpack/mlpack/pull/2945
mlpack:x64-uwp=fail
mman:x64-linux=fail
mman:x64-osx=fail
mmloader:arm64-windows=fail
mmloader:arm-uwp=fail
mmloader:x64-linux=fail

View File

@ -4454,7 +4454,7 @@
},
"mman": {
"baseline": "git-f5ff813",
"port-version": 4
"port-version": 5
},
"mmloader": {
"baseline": "2021-12-13",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "fff4dfa412b18aa027005a5ea952932cbf10cd74",
"version-string": "git-f5ff813",
"port-version": 5
},
{
"git-tree": "30ad8930ff3b29bd994587b1ff58e5205deb32bc",
"version-string": "git-f5ff813",