Add option to disable rootston build

Compiling the rootston example compositor is useful for testing and
development, but less useful for actual users of wlroots, who might
prefer sway or other compositors.
This commit adds the option --enable-rootston to set weather to include
rootston at compilation or not. The default value is True, so the
current compilation behaviour remains unchanged.
This commit is contained in:
florian.weigelt 2018-05-05 09:40:02 +02:00
parent a5e70a2ac9
commit 34be87a3f6
2 changed files with 5 additions and 1 deletions

View file

@ -201,7 +201,10 @@ summary = [
message('\n'.join(summary)) message('\n'.join(summary))
if get_option('enable-rootston')
subdir('rootston') subdir('rootston')
endif
subdir('examples') subdir('examples')
pkgconfig = import('pkgconfig') pkgconfig = import('pkgconfig')

View file

@ -4,3 +4,4 @@ option('enable-elogind', type: 'combo', choices: ['auto', 'true', 'false'], valu
option('enable-xcb_errors', type: 'combo', choices: ['auto', 'true', 'false'], value: 'auto', description: 'Use xcb-errors util library') option('enable-xcb_errors', type: 'combo', choices: ['auto', 'true', 'false'], value: 'auto', description: 'Use xcb-errors util library')
option('enable-xwayland', type: 'boolean', value: true, description: 'Enable support X11 applications') option('enable-xwayland', type: 'boolean', value: true, description: 'Enable support X11 applications')
option('enable-x11_backend', type: 'boolean', value: true, description: 'Enable X11 backend') option('enable-x11_backend', type: 'boolean', value: true, description: 'Enable X11 backend')
option('enable-rootston', type: 'boolean', value: true, description: 'Build the rootston example compositor')