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:
florian.weigelt 2018-05-05 09:50:10 +02:00
parent 34be87a3f6
commit d68a27fd79
2 changed files with 4 additions and 1 deletions

View file

@ -205,7 +205,9 @@ if get_option('enable-rootston')
subdir('rootston')
endif
subdir('examples')
if get_option('enable-examples')
subdir('examples')
endif
pkgconfig = import('pkgconfig')
pkgconfig.generate(