mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[channels,parallel] compilation checks
* Only compile channel related command line if enabled * Warn on unsupported platforms
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -626,9 +626,13 @@ BOOL freerdp_client_print_command_line_help_ex(int argc, char** argv,
|
||||
printf("Smartcard Redirection: /smartcard:<device>\n");
|
||||
printf("Smartcard logon with Kerberos authentication: /smartcard-logon /sec:nla\n");
|
||||
|
||||
#if defined(CHANNEL_SERIAL_CLIENT)
|
||||
printf("Serial Port Redirection: /serial:<name>,<device>,[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:<name>,<device>\n");
|
||||
#endif
|
||||
printf("Printer Redirection: /printer:<device>,<driver>,[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;
|
||||
|
||||
@@ -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, "<password>", NULL, NULL, -1, NULL, "Password" },
|
||||
#if defined(CHANNEL_PARALLEL_CLIENT)
|
||||
{ "parallel", COMMAND_LINE_VALUE_OPTIONAL, "<name>[,<path>]", NULL, NULL, -1, NULL,
|
||||
"Redirect parallel device" },
|
||||
#endif
|
||||
{ "parent-window", COMMAND_LINE_VALUE_REQUIRED, "<window-id>", NULL, NULL, -1, NULL,
|
||||
"Parent window id" },
|
||||
{ "pcb", COMMAND_LINE_VALUE_REQUIRED, "<blob>", NULL, NULL, -1, NULL, "Preconnection Blob" },
|
||||
|
||||
Reference in New Issue
Block a user