subdir('common')
-dri_drivers = []
-dri_link = []
+_dri_drivers = []
+_dri_link = []
if with_dri_swrast
subdir('swrast')
+ _dri_drivers += libswrast_dri
+ _dri_link += 'swrast_dri.so'
endif
if with_dri_i915
subdir('i915')
+ _dri_drivers += libi915
+ _dri_link += 'i915_dri.so'
endif
if with_dri_i965
subdir('i965')
+ _dri_drivers += libi965
+ _dri_link += 'i965_dri.so'
endif
if with_dri_r100
subdir('radeon')
+ _dri_drivers += libr100
+ _dri_link += 'radeon_dri.so'
endif
if with_dri_r200
subdir('r200')
+ _dri_drivers += libr200
+ _dri_link += 'r200_dri.so'
endif
if with_dri_nouveau
subdir('nouveau')
+ _dri_drivers += libnouveau_vieux
+ _dri_link += 'nouveau_vieux_dri.so'
endif
-if dri_drivers != []
+if _dri_drivers != []
libmesa_dri_drivers = shared_library(
'mesa_dri_drivers',
[],
- link_whole : dri_drivers,
+ link_whole : _dri_drivers,
link_with : [
libmegadriver_stub, libdricommon, libxmlconfig, libglapi, libmesa_util,
libmesa_classic,
join_paths(meson.source_root(), 'bin/install_megadrivers.py'),
libmesa_dri_drivers.full_path(),
dri_drivers_path,
- dri_link,
+ _dri_link,
)
endif
cpp_args : [cpp_vis_args],
dependencies : [dep_libdrm, dep_libdrm_nouveau],
)
-
-dri_drivers += libnouveau_vieux
-dri_link += 'nouveau_vieux_dri.so'
include_directories : [inc_common, inc_dri_common],
dependencies : dep_libdrm,
)
-
-dri_drivers += libswrast_dri
-dri_link += 'swrast_dri.so'