meson: sort gallium drivers after winsys
authorDylan Baker <dylan@pnwbakers.com>
Wed, 15 Nov 2017 18:41:42 +0000 (10:41 -0800)
committerDylan Baker <dylan@pnwbakers.com>
Mon, 4 Dec 2017 22:35:31 +0000 (14:35 -0800)
This is a requirement of the next patch. Since meson does not have
forward declarations, and we're going to define the driver dependencies
in the drivers folder they need to be after the winsys so that the
winsys libs are defined first.

Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/gallium/meson.build

index be830f5f7d668ed24e75eac068dc054acd300b25..4aa108262047dbd741e970a2555be9d0da9fa906 100644 (file)
@@ -48,32 +48,32 @@ if with_gallium_r600
   subdir('drivers/r600')
 endif
 if with_gallium_radeonsi
+  subdir('winsys/amdgpu/drm')
   subdir('drivers/radeon')
   subdir('drivers/radeonsi')
-  subdir('winsys/amdgpu/drm')
 endif
 if with_gallium_nouveau
-  subdir('drivers/nouveau')
   subdir('winsys/nouveau/drm')
+  subdir('drivers/nouveau')
 endif
 if with_gallium_freedreno
-  subdir('drivers/freedreno')
   subdir('winsys/freedreno/drm')
+  subdir('drivers/freedreno')
 endif
 if with_gallium_pl111
   subdir('winsys/pl111/drm')
 endif
 if with_gallium_vc4
-  subdir('drivers/vc4')
   subdir('winsys/vc4/drm')
+  subdir('drivers/vc4')
 endif
 if with_gallium_vc5
-  subdir('drivers/vc5')
   subdir('winsys/vc5/drm')
+  subdir('drivers/vc5')
 endif
 if with_gallium_etnaviv
-  subdir('drivers/etnaviv')
   subdir('winsys/etnaviv/drm')
+  subdir('drivers/etnaviv')
 endif
 if with_gallium_imx
   subdir('winsys/imx/drm')
@@ -83,13 +83,13 @@ if with_gallium_i915
   subdir('drivers/i915')
 endif
 if with_gallium_svga
-  subdir('drivers/svga')
   subdir('winsys/svga/drm')
+  subdir('drivers/svga')
 endif
 if with_gallium_virgl
-  subdir('drivers/virgl')
   subdir('winsys/virgl/drm')
   subdir('winsys/virgl/vtest')
+  subdir('drivers/virgl')
 endif
 # TODO: SWR
 # TODO: clover