win-capture: Use static runtimes for hooks/helpers
(Note: This commit also modifies the ipc-util/seg-service modules) When compiling the final project, always compile ipc-util/get-graphics-offsets/graphics-hook/inject-helper/seg-service with static MSVC runtimes to prevent the need of requiring the MSVC runtimes for both architectures.
This commit is contained in:
parent
e438347237
commit
2f305cb550
4
deps/ipc-util/CMakeLists.txt
vendored
4
deps/ipc-util/CMakeLists.txt
vendored
@ -22,6 +22,10 @@ else()
|
||||
ipc-util/pipe-posix.c)
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options("$<$<CONFIG:RelWithDebInfo>:/MT>")
|
||||
endif()
|
||||
|
||||
add_library(ipc-util STATIC
|
||||
${ipc-util_SOURCES}
|
||||
${ipc-util_HEADERS})
|
||||
|
@ -11,6 +11,10 @@ set(get-graphics-offsets_SOURCES
|
||||
d3d8-offsets.cpp
|
||||
d3d9-offsets.cpp)
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options("$<$<CONFIG:RelWithDebInfo>:/MT>")
|
||||
endif()
|
||||
|
||||
add_executable(get-graphics-offsets
|
||||
${get-graphics-offsets_SOURCES}
|
||||
${get-graphics-offsets_HEADERS})
|
||||
|
@ -29,6 +29,10 @@ set(graphics-hook_SOURCES
|
||||
d3d11-capture.cpp
|
||||
d3d12-capture.cpp)
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options("$<$<CONFIG:RelWithDebInfo>:/MT>")
|
||||
endif()
|
||||
|
||||
add_library(graphics-hook MODULE
|
||||
${graphics-hook_SOURCES}
|
||||
${graphics-hook_HEADERS})
|
||||
|
@ -9,6 +9,10 @@ set(inject-helper_SOURCES
|
||||
../obfuscate.c
|
||||
inject-helper.c)
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options("$<$<CONFIG:RelWithDebInfo>:/MT>")
|
||||
endif()
|
||||
|
||||
add_executable(inject-helper
|
||||
${inject-helper_SOURCES})
|
||||
|
||||
|
@ -33,6 +33,10 @@ set(seg_service_SOURCES
|
||||
${seg_service_GENERATED_FILES}
|
||||
)
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options("$<$<CONFIG:RelWithDebInfo>:/MT>")
|
||||
endif()
|
||||
|
||||
add_executable(seg_service WIN32
|
||||
${seg_service_SOURCES}
|
||||
${seg_service_HEADERS})
|
||||
|
Loading…
x
Reference in New Issue
Block a user