kopia lustrzana https://github.com/Aircoookie/WLED
Update usermod deps earlier
When processing usermods, update their include path properties before the LDF runs, so it can see through wled.h.pull/4480/head
rodzic
0b8721c25e
commit
270d75afe2
|
@ -33,7 +33,6 @@ if usermods:
|
|||
cpl = env.ConfigureProjectLibBuilder
|
||||
# Our new wrapper
|
||||
def cpl_wrapper(env):
|
||||
result = cpl.clone(env)()
|
||||
# Update usermod properties
|
||||
lib_builders = env.GetLibBuilders()
|
||||
um_deps = [dep for dep in lib_builders if usermod_dir in Path(dep.src_dir).parents]
|
||||
|
@ -50,7 +49,8 @@ def cpl_wrapper(env):
|
|||
build = um._manifest.get("build", {})
|
||||
build["libArchive"] = False
|
||||
um._manifest["build"] = build
|
||||
return result
|
||||
return cpl.clone(env)()
|
||||
|
||||
|
||||
# Replace the old one with ours
|
||||
env.AddMethod(cpl_wrapper, "ConfigureProjectLibBuilder")
|
||||
|
|
Ładowanie…
Reference in New Issue