mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 19:43:05 +08:00
[mman] only windows (#22453)
This commit is contained in:
parent
9e7de58738
commit
0e96f76e01
@ -8,12 +8,11 @@ vcpkg_from_github(
|
|||||||
mman-static.patch
|
mman-static.patch
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_configure_cmake(
|
vcpkg_cmake_configure(
|
||||||
SOURCE_PATH ${SOURCE_PATH}
|
SOURCE_PATH "${SOURCE_PATH}"
|
||||||
PREFER_NINJA
|
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_install_cmake()
|
vcpkg_cmake_install()
|
||||||
|
|
||||||
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/include/mman)
|
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/include/mman)
|
||||||
file(RENAME ${CURRENT_PACKAGES_DIR}/include/sys ${CURRENT_PACKAGES_DIR}/include/mman/sys)
|
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)
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||||
|
|
||||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||||||
file(READ ${CURRENT_PACKAGES_DIR}/include/mman/sys/mman.h _contents)
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/mman/sys/mman.h" "__declspec(dllimport)" "")
|
||||||
string(REPLACE "__declspec(dllimport)" "" _contents "${_contents}")
|
|
||||||
file(WRITE ${CURRENT_PACKAGES_DIR}/include/mman/sys/mman.h "${_contents}")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
vcpkg_copy_pdbs()
|
vcpkg_copy_pdbs()
|
||||||
|
@ -1,7 +1,14 @@
|
|||||||
{
|
{
|
||||||
"name": "mman",
|
"name": "mman",
|
||||||
"version-string": "git-f5ff813",
|
"version-string": "git-f5ff813",
|
||||||
"port-version": 4,
|
"port-version": 5,
|
||||||
"description": "A light implementation of the mmap functions for MinGW.",
|
"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
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
@ -856,8 +856,6 @@ microsoft-signalr:x64-windows-static-md=skip
|
|||||||
microsoft-signalr:x86-windows=skip
|
microsoft-signalr:x86-windows=skip
|
||||||
# https://github.com/mlpack/mlpack/pull/2945
|
# https://github.com/mlpack/mlpack/pull/2945
|
||||||
mlpack:x64-uwp=fail
|
mlpack:x64-uwp=fail
|
||||||
mman:x64-linux=fail
|
|
||||||
mman:x64-osx=fail
|
|
||||||
mmloader:arm64-windows=fail
|
mmloader:arm64-windows=fail
|
||||||
mmloader:arm-uwp=fail
|
mmloader:arm-uwp=fail
|
||||||
mmloader:x64-linux=fail
|
mmloader:x64-linux=fail
|
||||||
|
@ -4454,7 +4454,7 @@
|
|||||||
},
|
},
|
||||||
"mman": {
|
"mman": {
|
||||||
"baseline": "git-f5ff813",
|
"baseline": "git-f5ff813",
|
||||||
"port-version": 4
|
"port-version": 5
|
||||||
},
|
},
|
||||||
"mmloader": {
|
"mmloader": {
|
||||||
"baseline": "2021-12-13",
|
"baseline": "2021-12-13",
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "fff4dfa412b18aa027005a5ea952932cbf10cd74",
|
||||||
|
"version-string": "git-f5ff813",
|
||||||
|
"port-version": 5
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "30ad8930ff3b29bd994587b1ff58e5205deb32bc",
|
"git-tree": "30ad8930ff3b29bd994587b1ff58e5205deb32bc",
|
||||||
"version-string": "git-f5ff813",
|
"version-string": "git-f5ff813",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user