Browse Source

Tools: ardupilotwaf: ap_library.py: allow vehicle in build/

c415-sdk
Iampete1 4 years ago committed by Andrew Tridgell
parent
commit
8d7299d052
  1. 7
      Tools/ardupilotwaf/ap_library.py

7
Tools/ardupilotwaf/ap_library.py

@ -64,8 +64,13 @@ def _depends_on_vehicle(bld, source_node): @@ -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())

Loading…
Cancel
Save