Add meson options to modify Telemetry consts
Added 'min-interval', 'max-reading-parameters' and 'max-reports'
to meson_options to allow user to control Telemetry constant
values. Now user is able to adjust those values to platform.
Fixed checking maximal number of ReadingParameters in Report.
Synced type of properties with interface defined in
phosphor-dbus-interface.
Tested:
- Unit tests passes
Change-Id: Ie8c009931d9e5e22b30d7df82c81aaac8d68dd3e
Signed-off-by: Wludzik, Jozef <jozef.wludzik@intel.com>
diff --git a/meson.build b/meson.build
index 22e0cc3..160946f 100644
--- a/meson.build
+++ b/meson.build
@@ -68,6 +68,13 @@
)
endif
+add_project_arguments(
+ '-DTELEMETRY_MAX_REPORTS=' + get_option('max-reports').to_string(),
+ '-DTELEMETRY_MAX_READING_PARAMS=' + get_option('max-reading-parameters').to_string(),
+ '-DTELEMETRY_MIN_INTERVAL=' + get_option('min-interval').to_string(),
+ language: 'cpp'
+)
+
executable(
'telemetry',
[