build: use allowed over enabled
Meson feature options are typically in a tri-state of enabled, disabled,
or auto. The enabled and disabled functions on an option (from
`get_option`) no longer return true for auto features. Instead, the
expectation is to use `allowed()` which is true for both enabled and auto.
Switch all uses of `enabled` to `allowed`.
Change-Id: I4db060ea85cfae7be96693ec04a09829767351a1
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/meson.build b/meson.build
index d4ee899..f2502a1 100644
--- a/meson.build
+++ b/meson.build
@@ -19,10 +19,10 @@
conf_data.set_quoted('LED_FAULT', 'fault')
conf_data.set('CLASS_VERSION', 1)
-conf_data.set('LED_USE_JSON', get_option('use-json').enabled())
-conf_data.set('USE_LAMP_TEST', get_option('use-lamp-test').enabled())
-conf_data.set('MONITOR_OPERATIONAL_STATUS', get_option('monitor-operational-status').enabled())
-conf_data.set('PERSISTENT_LED_ASSERTED', get_option('persistent-led-asserted').enabled())
+conf_data.set('LED_USE_JSON', get_option('use-json').allowed())
+conf_data.set('USE_LAMP_TEST', get_option('use-lamp-test').allowed())
+conf_data.set('MONITOR_OPERATIONAL_STATUS', get_option('monitor-operational-status').allowed())
+conf_data.set('PERSISTENT_LED_ASSERTED', get_option('persistent-led-asserted').allowed())
sdbusplus_dep = dependency('sdbusplus')
sdeventplus_dep = dependency('sdeventplus')