From f426e2c681635ef93efa9986def0e5e42e859978 Mon Sep 17 00:00:00 2001 From: Gustavo Jose de Sousa Date: Thu, 30 Jun 2016 10:45:23 -0300 Subject: [PATCH] Replay: build: use separate library There are checks for APM_BUILD_Replay in the source code, so Replay tools needs a separate static library. --- Tools/Replay/wscript | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/Tools/Replay/wscript b/Tools/Replay/wscript index 82ed3bda77..520ff2aeea 100644 --- a/Tools/Replay/wscript +++ b/Tools/Replay/wscript @@ -7,7 +7,18 @@ def build(bld): if not isinstance(bld.get_board(), boards.linux): return - bld.ap_program( - use='ap', - program_groups='tools', + vehicle = bld.path.name + + bld.ap_stlib( + name=vehicle + '_libs', + vehicle=vehicle, + libraries=bld.ap_common_vehicle_libraries() + [ + 'AP_InertialNav', + ], + use='mavlink', + ) + + bld.ap_program( + program_groups='tools', + use=vehicle + '_libs', )