2017-12-27 13:37:55 +00:00
|
|
|
subdir('wlr')
|
2019-11-22 07:11:15 +00:00
|
|
|
|
|
|
|
exclude_files = ['meson.build', 'config.h.in', 'version.h.in']
|
2021-02-15 22:44:44 +00:00
|
|
|
if not features.get('x11-backend')
|
2019-11-22 07:11:15 +00:00
|
|
|
exclude_files += 'backend/x11.h'
|
|
|
|
endif
|
2021-02-15 22:44:44 +00:00
|
|
|
if not features.get('xwayland')
|
2019-11-22 07:11:15 +00:00
|
|
|
exclude_files += 'xwayland.h'
|
|
|
|
endif
|
2021-02-15 22:44:44 +00:00
|
|
|
if not features.get('xdg-foreign')
|
2021-01-05 19:18:38 +00:00
|
|
|
exclude_files += [
|
2021-02-04 19:44:14 +00:00
|
|
|
'types/wlr_xdg_foreign_v1.h',
|
|
|
|
'types/wlr_xdg_foreign_v2.h',
|
|
|
|
'types/wlr_xdg_foreign_registry.h',
|
2021-01-05 19:18:38 +00:00
|
|
|
]
|
|
|
|
endif
|
2019-11-22 07:11:15 +00:00
|
|
|
|
|
|
|
install_subdir('wlr',
|
|
|
|
install_dir: get_option('includedir'),
|
|
|
|
exclude_files: exclude_files,
|
|
|
|
)
|