include_directories (${X11_INCLUDE_DIR})
add_definitions (-DHAVE_X11)
endif ()
-
- if (ENABLE_EGL)
- add_definitions (-DHAVE_EGL)
- endif ()
endif ()
add_custom_command (
OUTPUT d3d10trace.cpp
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/d3d10trace.py > ${CMAKE_CURRENT_BINARY_DIR}/d3d10trace.cpp
- DEPENDS d3d10trace.py trace.py specs/d3d10misc.py specs/d3d10.py specs/dxgi.py specs/dxgitype.py specs/dxgiformat.py specs/winapi.py specs/stdapi.py
+ DEPENDS d3d10trace.py trace.py specs/d3d10misc.py specs/d3d10.py specs/d3d10sdklayers.py specs/dxgi.py specs/dxgitype.py specs/dxgiformat.py specs/winapi.py specs/stdapi.py
)
add_library (d3d10 MODULE specs/d3d10.def d3d10trace.cpp)
target_link_libraries (d3d10
add_dependencies (egltrace glproc)
- set_property (
- TARGET egltrace
- APPEND
- PROPERTY COMPILE_DEFINITIONS "TRACE_EGL"
- )
-
set_target_properties (egltrace PROPERTIES
# avoid the default "lib" prefix
PREFIX ""
DEPENDS glstate_params.py specs/glparams.py specs/gltypes.py specs/stdapi.py
)
-set (retrace_sources
+add_library (retrace_common
glretrace_gl.cpp
glretrace_cgl.cpp
glretrace_glx.cpp
glretrace_egl.cpp
glretrace_main.cpp
glstate.cpp
+ glstate_images.cpp
glstate_params.cpp
glstate_shaders.cpp
retrace.cpp
glws.cpp
)
+set_property (
+ TARGET retrace_common
+ APPEND
+ PROPERTY COMPILE_DEFINITIONS "RETRACE"
+)
+
if (WIN32 OR APPLE OR X11_FOUND)
add_executable (glretrace
- ${retrace_sources}
${glws_os}
glproc_gl.cpp
)
)
target_link_libraries (glretrace
+ retrace_common
common
${PNG_LIBRARIES}
${ZLIB_LIBRARIES}
if (ENABLE_EGL AND X11_FOUND AND NOT WIN32 AND NOT APPLE)
add_executable (eglretrace
- ${retrace_sources}
glws_egl_xlib.cpp
glproc_egl.cpp
)
TARGET eglretrace
APPEND
PROPERTY COMPILE_DEFINITIONS "RETRACE"
- PROPERTY COMPILE_DEFINITIONS "TRACE_EGL"
)
target_link_libraries (eglretrace
+ retrace_common
common
${PNG_LIBRARIES}
${ZLIB_LIBRARIES}