Skip to content

Commit 8188db9

Browse files
authored
Merge pull request #134 from kbrenneman/add-egl-dependency
Add an explicit dependency on the EGL headers.
2 parents f30cb0e + 4e53f15 commit 8188db9

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

Makefile.am

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ libnvidia_egl_wayland_la_CFLAGS = \
1212
# Required library flags
1313
libnvidia_egl_wayland_la_CFLAGS += \
1414
$(PTHREAD_CFLAGS) \
15+
$(EGL_CFLAGS) \
1516
$(EGL_EXTERNAL_PLATFORM_CFLAGS) \
1617
$(WAYLAND_CFLAGS) \
1718
$(LIBDRM_CFLAGS) \

configure.ac

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ AX_PTHREAD()
6666
AC_CHECK_LIB([dl], [dlsym],
6767
[],
6868
[AC_MSG_ERROR("dlsym is needed to compile wayland-egldisplay")])
69+
PKG_CHECK_MODULES([EGL_HEADERS], [egl >= 1.5 egl < 2])
6970
PKG_CHECK_MODULES([EGL_EXTERNAL_PLATFORM], [eglexternalplatform >= ${EGL_EXTERNAL_PLATFORM_MIN_VERSION} eglexternalplatform < ${EGL_EXTERNAL_PLATFORM_MAX_VERSION}])
7071
PKG_CHECK_MODULES([WAYLAND], [wayland-server wayland-client wayland-egl-backend >= 3])
7172
PKG_CHECK_MODULES([LIBDRM], [libdrm])

meson.build

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ wayland_eglstream_major_version = ver_arr[0]
1818
wayland_eglstream_minor_version = ver_arr[1]
1919
wayland_eglstream_micro_version = ver_arr[2]
2020

21+
egl = dependency('egl', version : ['>=1.5', '<2'])
22+
egl_headers = egl.partial_dependency(includes : true, compile_args : true)
2123
eglexternalplatform = dependency('eglexternalplatform', version : ['>=1.1', '<2'])
2224
wayland_server = dependency('wayland-server')
2325
wayland_client = dependency('wayland-client')

src/meson.build

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ src += code.process(wl_drm_syncobj_xml)
7373
egl_wayland = library('nvidia-egl-wayland',
7474
src,
7575
dependencies : [
76+
egl_headers,
7677
eglexternalplatform,
7778
wayland_server,
7879
wayland_client,

0 commit comments

Comments
 (0)