Browse Source

lib_build: include example code in build

pull/662/head
Florent 11 months ago
parent
commit
15249bb8d5
  1. 5
      build_as_lib.py

5
build_as_lib.py

@ -53,6 +53,11 @@ for item in menv.get("CPPDEFINES", []):
menv.Append(BUILD_FLAGS=[f"-I variants/{variant_name}"]) menv.Append(BUILD_FLAGS=[f"-I variants/{variant_name}"])
src_filter.append(f"+<../variants/{variant_name}>") src_filter.append(f"+<../variants/{variant_name}>")
# INCLUDE EXAMPLE CODE IN BUILD (to provide your own support files without touching the tree)
elif isinstance(item, tuple) and item[0] == "BUILD_EXAMPLE":
example_name = item[1]
src_filter.append(f"+<../examples/{example_name}>")
menv.Replace(SRC_FILTER=src_filter) menv.Replace(SRC_FILTER=src_filter)
#print (menv.Dump()) #print (menv.Dump())

Loading…
Cancel
Save