sTodo-m5paper-client/libraries/M5Unit-ENV/custom_script.py
2025-06-30 20:47:33 +02:00

12 lines
291 B
Python

Import("env")
EXCLUDE_FILES = (env.GetProjectOption("custom_exclude_src_files") or []).split(' ')
print(EXCLUDE_FILES)
def skip_from_build(node):
np = node.get_path()
if any(ef in np for ef in EXCLUDE_FILES):
return None
return node
env.AddBuildMiddleware(skip_from_build, "*")