compositor: List only available backends in help text

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
dev
Bryce Harrington 11 years ago committed by Pekka Paalanen
parent 8eb95c495c
commit 32297c96d3
  1. 20
      src/compositor.c

@ -4490,9 +4490,25 @@ usage(int error_code)
"Core options:\n\n" "Core options:\n\n"
" --version\t\tPrint weston version\n" " --version\t\tPrint weston version\n"
" -B, --backend=MODULE\tBackend module, one of drm-backend.so,\n" " -B, --backend=MODULE\tBackend module, one of\n"
"\t\t\t\tfbdev-backend.so, x11-backend.so or\n" #if defined(BUILD_DRM_COMPOSITOR)
"\t\t\t\tdrm-backend.so\n"
#endif
#if defined(BUILD_FBDEV_COMPOSITOR)
"\t\t\t\tfbdev-backend.so"
#endif
#if defined(BUILD_X11_COMPOSITOR)
"\t\t\t\tx11-backend.so\n"
#endif
#if defined(BUILD_WAYLAND_COMPOSITOR)
"\t\t\t\twayland-backend.so\n" "\t\t\t\twayland-backend.so\n"
#endif
#if defined(BUILD_RDP_COMPOSITOR)
"\t\t\t\trdp-backend.so\n"
#endif
#if defined(BUILD_RPI_COMPOSITOR) && defined(HAVE_BCM_HOST)
"\t\t\t\trpi-backend.so\n"
#endif
" --shell=MODULE\tShell module, defaults to desktop-shell.so\n" " --shell=MODULE\tShell module, defaults to desktop-shell.so\n"
" -S, --socket=NAME\tName of socket to listen on\n" " -S, --socket=NAME\tName of socket to listen on\n"
" -i, --idle-time=SECS\tIdle time in seconds\n" " -i, --idle-time=SECS\tIdle time in seconds\n"

Loading…
Cancel
Save