From 311381c6b51eb7b4dbd8bcad41ef67aee6b4f5ed Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 25 Nov 2022 18:07:09 +0100 Subject: [PATCH] xcursor: use internal_config Removes a project argument, improves escaping. --- xcursor/meson.build | 3 +-- xcursor/xcursor.c | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xcursor/meson.build b/xcursor/meson.build index c9f59293..cf3718f7 100644 --- a/xcursor/meson.build +++ b/xcursor/meson.build @@ -2,8 +2,7 @@ icondir = get_option('icon_directory') if icondir == '' icondir = get_option('prefix') / get_option('datadir') / 'icons' endif - -add_project_arguments('-DICONDIR="@0@"'.format(icondir), language : 'c') +internal_config.set_quoted('ICONDIR', icondir) wlr_files += files( 'wlr_xcursor.c', diff --git a/xcursor/xcursor.c b/xcursor/xcursor.c index d9a942f8..c706e9a2 100644 --- a/xcursor/xcursor.c +++ b/xcursor/xcursor.c @@ -28,6 +28,7 @@ #include #include #include +#include "config.h" #include "xcursor/xcursor.h" /*