@ -1,19 +1,19 @@
if not features [ 'session' ]
hwdata = dependency (
subdir_done ( )
'hwdata' ,
endif
required : 'drm' in backends ,
native : true ,
not_found_message : 'Required for the DRM backend.' ,
)
hwdata = dependency ( 'hwdata' , required : false , native : true )
if not ( hwdata . found ( ) and features [ 'session' ] )
if hwdata . found ( )
subdir_done ( )
hwdata_dir = hwdata . get_variable ( pkgconfig : 'pkgdatadir' )
pnp_ids = files ( hwdata_dir / 'pnp.ids' )
else
pnp_ids = files ( '/usr/share/hwdata/pnp.ids' )
endif
endif
hwdata_dir = hwdata . get_variable ( pkgconfig : 'pkgdatadir' )
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' ) ,