From 1eced78a076015441597cc400f0fb3a83ef7895f Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Sat, 22 Mar 2025 14:30:47 -0700 Subject: [PATCH] meson: Migrate epoxy probe to meson.build --- configure | 15 --------------- meson.build | 5 +++-- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/configure b/configure index c660bcfbe4..61a8f2bebb 100755 --- a/configure +++ b/configure @@ -1191,17 +1191,6 @@ EOF fi fi -########################################## -# epoxy probe - -if $pkg_config --libs --silence-errors epoxy > /dev/null 2>&1 ; then - epoxy_libs=$($pkg_config --libs --silence-errors epoxy) - epoxy_cflags=$($pkg_config --cflags --silence-errors epoxy) -else - error_exit "epoxy not present." \ - "Please install the epoxy devel package." -fi - ########################################## # detect rust triple @@ -1807,10 +1796,6 @@ if test "$default_targets" = "yes"; then echo "CONFIG_DEFAULT_TARGETS=y" >> $config_host_mak fi -# FIXME: Use meson -echo "EPOXY_CFLAGS=$epoxy_cflags" >> $config_host_mak -echo "EPOXY_LIBS=$epoxy_libs" >> $config_host_mak - # tests/tcg configuration mkdir -p tests/tcg echo "# Automatically generated by configure - do not modify" > tests/tcg/$config_host_mak diff --git a/meson.build b/meson.build index a819ef25ad..72e7049e02 100644 --- a/meson.build +++ b/meson.build @@ -1774,6 +1774,8 @@ if not get_option('coreaudio').auto() or (host_os == 'darwin' and have_system) required: get_option('coreaudio')) endif +epoxy = dependency('epoxy', required: true) + opengl = not_found if not get_option('opengl').auto() or have_system or have_vhost_user_gpu # FIXME: Use meson's 'gl' dep @@ -1787,8 +1789,7 @@ if not get_option('opengl').auto() or have_system or have_vhost_user_gpu error('Unknown GL platform') endif - opengl = declare_dependency(compile_args: config_host['EPOXY_CFLAGS'].split(), - link_args: config_host['EPOXY_LIBS'].split() + opengl_libs) + opengl = declare_dependency(link_args: opengl_libs, dependencies: epoxy) endif gbm = not_found