From aca3b647bedd581c6d0b428f9f5d58a65048f869 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 3 Jan 2018 12:37:34 -0800 Subject: meson: add variable for including include/GL/internal Signed-off-by: Acked-by: Eric Engestrom --- src/glx/meson.build | 10 ++-------- src/glx/tests/meson.build | 4 ++-- 2 files changed, 4 insertions(+), 10 deletions(-) (limited to 'src/glx') diff --git a/src/glx/meson.build b/src/glx/meson.build index 7757eee352f..04cd647ee49 100644 --- a/src/glx/meson.build +++ b/src/glx/meson.build @@ -138,10 +138,7 @@ endif libglx = static_library( 'glx', [files_libglx, glx_generated], - include_directories : [ - inc_common, inc_glapi, inc_loader, - include_directories('../../include/GL/internal'), - ], + include_directories : [inc_common, inc_glapi, inc_loader, inc_gl_internal], c_args : [ c_vis_args, gl_lib_cargs, '-DGL_LIB_NAME="lib@0@.so.@1@"'.format(gl_lib_name, gl_lib_version.split('.')[0]), @@ -165,10 +162,7 @@ if with_glx == 'dri' libgl = shared_library( gl_lib_name, dummy_c, # workaround for bug #2180 - include_directories : [ - inc_common, inc_glapi, inc_loader, - include_directories('../../include/GL/internal'), - ], + include_directories : [inc_common, inc_glapi, inc_loader, inc_gl_internal], link_with : [libglapi_static, libglapi], link_whole : libglx, link_args : [ld_args_bsymbolic, ld_args_gc_sections, extra_ld_args_libgl], diff --git a/src/glx/tests/meson.build b/src/glx/tests/meson.build index fe0075a6939..fd9d4d433b2 100644 --- a/src/glx/tests/meson.build +++ b/src/glx/tests/meson.build @@ -40,8 +40,8 @@ if with_shared_glapi [files_glx_test, glx_indirect_size_h, main_dispatch_h], link_with : [libglx, libglapi], include_directories : [ - include_directories('..', '../../../include/GL/internal'), - inc_src, inc_include, inc_mesa, inc_mapi, + inc_src, inc_include, inc_mesa, inc_mapi, inc_gl_internal, + include_directories('..'), ], dependencies : [dep_libdrm, dep_thread, idep_gtest] ) -- cgit v1.2.3