build: add -Ddeprecated=[true|false] to control deprecated symbols

Instead of using CFLAGS="-DMM_DISABLE_DEPRECATED" meson ...
which doesn't handle -Werror very well let's make it an explicit
option. Defaults to true, and autodetects previous CFLAGS
mechanism to preserve backwards compatibility.

Signed-off-by: Dan Williams <dan@ioncontrol.co>
This commit is contained in:
Dan Williams
2026-08-29 23:29:13 -05:00
parent 306f6256f8
commit abf9babb02
3 changed files with 29 additions and 2 deletions
+2
View File
@@ -17,6 +17,8 @@ option('systemd_journal', type: 'boolean', value: true, description: 'enable sys
option('polkit', type: 'combo', choices: ['strict', 'permissive', 'no'], value: 'strict', description: 'User auth-polkit configuration option.')
option('deprecated', type: 'boolean', value: true, description: 'build with deprecated symbols')
option('at_command_via_dbus', type: 'boolean', value: false, description: 'enable at commands via d-bus')
option('builtin_plugins', type: 'boolean', value: false, description: 'integrate all built plugins within the daemon binary')