xcursor: also look for cursor themes under ${datadir}/icons by default

Same as dd8891be36
This commit is contained in:
Jan Beich 2020-03-04 02:38:04 +00:00 committed by Simon Ser
parent a3c699eee5
commit 8d2e8d8a06
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,10 @@
icondir = get_option('icon_directory')
if icondir == ''
icondir = join_paths(get_option('prefix'), get_option('datadir'), 'icons')
endif
add_project_arguments('-DICONDIR="@0@"'.format(icondir), language : 'c')
wlr_files += files(
'wlr_xcursor.c',
'xcursor.c',