mirror of
https://github.com/wled/WLED.git
synced 2025-07-21 09:46:32 +00:00
Update usermod deps earlier
When processing usermods, update their include path properties before the LDF runs, so it can see through wled.h.
This commit is contained in:
parent
0b8721c25e
commit
270d75afe2
@ -33,7 +33,6 @@ if usermods:
|
|||||||
cpl = env.ConfigureProjectLibBuilder
|
cpl = env.ConfigureProjectLibBuilder
|
||||||
# Our new wrapper
|
# Our new wrapper
|
||||||
def cpl_wrapper(env):
|
def cpl_wrapper(env):
|
||||||
result = cpl.clone(env)()
|
|
||||||
# Update usermod properties
|
# Update usermod properties
|
||||||
lib_builders = env.GetLibBuilders()
|
lib_builders = env.GetLibBuilders()
|
||||||
um_deps = [dep for dep in lib_builders if usermod_dir in Path(dep.src_dir).parents]
|
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 = um._manifest.get("build", {})
|
||||||
build["libArchive"] = False
|
build["libArchive"] = False
|
||||||
um._manifest["build"] = build
|
um._manifest["build"] = build
|
||||||
return result
|
return cpl.clone(env)()
|
||||||
|
|
||||||
|
|
||||||
# Replace the old one with ours
|
# Replace the old one with ours
|
||||||
env.AddMethod(cpl_wrapper, "ConfigureProjectLibBuilder")
|
env.AddMethod(cpl_wrapper, "ConfigureProjectLibBuilder")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user