mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 16:42:26 +00:00
Add option to disable examples build
Compiling the examples is useful for testing and development, but less useful for actual users of wlroots. This commit adds the option --enable-examples to set weather to include the examples at compilation or not. The default value is True, so the current behaviour remains unchanged.
This commit is contained in:
parent
34be87a3f6
commit
d68a27fd79
@ -205,7 +205,9 @@ if get_option('enable-rootston')
|
|||||||
subdir('rootston')
|
subdir('rootston')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
subdir('examples')
|
if get_option('enable-examples')
|
||||||
|
subdir('examples')
|
||||||
|
endif
|
||||||
|
|
||||||
pkgconfig = import('pkgconfig')
|
pkgconfig = import('pkgconfig')
|
||||||
pkgconfig.generate(
|
pkgconfig.generate(
|
||||||
|
@ -5,3 +5,4 @@ option('enable-xcb_errors', type: 'combo', choices: ['auto', 'true', 'false'], v
|
|||||||
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')
|
option('enable-rootston', type: 'boolean', value: true, description: 'Build the rootston example compositor')
|
||||||
|
option('enable-examples', type: 'boolean', value: true, description: 'Build example applications')
|
||||||
|
Loading…
Reference in New Issue
Block a user