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