xcursor: use internal_config

Removes a project argument, improves escaping.
This commit is contained in:
Simon Ser 2022-11-25 18:07:09 +01:00 committed by Alexander Orzechowski
parent 4da9b32a15
commit 311381c6b5
2 changed files with 2 additions and 2 deletions

View File

@ -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',

View File

@ -28,6 +28,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "config.h"
#include "xcursor/xcursor.h"
/*