blob: bd86fde72e50db1aa8091edad454350e08dae2fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
include(Lint.cmake)
include(FindProtobuf)
if (WIN32)
set (Protobuf_PROTOC_EXECUTABLE protoc)
else()
set (Protobuf_PROTOC_EXECUTABLE ${CMAKE_BINARY_DIR}/protoc)
set (PROTOBUF_PROTOC_EXECUTABLE ${CMAKE_BINARY_DIR}/protoc)
endif()
PROTOBUF_GENERATE_CPP(ProtoSources ProtoHeaders
playback.proto
)
include_directories (
${CMAKE_SOURCE_DIR}/retrace
${CMAKE_SOURCE_DIR}/lib/image
${CMAKE_BINARY_DIR}/dispatch
${CMAKE_SOURCE_DIR}/dispatch
${CMAKE_SOURCE_DIR}/common
${CMAKE_SOURCE_DIR}/helpers
${CMAKE_BINARY_DIR}/retrace/daemon
${CMAKE_SOURCE_DIR}/retrace/daemon/gldispatch
${CMAKE_SOURCE_DIR}/thirdparty/md5
)
set (RETRACE_LINUX_SOURCE
glframe_batch.cpp
glframe_gpu_speed_linux.cpp
glframe_os_linux.cpp
glframe_perf_enabled_linux.cpp
glframe_stderr.cpp
glframe_thread_linux.cpp
)
set (RETRACE_WIN_SOURCE
glframe_os_win.cpp
glframe_thread_win.cpp
glframe_win_shaders.cpp
)
if (WIN32)
set (RETRACE_OS_SOURCE ${RETRACE_WIN_SOURCE})
else()
set (RETRACE_OS_SOURCE ${RETRACE_LINUX_SOURCE})
endif()
set (RETRACE_SOURCES
${RETRACE_OS_SOURCE}
glframe_batch.hpp
glframe_gpu_speed.hpp
glframe_metrics.cpp
glframe_metrics.hpp
glframe_metrics_intel.cpp
glframe_metrics_intel.hpp
glframe_os.hpp
glframe_logger.cpp
glframe_logger.hpp
glframe_perf_enabled.hpp
glframe_retrace.cpp
glframe_retrace.hpp
glframe_retrace_context.cpp
glframe_retrace_context.hpp
glframe_retrace_interface.hpp
glframe_retrace_render.cpp
glframe_retrace_render.hpp
glframe_retrace_skeleton.cpp
glframe_retrace_skeleton.hpp
glframe_retrace_stub.cpp
glframe_retrace_stub.hpp
glframe_socket.hpp
glframe_socket.cpp
glframe_state.cpp
glframe_state.hpp
glframe_state_enums.cpp
glframe_state_enums.hpp
glframe_stderr.hpp
glframe_thread.hpp
glframe_traits.hpp
glframe_uniforms.cpp
glframe_uniforms.hpp
glretrace_globals.cpp
)
add_library(retrace_daemon STATIC
${ProtoHeaders}
${ProtoSources}
${RETRACE_SOURCES}
)
target_link_libraries(retrace_daemon
glretrace_common
retrace_gldispatch
libprotobuf
)
add_dependencies(retrace_daemon protoc)
if (NOT WIN32)
Lint( RETRACE_SOURCES )
endif()
add_subdirectory (framestat)
if (Qt5Widgets_FOUND)
add_subdirectory (ui)
add_subdirectory (bargraph)
endif ()
if (ENABLE_WAFFLE AND Qt5Widgets_FOUND)
add_subdirectory (test)
endif ()
add_subdirectory (server)
add_subdirectory (gldispatch)
|