first commit
This commit is contained in:
commit
5893b00dd2
1669 changed files with 1982740 additions and 0 deletions
21
libraries/M5UnitUnified/pio_project/custom_script.py
Normal file
21
libraries/M5UnitUnified/pio_project/custom_script.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# Remove compile target
|
||||
Import("env")
|
||||
|
||||
EXCLUDE_FILES = (env.GetProjectOption("custom_exclude_src_files") or []).split(' ')
|
||||
|
||||
|
||||
def skip_from_build(node):
|
||||
src_path = node.get_abspath()
|
||||
#filename = os.path.basename(src_path)
|
||||
|
||||
#print(EXCLUDE_FILES)
|
||||
#print('>>>> {}'.format(src_path))
|
||||
# for ef in EXCLUDE_FILES:
|
||||
# if 'I2C_Class.cpp' in src_path and 'I2C_Class.cpp' in ef:
|
||||
# print('>>>> {} {}'.format(src_path, ef))
|
||||
|
||||
if any(ef in src_path for ef in EXCLUDE_FILES):
|
||||
return None
|
||||
return node
|
||||
|
||||
env.AddBuildMiddleware(skip_from_build, "*.cpp")
|
||||
Loading…
Add table
Add a link
Reference in a new issue