2014-11-10 15:04:40 -08:00
|
|
|
project(graphics-hook)
|
|
|
|
|
|
|
|
set(graphics-hook_HEADERS
|
|
|
|
graphics-hook.h
|
|
|
|
../graphics-hook-info.h
|
|
|
|
../hook-helpers.h
|
|
|
|
../funchook.h
|
|
|
|
../obfuscate.h
|
|
|
|
gl-decs.h
|
|
|
|
d3d9-patches.hpp)
|
|
|
|
|
|
|
|
set(graphics-hook_SOURCES
|
|
|
|
graphics-hook.c
|
|
|
|
../funchook.c
|
|
|
|
../obfuscate.c
|
|
|
|
gl-capture.c
|
|
|
|
d3d9-capture.cpp
|
|
|
|
dxgi-capture.cpp
|
|
|
|
d3d10-capture.cpp
|
|
|
|
d3d11-capture.cpp)
|
|
|
|
|
|
|
|
add_library(graphics-hook MODULE
|
|
|
|
${graphics-hook_SOURCES}
|
|
|
|
${graphics-hook_HEADERS})
|
|
|
|
|
|
|
|
target_link_libraries(graphics-hook
|
2015-02-04 23:17:56 -08:00
|
|
|
ipc-util psapi)
|
2014-11-10 15:04:40 -08:00
|
|
|
|
|
|
|
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
|
|
set(_output_suffix "64")
|
|
|
|
else()
|
|
|
|
set(_output_suffix "32")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set_target_properties(graphics-hook
|
|
|
|
PROPERTIES
|
|
|
|
OUTPUT_NAME "graphics-hook${_output_suffix}")
|
|
|
|
|
|
|
|
install_obs_datatarget(graphics-hook "obs-plugins/win-capture")
|