meson: Fix build for egl platform_x11 with dri3
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 7 May 2018 16:20:23 +0000 (19:20 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 11 May 2018 14:41:57 +0000 (17:41 +0300)
platform_x11 with dri3 needs inc_loader.

In file included from ../src/egl/drivers/dri2/platform_x11_dri3.c:35:0:
../src/egl/drivers/dri2/egl_dri2.h:41:32: fatal error: loader_dri3_helper.h: No such file or directory
In file included from ../src/egl/drivers/dri2/platform_x11.c:46:0:
../src/egl/drivers/dri2/egl_dri2.h:41:32: fatal error: loader_dri3_helper.h: No such file or directory
In file included from ../src/egl/drivers/dri2/egl_dri2.c:61:0:
../src/egl/drivers/dri2/egl_dri2.h:41:32: fatal error: loader_dri3_helper.h: No such file or directory

Cc: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
src/egl/meson.build

index 6537e4bdee61a49e5ae855c18584d472567553ee..9050d763a6cd9c4effe9e75b5511ff9113097892 100644 (file)
@@ -102,6 +102,7 @@ if with_platform_x11
   if with_dri3
     files_egl += files('drivers/dri2/platform_x11_dri3.c')
     link_for_egl += libloader_dri3_helper
+    incs_for_egl += inc_loader
   endif
   deps_for_egl += [dep_x11_xcb, dep_xcb_dri2, dep_xcb_xfixes]
 endif