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]),
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],
[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]
)