[libdisasm] Support uwp (#21815)

* [libdisasm] Support uwp

* version

* Add dependency vcpkg-cmake

* version

* [breakpad] drop support with uwp

* version

* use _CRT_SECURE_NO_WARNINGS instead

* version
This commit is contained in:
Jack·Boos·Yu 2021-12-07 12:45:20 +08:00 committed by GitHub
parent 80bd733a3f
commit 3579b5cff0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 33 additions and 14 deletions

View File

@ -1,9 +1,10 @@
{
"name": "breakpad",
"version-string": "2020-09-14",
"port-version": 3,
"port-version": 4,
"description": "a set of client and server components which implement a crash-reporting system.",
"homepage": "https://github.com/google/breakpad",
"supports": "!uwp",
"dependencies": [
"libdisasm"
]

View File

@ -36,6 +36,10 @@ include_directories(libdisasm)
add_library(libdisasm ${SRCS})
if (MSVC)
target_compile_definitions(libdisasm PRIVATE _CRT_SECURE_NO_WARNINGS)
endif()
install(
TARGETS libdisasm
RUNTIME DESTINATION bin

View File

@ -9,15 +9,15 @@ vcpkg_from_sourceforge(
PATCHES sizeofvoid.patch
)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS_DEBUG
-DDISABLE_INSTALL_HEADERS=ON
)
vcpkg_install_cmake()
vcpkg_cmake_install()
# Handle copyright
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@ -1,7 +1,13 @@
{
"name": "libdisasm",
"version-string": "0.23",
"port-version": 8,
"port-version": 9,
"description": "x86 Disassembler Library.",
"homepage": "https://sourceforge.net/projects/bastard"
"homepage": "https://sourceforge.net/projects/bastard",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
]
}

View File

@ -534,8 +534,6 @@ cpuid:x64-uwp=fail
cpuid:arm64-windows=fail
libdatrie:x64-linux=fail
libdatrie:x64-osx=fail
libdisasm:arm-uwp=fail
libdisasm:x64-uwp=fail
libdshowcapture:arm-uwp=fail
libdshowcapture:x64-linux=fail
libdshowcapture:x64-osx=fail

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "553a7799e93f9f2b4441d077b379613a796acdea",
"version-string": "2020-09-14",
"port-version": 4
},
{
"git-tree": "be41998b0a407c10ae78d605264a2c0bb7d3f3ca",
"version-string": "2020-09-14",

View File

@ -1138,7 +1138,7 @@
},
"breakpad": {
"baseline": "2020-09-14",
"port-version": 3
"port-version": 4
},
"brigand": {
"baseline": "1.3.0",
@ -3398,7 +3398,7 @@
},
"libdisasm": {
"baseline": "0.23",
"port-version": 8
"port-version": 9
},
"libdivide": {
"baseline": "5.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "ab983230ac21cfc3d2849abfa70551755ffcb5f8",
"version-string": "0.23",
"port-version": 9
},
{
"git-tree": "a15a1eeb7daa3d47d553ba0b14a151462377c41f",
"version-string": "0.23",