mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-06 01:40:52 -05:00
backend/drm: use pnp.ids to fetch EDID data
This commit is contained in:
parent
d75b4d8e86
commit
eec95e3d5e
8 changed files with 63 additions and 77 deletions
|
|
@ -1,3 +1,21 @@
|
|||
hwdata = dependency('hwdata', required: false, native: true)
|
||||
if hwdata.found()
|
||||
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',
|
||||
output: 'pnpids.c',
|
||||
input: pnp_ids,
|
||||
feed: true,
|
||||
capture: true,
|
||||
command: files('gen_pnpids.sh'),
|
||||
)
|
||||
wlr_files += pnpids_c
|
||||
|
||||
wlr_files += files(
|
||||
'atomic.c',
|
||||
'backend.c',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue