Commit 396c10bd authored by Alexander Richardson's avatar Alexander Richardson
Browse files

Add x11_headers dependency to all targets that use it



This fixes the build for me since I have libX11 installed to a custom
prefix, so the default include path does not include libX11. This fixes
lots of instances of the following error:
../../libglvnd/include/EGL/eglplatform.h:109:10: fatal error: 'X11/Xlib.h' file not found

Signed-off-by: Alexander Richardson's avatarAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
parent ef718bb1
Pipeline #415572 passed with stages
in 6 minutes and 7 seconds
......@@ -25,6 +25,7 @@ libegl_dispatch_stubs = static_library(
'egl_dispatch_stubs',
['egldispatchstubs.c', g_egldispatchstubs_c, g_egldispatchstubs_h],
include_directories : inc_include,
dependencies : [dep_x11_headers],
gnu_symbol_visibility : 'hidden',
)
......
......@@ -48,7 +48,7 @@ if get_option('egl')
c_args : ['-DDUMMY_VENDOR_NAME="dummy@0@"'.format(v)],
include_directories : [inc_include],
link_with: [libpatchentrypoints],
dependencies : [idep_glvnd_pthread],
dependencies : [idep_glvnd_pthread, dep_x11_headers],
version : '0',
)
endforeach
......
......@@ -200,7 +200,7 @@ if get_option('egl')
['test@0@.c'.format(t[0]), 'egl_test_utils.c'],
include_directories : [inc_include],
link_with : [libEGL, t[1]],
dependencies : [t[2]],
dependencies : [t[2], dep_x11_headers],
),
env : env_egl,
suite : ['egl'],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment