Merge pull request #956 from Flow-It/add-options-to-exclude-rootston-and-examples

Add options to exclude rootston and examples at compilation
This commit is contained in:
Drew DeVault 2018-05-05 07:24:39 -04:00 committed by GitHub
commit a3fd284876
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

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

View File

@ -4,3 +4,5 @@ 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-xwayland', type: 'boolean', value: true, description: 'Enable support X11 applications')
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-examples', type: 'boolean', value: true, description: 'Build example applications')