early-access version 2853
This commit is contained in:
15
externals/vcpkg/ports/capstone/001-silence-windows-crt-secure-warnings.patch
vendored
Executable file
15
externals/vcpkg/ports/capstone/001-silence-windows-crt-secure-warnings.patch
vendored
Executable file
@@ -0,0 +1,15 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index f5f4448..5e5cc7e 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -87,6 +87,10 @@ if(CAPSTONE_BUILD_STATIC_RUNTIME)
|
||||
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||
endif()
|
||||
|
||||
+if(WIN32)
|
||||
+ add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
|
||||
+endif()
|
||||
+
|
||||
## sources
|
||||
set(SOURCES_ENGINE
|
||||
cs.c
|
||||
52
externals/vcpkg/ports/capstone/portfile.cmake
vendored
Executable file
52
externals/vcpkg/ports/capstone/portfile.cmake
vendored
Executable file
@@ -0,0 +1,52 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO "capstone-engine/capstone"
|
||||
REF 000561b4f74dc15bda9af9544fe714efda7a6e13 # 5.0.0-rc2
|
||||
SHA512 66b09a7d2fda297836bbedaeece71dcfe39bdbd633d9b6ecb68ee2e5aa094b697226136ab172cdc4550e8b2ef1448d001c8ee4e0d456c6d277afe0b3d1aab5a1
|
||||
HEAD_REF next
|
||||
PATCHES
|
||||
001-silence-windows-crt-secure-warnings.patch
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
"arm" CAPSTONE_ARM_SUPPORT
|
||||
"arm64" CAPSTONE_ARM64_SUPPORT
|
||||
"evm" CAPSTONE_EVM_SUPPORT
|
||||
"m680x" CAPSTONE_M680X_SUPPORT
|
||||
"m68k" CAPSTONE_M68K_SUPPORT
|
||||
"mips" CAPSTONE_MIPS_SUPPORT
|
||||
"osxkernel" CAPSTONE_OSXKERNEL_SUPPORT
|
||||
"ppc" CAPSTONE_PPC_SUPPORT
|
||||
"sparc" CAPSTONE_SPARC_SUPPORT
|
||||
"sysz" CAPSTONE_SYSZ_SUPPORT
|
||||
"tms320c64x" CAPSTONE_TMS320C64X_SUPPORT
|
||||
"x86" CAPSTONE_X86_SUPPORT
|
||||
"x86-reduce" CAPSTONE_X86_REDUCE
|
||||
"xcore" CAPSTONE_XCORE_SUPPORT
|
||||
"diet" CAPSTONE_BUILD_DIET
|
||||
)
|
||||
|
||||
if ("osxkernel" IN_LIST FEATURES AND NOT VCPKG_TARGET_IS_OSX)
|
||||
message(FATAL_ERROR "Feature 'osxkernel' only supported in OSX")
|
||||
endif()
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DCAPSTONE_BUILD_TESTS=OFF
|
||||
-DCAPSTONE_BUILD_CSTOOL=OFF
|
||||
-DCAPSTONE_BUILD_STATIC_RUNTIME=${STATIC_CRT}
|
||||
${FEATURE_OPTIONS}
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE.TXT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
72
externals/vcpkg/ports/capstone/vcpkg.json
vendored
Executable file
72
externals/vcpkg/ports/capstone/vcpkg.json
vendored
Executable file
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"name": "capstone",
|
||||
"version": "5.0.0-rc2",
|
||||
"port-version": 1,
|
||||
"description": "Multi-architecture disassembly framework",
|
||||
"homepage": "https://github.com/capstone-engine/capstone",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"features": {
|
||||
"arm": {
|
||||
"description": "Capstone disassembly support for ARM"
|
||||
},
|
||||
"arm64": {
|
||||
"description": "Capstone disassembly support for ARM64"
|
||||
},
|
||||
"diet": {
|
||||
"description": "Build Capstone in diet mode (reduced features for smaller size)"
|
||||
},
|
||||
"evm": {
|
||||
"description": "Capstone disassembly support for EVM"
|
||||
},
|
||||
"m680x": {
|
||||
"description": "Capstone disassembly support for M680X"
|
||||
},
|
||||
"m68k": {
|
||||
"description": "Capstone disassembly support for M68k"
|
||||
},
|
||||
"mips": {
|
||||
"description": "Capstone disassembly support for MIPS"
|
||||
},
|
||||
"osxkernel": {
|
||||
"description": "Support for embedding Capstone into OSX Kernel extensions"
|
||||
},
|
||||
"ppc": {
|
||||
"description": "Capstone disassembly support for PowerPC"
|
||||
},
|
||||
"sparc": {
|
||||
"description": "Capstone disassembly support for SPARC"
|
||||
},
|
||||
"sysz": {
|
||||
"description": "Capstone disassembly support for SysZ"
|
||||
},
|
||||
"tms320c64x": {
|
||||
"description": "Capstone disassembly support for TMS320C64X"
|
||||
},
|
||||
"x86": {
|
||||
"description": "Capstone disassembly support for x86"
|
||||
},
|
||||
"x86-reduce": {
|
||||
"description": "Capstone disassembly support for x86 without support for less used instructions",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "capstone",
|
||||
"features": [
|
||||
"x86"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"xcore": {
|
||||
"description": "Capstone disassembly support for XCore"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user