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'
|
2022-11-26 19:22:07 +00:00
|
|
|
exclude_files += 'types/wlr_drm_lease_v1.h'
|
2021-08-25 07:40:46 +00:00
|
|
|
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'
|
|
|
|
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',
|
2024-03-17 17:24:35 +00:00
|
|
|
install_dir: get_option('includedir') / versioned_name,
|
2019-11-22 07:11:15 +00:00
|
|
|
exclude_files: exclude_files,
|
|
|
|
)
|
2022-11-25 16:36:24 +00:00
|
|
|
|
|
|
|
foreach name, have : internal_features
|
2022-11-25 17:15:31 +00:00
|
|
|
internal_config.set10('HAVE_' + name.underscorify().to_upper(), have)
|
2022-11-25 16:36:24 +00:00
|
|
|
endforeach
|
|
|
|
wlr_files += configure_file(
|
|
|
|
output: 'config.h',
|
|
|
|
configuration: internal_config,
|
|
|
|
)
|