add support for replaying log messages
For example, this allows reproducing logged but hard to physically
reproduce problems to control loops with more logging to help debug the
problem, and then verifying that it does something different under the
same conditions.
Change-Id: I1e55e7a7c0b3154bcaf86373a9e6c57c594310a0
diff --git a/aos/common/controls/controls.gyp b/aos/common/controls/controls.gyp
index e24a121..4e0bc79 100644
--- a/aos/common/controls/controls.gyp
+++ b/aos/common/controls/controls.gyp
@@ -1,6 +1,27 @@
{
'targets': [
{
+ 'target_name': 'replay_control_loop',
+ 'type': 'static_library',
+ 'sources': [
+ #'replay_control_loop.h',
+ ],
+ 'dependencies': [
+ '<(AOS)/common/common.gyp:queues',
+ 'control_loop',
+ '<(AOS)/linux_code/logging/logging.gyp:log_replay',
+ '<(AOS)/common/logging/logging.gyp:queue_logging',
+ '<(AOS)/common/common.gyp:time',
+ ],
+ 'export_dependent_settings': [
+ '<(AOS)/common/common.gyp:queues',
+ 'control_loop',
+ '<(AOS)/linux_code/logging/logging.gyp:log_replay',
+ '<(AOS)/common/logging/logging.gyp:queue_logging',
+ '<(AOS)/common/common.gyp:time',
+ ],
+ },
+ {
'target_name': 'control_loop_test',
'type': 'static_library',
'sources': [