mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 03:45:58 +01:00
backend/drm: require hwdata pkg-config file
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.
This commit is contained in:
parent
abd9c8c3c1
commit
8df62e4016
1 changed files with 10 additions and 10 deletions
|
@ -1,19 +1,19 @@
|
||||||
if not features['session']
|
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()
|
subdir_done()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
hwdata = dependency('hwdata', required: false, native: true)
|
|
||||||
if hwdata.found()
|
|
||||||
hwdata_dir = hwdata.get_variable(pkgconfig: 'pkgdatadir')
|
hwdata_dir = hwdata.get_variable(pkgconfig: 'pkgdatadir')
|
||||||
pnp_ids = files(hwdata_dir / 'pnp.ids')
|
|
||||||
else
|
|
||||||
pnp_ids = files('/usr/share/hwdata/pnp.ids')
|
|
||||||
endif
|
|
||||||
|
|
||||||
pnpids_c = custom_target(
|
pnpids_c = custom_target(
|
||||||
'pnpids.c',
|
'pnpids.c',
|
||||||
output: 'pnpids.c',
|
output: 'pnpids.c',
|
||||||
input: pnp_ids,
|
input: files(hwdata_dir / 'pnp.ids'),
|
||||||
feed: true,
|
feed: true,
|
||||||
capture: true,
|
capture: true,
|
||||||
command: files('gen_pnpids.sh'),
|
command: files('gen_pnpids.sh'),
|
||||||
|
|
Loading…
Reference in a new issue