lib_build: exclude file from example

This commit is contained in:
Florent
2025-08-25 18:34:50 +02:00
parent 15249bb8d5
commit df18dfb481

View File

@@ -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())