glapi: fix check_table test for non-shared glapi with meson
authorDylan Baker <dylan@pnwbakers.com>
Mon, 20 Nov 2017 22:55:13 +0000 (14:55 -0800)
committerDylan Baker <dylan@pnwbakers.com>
Tue, 6 Feb 2018 23:00:17 +0000 (15:00 -0800)
v2: - Add glapitable_h generated source to requirements

Fixes: 3218056e0eb3 ("meson: Build i965 and dri stack")
Signed-off-by: Dylan Baker <dylan.c.baker@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> (v1)
Reviewed-by: Emil Velikov <emil.velikov@collabora.com> (v1)
src/mapi/glapi/meson.build

index 267cfe7e7be0a4c5434da0fe6b8bd1ea47769d7b..e241d9ed388bca229a24626828f627f96b485a95 100644 (file)
@@ -82,9 +82,10 @@ if not with_shared_glapi and with_tests
     'glapi_static_check_table',
     executable(
       'glapi_static_check_table',
-      'tests/check_table.cpp',
+      ['tests/check_table.cpp', glapitable_h],
+      include_directories : [inc_include, inc_src, inc_mesa, inc_mapi],
       link_with : [libglapi_static],
-      dependencies : [idep_gtest],
+      dependencies : [idep_gtest, dep_thread],
     )
   )
 endif