diff --git a/channels/parallel/ChannelOptions.cmake b/channels/parallel/ChannelOptions.cmake index 42a866991..d3c70ec4f 100644 --- a/channels/parallel/ChannelOptions.cmake +++ b/channels/parallel/ChannelOptions.cmake @@ -6,11 +6,19 @@ set(OPTION_SERVER_DEFAULT OFF) if(WIN32) set(OPTION_CLIENT_DEFAULT OFF) set(OPTION_SERVER_DEFAULT OFF) + message("Serial redirection not supported on windows") +endif() + +if(APPLE) + set(OPTION_CLIENT_DEFAULT OFF) + set(OPTION_SERVER_DEFAULT OFF) + message("Serial redirection not supported on apple") endif() if(ANDROID) set(OPTION_CLIENT_DEFAULT OFF) set(OPTION_SERVER_DEFAULT OFF) + message("Serial redirection not supported on android") endif() define_channel_options(NAME "parallel" TYPE "device" diff --git a/client/common/cmdline.c b/client/common/cmdline.c index fa54d0456..bd057163a 100644 --- a/client/common/cmdline.c +++ b/client/common/cmdline.c @@ -626,9 +626,13 @@ BOOL freerdp_client_print_command_line_help_ex(int argc, char** argv, printf("Smartcard Redirection: /smartcard:\n"); printf("Smartcard logon with Kerberos authentication: /smartcard-logon /sec:nla\n"); +#if defined(CHANNEL_SERIAL_CLIENT) printf("Serial Port Redirection: /serial:,,[SerCx2|SerCx|Serial],[permissive]\n"); printf("Serial Port Redirection: /serial:COM1,/dev/ttyS0\n"); +#endif +#if defined(CHANNEL_PARALLEL_CLIENT) printf("Parallel Port Redirection: /parallel:,\n"); +#endif printf("Printer Redirection: /printer:,,[default]\n"); printf("TCP redirection: /rdp2tcp:/usr/bin/rdp2tcp\n"); printf("\n"); @@ -1090,6 +1094,7 @@ static int freerdp_client_command_line_post_filter_int(void* context, COMMAND_LI return fail_at(arg, status); } #endif +#if defined(CHANNEL_PARALLEL_CLIENT) CommandLineSwitchCase(arg, "parallel") { size_t count = 0; @@ -1100,6 +1105,7 @@ static int freerdp_client_command_line_post_filter_int(void* context, COMMAND_LI if (status) return fail_at(arg, status); } +#endif CommandLineSwitchCase(arg, "smartcard") { size_t count = 0; diff --git a/client/common/cmdline.h b/client/common/cmdline.h index 1d1fa1cbc..a3f963c73 100644 --- a/client/common/cmdline.h +++ b/client/common/cmdline.h @@ -355,8 +355,10 @@ static const COMMAND_LINE_ARGUMENT_A global_cmd_args[] = { { "old-license", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueFalse, NULL, -1, NULL, "Use the old license workflow (no CAL and hwId set to 0)" }, { "p", COMMAND_LINE_VALUE_REQUIRED, "", NULL, NULL, -1, NULL, "Password" }, +#if defined(CHANNEL_PARALLEL_CLIENT) { "parallel", COMMAND_LINE_VALUE_OPTIONAL, "[,]", NULL, NULL, -1, NULL, "Redirect parallel device" }, +#endif { "parent-window", COMMAND_LINE_VALUE_REQUIRED, "", NULL, NULL, -1, NULL, "Parent window id" }, { "pcb", COMMAND_LINE_VALUE_REQUIRED, "", NULL, NULL, -1, NULL, "Preconnection Blob" },