Skip to content

Commit

Permalink
win-capture: Use static runtimes for hooks/helpers
Browse files Browse the repository at this point in the history
(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.
  • Loading branch information
jp9000 committed Nov 23, 2016
1 parent e438347 commit 2f305cb
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deps/ipc-util/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
4 changes: 4 additions & 0 deletions plugins/win-capture/get-graphics-offsets/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
4 changes: 4 additions & 0 deletions plugins/win-capture/graphics-hook/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
4 changes: 4 additions & 0 deletions plugins/win-capture/inject-helper/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})

Expand Down
4 changes: 4 additions & 0 deletions plugins/win-ivcam/seg_service/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 2f305cb

Please sign in to comment.