- # pull in driver directory which should assign to each of the above
- subdir(drv_path)
-
- # skip disabled drivers. For meson 0.49 change this to use
- # "in" keyword
- foreach disable_path: disabled_drivers
- if drv_path == disable_path
- build = false
- reason = 'Explicitly disabled via build config'
- endif
- endforeach
+ if disabled_drivers.contains(drv_path)
+ build = false
+ reason = 'Explicitly disabled via build config'
+ else
+ # pull in driver directory which should update all the local variables
+ subdir(drv_path)
+ endif
+