hook: Define EGL_NO_X11 when x11 is disabled

Change-Id: I89ac1474b96d3bb90f599469fdd4470529b3034d
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
This commit is contained in:
Jeffy Chen
2024-03-28 09:57:00 +08:00
parent 260227ee55
commit 2520ec750e

View File

@@ -53,6 +53,8 @@ if cc.has_function('eglCreateContext', dependencies : mali)
# Add hooks to init X11 threads
libhook_dep += dependency('x11')
libhook_cflags += '-DHAS_X11'
else
libhook_cflags += '-DEGL_NO_X11'
endif
endif