wlroots-hyprland/backend/drm/meson.build

49 lines
877 B
Meson
Raw Normal View History

hwdata = dependency(
'hwdata',
required: 'drm' in backends,
native: true,
not_found_message: 'Required for the DRM backend.',
)
2022-08-18 19:17:33 +02:00
libliftoff = dependency(
'libliftoff',
version: '>=0.2.0',
fallback: 'libliftoff',
required: false,
)
if not (hwdata.found() and features['session'])
subdir_done()
endif
hwdata_dir = hwdata.get_variable(pkgconfig: 'pkgdatadir')
pnpids_c = custom_target(
'pnpids.c',
output: 'pnpids.c',
input: files(hwdata_dir / 'pnp.ids'),
feed: true,
capture: true,
command: files('gen_pnpids.sh'),
)
wlr_files += pnpids_c
wlr_files += files(
'atomic.c',
'backend.c',
'cvt.c',
'drm.c',
'legacy.c',
'monitor.c',
'properties.c',
'renderer.c',
'util.c',
)
2022-08-18 19:17:33 +02:00
if libliftoff.found()
wlr_files += files('libliftoff.c')
endif
features += { 'drm-backend': true }
2022-08-18 19:17:33 +02:00
internal_features += { 'libliftoff': libliftoff.found() }
wlr_deps += libliftoff