mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
cmake: refactoring of channel options with macros
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
|
||||
set(CHANNEL_TYPE "device")
|
||||
set(CHANNEL_SHORT_NAME "parallel")
|
||||
set(CHANNEL_LONG_NAME "Parallel Port Virtual Channel Extension")
|
||||
set(CHANNEL_SPECIFICATIONS "[MS-RDPESP]")
|
||||
|
||||
string(TOUPPER "WITH_${CHANNEL_SHORT_NAME}" CHANNEL_OPTION)
|
||||
set(OPTION_DEFAULT ON)
|
||||
|
||||
if(WIN32)
|
||||
option(${CHANNEL_OPTION} "Build ${CHANNEL_SHORT_NAME}" OFF)
|
||||
else()
|
||||
option(${CHANNEL_OPTION} "Build ${CHANNEL_SHORT_NAME}" ON)
|
||||
set(OPTION_DEFAULT OFF)
|
||||
endif()
|
||||
|
||||
define_channel_options(NAME "parallel" TYPE "device"
|
||||
DESCRIPTION "Parallel Port Virtual Channel Extension"
|
||||
SPECIFICATIONS "[MS-RDPESP]"
|
||||
DEFAULT ${OPTION_DEFAULT})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user