2012-10-06 02:30:14 +04:00
|
|
|
|
2012-10-20 00:47:48 +04:00
|
|
|
set(OPTION_DEFAULT OFF)
|
|
|
|
set(OPTION_CLIENT_DEFAULT ON)
|
|
|
|
set(OPTION_SERVER_DEFAULT OFF)
|
2012-10-06 02:30:14 +04:00
|
|
|
|
|
|
|
if(WIN32)
|
2012-10-20 00:47:48 +04:00
|
|
|
set(OPTION_CLIENT_DEFAULT ON)
|
|
|
|
set(OPTION_SERVER_DEFAULT OFF)
|
2012-10-06 02:30:14 +04:00
|
|
|
else()
|
2023-08-24 10:08:44 +03:00
|
|
|
# cups is available on mac os and linux by default, on android it is optional.
|
|
|
|
if (NOT IOS AND NOT ANDROID)
|
|
|
|
set(CUPS_DEFAULT ON)
|
|
|
|
else()
|
|
|
|
set(CUPS_DEFAULT OFF)
|
|
|
|
endif()
|
|
|
|
option(WITH_CUPS "CUPS printer support" ${CUPS_DEFAULT})
|
|
|
|
if(WITH_CUPS)
|
|
|
|
set(OPTION_CLIENT_DEFAULT ON)
|
|
|
|
set(OPTION_SERVER_DEFAULT OFF)
|
|
|
|
else()
|
|
|
|
set(OPTION_CLIENT_DEFAULT OFF)
|
|
|
|
set(OPTION_SERVER_DEFAULT OFF)
|
|
|
|
endif()
|
2012-10-20 00:47:48 +04:00
|
|
|
endif()
|
|
|
|
|
2012-10-19 23:27:55 +04:00
|
|
|
define_channel_options(NAME "printer" TYPE "device"
|
|
|
|
DESCRIPTION "Print Virtual Channel Extension"
|
|
|
|
SPECIFICATIONS "[MS-RDPEPC]"
|
|
|
|
DEFAULT ${OPTION_DEFAULT})
|
|
|
|
|
2012-10-20 00:47:48 +04:00
|
|
|
define_channel_client_options(${OPTION_CLIENT_DEFAULT})
|
|
|
|
define_channel_server_options(${OPTION_SERVER_DEFAULT})
|
|
|
|
|