mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
8df62e4016
The hardcoded fallback "/usr/share/hwdata/pnp.ids" was only a temporary solution to get things working while distributions were still working on shipping it.
35 lines
624 B
Meson
35 lines
624 B
Meson
hwdata = dependency(
|
|
'hwdata',
|
|
required: 'drm' in backends,
|
|
native: true,
|
|
not_found_message: 'Required for the DRM backend.',
|
|
)
|
|
|
|
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',
|
|
)
|
|
|
|
features += { 'drm-backend': true }
|