+17
src/xrt/ipc/CMakeLists.txt
+17
src/xrt/ipc/CMakeLists.txt
···
28
28
)
29
29
endforeach()
30
30
31
+
# Generate IPC structures list in the build root
32
+
add_custom_command(
33
+
OUTPUT "${CMAKE_BINARY_DIR}/ipc-structs.txt"
34
+
COMMAND
35
+
${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/shared/proto.py
36
+
${CMAKE_CURRENT_SOURCE_DIR}/shared/proto.json
37
+
"${CMAKE_BINARY_DIR}/ipc-structs.txt"
38
+
VERBATIM
39
+
DEPENDS
40
+
${CMAKE_CURRENT_SOURCE_DIR}/shared/proto.py
41
+
${CMAKE_CURRENT_SOURCE_DIR}/shared/ipcproto/common.py
42
+
${CMAKE_CURRENT_SOURCE_DIR}/shared/proto.json
43
+
COMMENT "Generating ipc-structs.txt from protocol JSON description"
44
+
)
45
+
46
+
add_custom_target(ipc_structs_list ALL DEPENDS "${CMAKE_BINARY_DIR}/ipc-structs.txt")
47
+
31
48
set(IPC_COMMON_SOURCES
32
49
${CMAKE_CURRENT_BINARY_DIR}/ipc_protocol_generated.h
33
50
shared/ipc_message_channel.h