${CMAKE_SOURCE_DIR}/dispatch
)
+add_library (common_trace STATIC
+ trace.cpp
+)
+
+set_target_properties (common_trace PROPERTIES
+ # Ensure it can be statically linked in shared libraries
+ COMPILE_FLAGS "${CMAKE_SHARED_LIBRARY_CXX_FLAGS}"
+)
if (WIN32)
if (MINGW)
)
add_library (ddrawtrace MODULE ddraw.def ddrawtrace.cpp)
target_link_libraries (ddrawtrace
+ common_trace
common
${ZLIB_LIBRARIES}
${SNAPPY_LIBRARIES}
)
add_library (d3d8trace MODULE d3d8.def d3d8trace.cpp d3d9shader.cpp)
target_link_libraries (d3d8trace
+ common_trace
common
${ZLIB_LIBRARIES}
${SNAPPY_LIBRARIES}
)
add_library (d3d9trace MODULE d3d9.def d3d9trace.cpp d3d9shader.cpp)
target_link_libraries (d3d9trace
+ common_trace
common
${ZLIB_LIBRARIES}
${SNAPPY_LIBRARIES}
)
add_library (d3d10trace MODULE d3d10.def d3d10trace.cpp d3d10shader.cpp)
target_link_libraries (d3d10trace
+ common_trace
common
${ZLIB_LIBRARIES}
${SNAPPY_LIBRARIES}
)
add_library (d3d10_1trace MODULE d3d10_1.def d3d10_1trace.cpp)
target_link_libraries (d3d10_1trace
+ common_trace
common
${ZLIB_LIBRARIES}
${SNAPPY_LIBRARIES}
)
add_library (d3d11trace MODULE d3d11.def d3d11trace.cpp)
target_link_libraries (d3d11trace
+ common_trace
common
${ZLIB_LIBRARIES}
${SNAPPY_LIBRARIES}
add_dependencies (wgltrace glproc)
target_link_libraries (wgltrace
glproc_gl
+ common_trace
common
${ZLIB_LIBRARIES}
${SNAPPY_LIBRARIES}
target_link_libraries (cgltrace
glproc_gl
+ common_trace
common
${ZLIB_LIBRARIES}
${SNAPPY_LIBRARIES}
target_link_libraries (glxtrace
glproc_gl
+ common_trace
common
${ZLIB_LIBRARIES}
${SNAPPY_LIBRARIES}
egltrace.cpp
glcaps.cpp
gltrace_state.cpp
+ ${CMAKE_SOURCE_DIR}/helpers/eglsize.cpp
)
add_dependencies (egltrace glproc)
target_link_libraries (egltrace
glproc_egl
+ common_trace
common
${ZLIB_LIBRARIES}
${SNAPPY_LIBRARIES}