Removed junk files. Updated safetyhook library version. Added library MinHook. Reviewed comments.
This commit is contained in:
6
external/safetyhook/CMakeLists.txt
vendored
6
external/safetyhook/CMakeLists.txt
vendored
@@ -99,6 +99,11 @@ if((NOT SAFETYHOOK_FETCH_ZYDIS)) # find-zydis
|
||||
|
||||
endif()
|
||||
# Target: safetyhook
|
||||
set(CMKR_TARGET safetyhook)
|
||||
if(TARGET Zydis::Zydis AND NOT TARGET Zydis)
|
||||
add_library(Zydis ALIAS Zydis::Zydis)
|
||||
endif()
|
||||
|
||||
set(safetyhook_SOURCES
|
||||
"src/allocator.cpp"
|
||||
"src/easy.cpp"
|
||||
@@ -171,7 +176,6 @@ target_link_libraries(safetyhook PUBLIC
|
||||
Zydis
|
||||
)
|
||||
|
||||
set(CMKR_TARGET safetyhook)
|
||||
if(SAFETYHOOK_USE_CXXMODULES)
|
||||
target_compile_definitions(safetyhook INTERFACE SAFETYHOOK_USE_CXXMODULES)
|
||||
endif()
|
||||
|
||||
5
external/safetyhook/cmake.toml
vendored
5
external/safetyhook/cmake.toml
vendored
@@ -75,6 +75,11 @@ clang.private-compile-options = ["-Wall", "-Wextra", "-Wshadow", "-Wnon-virtual-
|
||||
gcc.private-compile-options = ["-Wall", "-Wextra", "-Wshadow", "-Wnon-virtual-dtor", "-pedantic"]
|
||||
shared.compile-definitions = ["SAFETYHOOK_SHARED_LIB"]
|
||||
shared.private-compile-definitions = ["SAFETYHOOK_BUILDING"]
|
||||
cmake-before = """
|
||||
if(TARGET Zydis::Zydis AND NOT TARGET Zydis)
|
||||
add_library(Zydis ALIAS Zydis::Zydis)
|
||||
endif()
|
||||
"""
|
||||
cmake-after = """
|
||||
if(SAFETYHOOK_USE_CXXMODULES)
|
||||
target_compile_definitions(safetyhook INTERFACE SAFETYHOOK_USE_CXXMODULES)
|
||||
|
||||
2
external/safetyhook/src/allocator.cpp
vendored
2
external/safetyhook/src/allocator.cpp
vendored
@@ -5,6 +5,8 @@
|
||||
#include "safetyhook/os.hpp"
|
||||
#include "safetyhook/utility.hpp"
|
||||
|
||||
#include "safetyhook/utility.hpp"
|
||||
|
||||
#include "safetyhook/allocator.hpp"
|
||||
|
||||
namespace safetyhook {
|
||||
|
||||
Reference in New Issue
Block a user