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