mirror of https://github.com/microsoft/vcpkg.git
[libmem] update to 5.1.0 (#47663)
This commit is contained in:
parent
3e04e70b57
commit
e85e5e01d9
|
|
@ -1,5 +1,5 @@
|
|||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 534057a..6241a58 100644
|
||||
index 43464c9..bbbcebc 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1,6 +1,6 @@
|
||||
|
|
@ -26,8 +26,8 @@ index 534057a..6241a58 100644
|
|||
|
||||
set(LIBMEM_DIR "${PROJECT_SOURCE_DIR}")
|
||||
set(LIBMEM_INC "${LIBMEM_DIR}/include")
|
||||
@@ -89,10 +91,17 @@ elseif(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD)
|
||||
endif()
|
||||
@@ -98,10 +100,16 @@ elseif(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD)
|
||||
|
||||
file(GLOB LIBMEM_SRC ${LIBMEM_ARCH_SRC} "${LIBMEM_DIR}/src/freebsd/*.c" "${LIBMEM_DIR}/src/freebsd/ptrace/*.c" "${LIBMEM_DIR}/src/common/*.c" "${LIBMEM_DIR}/src/common/*.cpp" "${INTERNAL_DIR}/posixutils/*.c" "${INTERNAL_DIR}/elfutils/*.c" "${INTERNAL_DIR}/demangler/*.cpp")
|
||||
endif()
|
||||
+find_package(PkgConfig)
|
||||
|
|
@ -36,7 +36,6 @@ index 534057a..6241a58 100644
|
|||
+find_package(LLVM CONFIG REQUIRED)
|
||||
+target_compile_definitions(LLVMDemangle INTERFACE ${LLVM_DEFINITIONS})
|
||||
+target_include_directories(LLVMDemangle INTERFACE ${LLVM_INCLUDE_DIRS})
|
||||
+
|
||||
set(LIBMEM_DEPS
|
||||
- capstone
|
||||
- keystone
|
||||
|
|
@ -47,7 +46,7 @@ index 534057a..6241a58 100644
|
|||
)
|
||||
|
||||
if (LIBMEM_BUILD_STATIC)
|
||||
@@ -104,9 +113,6 @@ target_include_directories(libmem PRIVATE "${LIBMEM_DIR}/src" "${INTERNAL_DIR}"
|
||||
@@ -113,9 +121,6 @@ target_include_directories(libmem PRIVATE "${LIBMEM_DIR}/src" "${INTERNAL_DIR}"
|
||||
|
||||
include_directories(${PROJECT_SOURCE_DIR}
|
||||
${LIBMEM_INC}
|
||||
|
|
@ -57,7 +56,7 @@ index 534057a..6241a58 100644
|
|||
)
|
||||
|
||||
if (LIBMEM_BUILD_TESTS)
|
||||
@@ -116,10 +122,6 @@ endif()
|
||||
@@ -125,10 +130,6 @@ endif()
|
||||
|
||||
set_target_properties(libmem PROPERTIES POSITION_INDEPENDENT_CODE True INCLUDES ${LIBMEM_INC})
|
||||
target_compile_definitions(libmem PUBLIC LM_EXPORT)
|
||||
|
|
@ -68,7 +67,7 @@ index 534057a..6241a58 100644
|
|||
|
||||
if(${CMAKE_SYSTEM_NAME} STREQUAL Windows OR ${CMAKE_SYSTEM_NAME} STREQUAL CYGWIN)
|
||||
set(LIBMEM_DEPS
|
||||
@@ -152,7 +154,7 @@ else()
|
||||
@@ -161,7 +162,7 @@ else()
|
||||
endif()
|
||||
|
||||
target_link_libraries(libmem ${LIBMEM_DEPS})
|
||||
|
|
@ -77,7 +76,7 @@ index 534057a..6241a58 100644
|
|||
# Create a bundled static library containing all dependencies (to mimic the shared library behavior)
|
||||
set_target_properties(libmem PROPERTIES OUTPUT_NAME "libmem_partial")
|
||||
set(libmem_bundle_files "$<TARGET_FILE:libmem>")
|
||||
@@ -193,7 +195,7 @@ if(LIBMEM_BUILD_STATIC)
|
||||
@@ -202,7 +203,7 @@ if(LIBMEM_BUILD_STATIC)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
@ -86,7 +85,7 @@ index 534057a..6241a58 100644
|
|||
if(NOT ${CMAKE_SYSTEM_NAME} STREQUAL CYGWIN)
|
||||
cmake_path(SET CMAKE_INSTALL_PREFIX "$ENV{ProgramFiles}")
|
||||
else()
|
||||
@@ -202,14 +204,25 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL Windows OR ${CMAKE_SYSTEM_NAME} STREQUAL CYGWIN
|
||||
@@ -211,14 +212,27 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL Windows OR ${CMAKE_SYSTEM_NAME} STREQUAL CYGWIN
|
||||
endif()
|
||||
set(CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/libmem")
|
||||
execute_process(COMMAND mkdir "${CMAKE_INSTALL_PREFIX}")
|
||||
|
|
@ -96,10 +95,10 @@ index 534057a..6241a58 100644
|
|||
|
||||
-install(TARGETS libmem
|
||||
- LIBRARY DESTINATION lib)
|
||||
-
|
||||
|
||||
-install(TARGETS libmem
|
||||
- RUNTIME DESTINATION lib)
|
||||
-
|
||||
|
||||
install(DIRECTORY ${LIBMEM_INC}/libmem DESTINATION include)
|
||||
+install(TARGETS libmem EXPORT libmem-targets
|
||||
+ LIBRARY DESTINATION lib
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ vcpkg_from_github(
|
|||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO rdbo/libmem
|
||||
REF "${VERSION}"
|
||||
SHA512 fb953952c1d11d453ab290b0e3af38ebb24e81fcfeb62b0f8fb7a50e1de2304c2116278b8fefe885708d2705239be2c92bb592cbe912e5fcb0dbf83e5de529f4
|
||||
SHA512 ee231e5ae7ed08f2e9950ee2d6604ed29a777d816a057b6451953cb03eb52579a73c3e77b9af059963223486798bf73ea7e2f579c7e9d1e222091125b3e1eeee
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
0001-CMakeLists.patch
|
||||
|
|
|
|||
|
|
@ -1,16 +1,19 @@
|
|||
{
|
||||
"name": "libmem",
|
||||
"version": "5.0.5",
|
||||
"version": "5.1.0",
|
||||
"description": "Advanced Game Hacking Library for C, Modern C++, Rust and Python (Windows/Linux/FreeBSD) (Process/Memory Hacking) (Hooking/Detouring) (Cross Platform) (x86/x64/ARM/ARM64) (DLL/SO Injection) (Internal/External) (Assembler/Disassembler)",
|
||||
"homepage": "https://github.com/rdbo/libmem",
|
||||
"license": "AGPL-3.0-only",
|
||||
"supports": "(!xbox & windows) | ((linux | freebsd) & (x86 | x64))",
|
||||
"supports": "(!xbox & windows) | linux | freebsd | android",
|
||||
"dependencies": [
|
||||
"capstone",
|
||||
"keystone",
|
||||
{
|
||||
"name": "llvm",
|
||||
"default-features": false
|
||||
"default-features": false,
|
||||
"features": [
|
||||
"default-targets"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
|
|
|
|||
|
|
@ -5073,7 +5073,7 @@
|
|||
"port-version": 0
|
||||
},
|
||||
"libmem": {
|
||||
"baseline": "5.0.5",
|
||||
"baseline": "5.1.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"libmesh": {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "31a632dff62395b0c4916323d74fe5295f6de339",
|
||||
"version": "5.1.0",
|
||||
"port-version": 0
|
||||
},
|
||||
{
|
||||
"git-tree": "0bbca85bef2018ea432e17f2438b0ad38c7f9994",
|
||||
"version": "5.0.5",
|
||||
|
|
|
|||
Loading…
Reference in New Issue