From 8d7299d05252bea05e406371b004c386878d38bf Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Wed, 11 Nov 2020 16:06:50 +0000 Subject: [PATCH] Tools: ardupilotwaf: ap_library.py: allow vehicle in build/ --- Tools/ardupilotwaf/ap_library.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Tools/ardupilotwaf/ap_library.py b/Tools/ardupilotwaf/ap_library.py index f4ca52eeb9..77461dc17d 100644 --- a/Tools/ardupilotwaf/ap_library.py +++ b/Tools/ardupilotwaf/ap_library.py @@ -64,8 +64,13 @@ def _depends_on_vehicle(bld, source_node): if not bld.env.BUILDROOT: bld.env.BUILDROOT = bld.bldnode.make_node('').abspath() - if path.startswith(bld.env.BUILDROOT) or path.startswith("build/") or path.startswith("build.tmp.binaries/"): + if path.startswith(bld.env.BUILDROOT) or path.startswith("build.tmp.binaries/"): _depends_on_vehicle_cache[path] = False + if path.startswith("build/"): + # allow vehicle dependend #if in cpp generated in build/ + # only scripting bindings currently + _depends_on_vehicle_cache[path] = True + if path not in _depends_on_vehicle_cache: s = _remove_comments(source_node.read())