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-08-25 09:40:46 +02:00
|
|
|
if not features.get('drm-backend')
|
|
|
|
exclude_files += 'backend/drm.h'
|
2022-11-26 20:22:07 +01:00
|
|
|
exclude_files += 'types/wlr_drm_lease_v1.h'
|
2021-08-25 09:40:46 +02:00
|
|
|
endif
|
|
|
|
if not features.get('libinput-backend')
|
|
|
|
exclude_files += 'backend/libinput.h'
|
|
|
|
endif
|
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-04-09 04:48:01 +02:00
|
|
|
if not features.get('gles2-renderer')
|
|
|
|
exclude_files += ['render/egl.h', 'render/gles2.h']
|
|
|
|
endif
|
2021-02-21 18:30:12 +01:00
|
|
|
if not features.get('vulkan-renderer')
|
|
|
|
exclude_files += 'render/vulkan.h'
|
|
|
|
endif
|
2022-11-23 16:04:43 +01:00
|
|
|
if not features.get('session')
|
|
|
|
exclude_files += 'backend/session.h'
|
|
|
|
endif
|
2019-11-22 08:11:15 +01:00
|
|
|
|
|
|
|
install_subdir('wlr',
|
|
|
|
install_dir: get_option('includedir'),
|
|
|
|
exclude_files: exclude_files,
|
|
|
|
)
|