Disable channel builds if -DWITH_CHANNEL=OFF

This commit is contained in:
akallabeth 2022-10-13 14:16:32 +02:00 committed by akallabeth
parent b58dd122b2
commit 6a2626498b
2 changed files with 15 additions and 9 deletions

View File

@ -268,14 +268,16 @@ foreach(FILEPATH ${FILEPATHS})
endif() endif()
endforeach(FILEPATH) endforeach(FILEPATH)
if(WITH_CLIENT_CHANNELS) if (WITH_CHANNELS)
add_subdirectory(client) if(WITH_CLIENT_CHANNELS)
set(FREERDP_CHANNELS_CLIENT_SRCS ${FREERDP_CHANNELS_CLIENT_SRCS} PARENT_SCOPE) add_subdirectory(client)
set(FREERDP_CHANNELS_CLIENT_LIBS ${FREERDP_CHANNELS_CLIENT_LIBS} PARENT_SCOPE) set(FREERDP_CHANNELS_CLIENT_SRCS ${FREERDP_CHANNELS_CLIENT_SRCS} PARENT_SCOPE)
endif() set(FREERDP_CHANNELS_CLIENT_LIBS ${FREERDP_CHANNELS_CLIENT_LIBS} PARENT_SCOPE)
endif()
if(WITH_SERVER_CHANNELS) if(WITH_SERVER_CHANNELS)
add_subdirectory(server) add_subdirectory(server)
set(FREERDP_CHANNELS_SERVER_SRCS ${FREERDP_CHANNELS_SERVER_SRCS} PARENT_SCOPE) set(FREERDP_CHANNELS_SERVER_SRCS ${FREERDP_CHANNELS_SERVER_SRCS} PARENT_SCOPE)
set(FREERDP_CHANNELS_SERVER_LIBS ${FREERDP_CHANNELS_SERVER_LIBS} PARENT_SCOPE) set(FREERDP_CHANNELS_SERVER_LIBS ${FREERDP_CHANNELS_SERVER_LIBS} PARENT_SCOPE)
endif()
endif() endif()

View File

@ -50,6 +50,10 @@
#cmakedefine WITH_VAAPI #cmakedefine WITH_VAAPI
#cmakedefine WITH_CHANNELS
#cmakedefine WITH_CLIENT_CHANNELS
#cmakedefine WITH_SERVER_CHANNELS
#cmakedefine WITH_CHANNEL_GFXREDIR #cmakedefine WITH_CHANNEL_GFXREDIR
#cmakedefine WITH_CHANNEL_RDPAPPLIST #cmakedefine WITH_CHANNEL_RDPAPPLIST