meson: add variable for including include/GL/internal
authorDylan Baker <dylan@pnwbakers.com>
Wed, 3 Jan 2018 20:37:34 +0000 (12:37 -0800)
committerDylan Baker <dylan@pnwbakers.com>
Thu, 11 Jan 2018 23:40:02 +0000 (15:40 -0800)
Signed-off-by: <dylan.c.baker@intel.com>
Acked-by: Eric Engestrom <eric.engestrom@imgtec.com>
include/meson.build
src/glx/meson.build
src/glx/tests/meson.build

index a2e7ce6580e9822cc2df9ba7577828a54ca779af..1cbc68182c736ffb6945c254ec51853b3c746a85 100644 (file)
@@ -21,6 +21,7 @@
 inc_drm_uapi = include_directories('drm-uapi')
 inc_vulkan = include_directories('vulkan')
 inc_d3d9 = include_directories('D3D9')
+inc_gl_internal = include_directories('GL/internal')
 
 if with_gles1
   install_headers(
index 7757eee352fba6fe171180ab7fae3fba4eabf560..04cd647ee494e1d7ea20fdd23c1a5951976b7948 100644 (file)
@@ -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],
index fe0075a69393c08426da4f802ba3caac395c80ab..fd9d4d433b2d4edf0febcf6e4ea26cc70c36f4e1 100644 (file)
@@ -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]
     )