-if with_gallium_vdpau
- subdir('state_trackers/vdpau')
-endif
-if with_gallium_xvmc
- subdir('state_trackers/xvmc')
-endif
-if with_gallium_omx
- subdir('state_trackers/omx_bellagio')
-endif
-if with_gallium_va
- subdir('state_trackers/va')
-endif
-if with_gallium_xa
- subdir('state_trackers/xa')
-endif
-if with_gallium_st_nine
- subdir('state_trackers/nine')
+if with_gallium_opencl
+ # TODO: this isn't really clover specific, but ATM clover is the only
+ # consumer
+ subdir('targets/pipe-loader')
+
+ if meson.version().version_compare('< 0.44.0')
+ error('OpenCL requires meson 0.44.0 or greater.')
+ endif
+ subdir('state_trackers/clover')
+ subdir('targets/opencl')