mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-03-30 19:15:49 +00:00
lib_build: exclude file from example
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user