mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
lib_build: exclude file from example
This commit is contained in:
parent
15249bb8d5
commit
df18dfb481
1 changed files with 5 additions and 0 deletions
|
|
@ -58,6 +58,11 @@ for item in menv.get("CPPDEFINES", []):
|
|||
example_name = item[1]
|
||||
src_filter.append(f"+<../examples/{example_name}>")
|
||||
|
||||
# EXCLUDE A SOURCE FILE FROM AN EXAMPLE (must be placed after example name or boom)
|
||||
elif isinstance(item, tuple) and item[0] == "EXCLUDE_FROM_EXAMPLE":
|
||||
exclude_name = item[1]
|
||||
src_filter.append(f"-<../examples/{example_name}/{exclude_name}>")
|
||||
|
||||
menv.Replace(SRC_FILTER=src_filter)
|
||||
|
||||
#print (menv.Dump())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue