aboutsummaryrefslogtreecommitdiff
path: root/xcursor
diff options
context:
space:
mode:
Diffstat (limited to 'xcursor')
-rw-r--r--xcursor/meson.build7
1 files changed, 7 insertions, 0 deletions
diff --git a/xcursor/meson.build b/xcursor/meson.build
index a85051e9..a167137a 100644
--- a/xcursor/meson.build
+++ b/xcursor/meson.build
@@ -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',