aboutsummaryrefslogtreecommitdiffhomepage
path: root/meson.build
diff options
context:
space:
mode:
authorOliver Ni <[email protected]>2023-03-27 00:10:42 -0400
committerMihai Fufezan <[email protected]>2023-03-27 11:00:37 +0300
commite994b0c8b881de5145e583720abbd9ff27d727ac (patch)
tree09bac5b03982b0686665d512e857a5aec8c5bbe5 /meson.build
parent3343aac6bf6aa601cb882859edf63a6cb59bb774 (diff)
downloadHyprland-e994b0c8b881de5145e583720abbd9ff27d727ac.tar.gz
Hyprland-e994b0c8b881de5145e583720abbd9ff27d727ac.zip
Fix nix build options
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build8
1 files changed, 6 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index d9d06561..ce371ec3 100644
--- a/meson.build
+++ b/meson.build
@@ -59,14 +59,18 @@ endif
backtrace_dep = cpp_compiler.find_library('execinfo', required: false)
systemd_dep = dependency('libsystemd', required: get_option('systemd'))
-if get_option('systemd').enabled()
+if get_option('systemd').enabled()
if systemd_dep.found()
add_project_arguments('-DUSES_SYSTEMD', language: 'cpp')
- else
+ else
error('Cannot enable systemd in Hyprland: libsystemd was not found')
endif
endif
+if get_option('legacy_renderer').enabled()
+ add_project_arguments('-DLEGACY_RENDERER', language: 'cpp')
+endif
+
if get_option('buildtype') == 'debug'
add_project_arguments('-DHYPRLAND_DEBUG', language: 'cpp')
endif