summaryrefslogtreecommitdiff
path: root/xmake/core/project/project.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-08-16 22:28:05 +0800
committerruki <[email protected]>2026-08-16 22:28:05 +0800
commitd7fc1e30a747c0457b4f45194946fcff747c76db (patch)
treebeb7b01b9f2f04e54169689023e8ad5e8fe3eff6 /xmake/core/project/project.lua
parent1678e141d274309ab56917f585a8fb036571541b (diff)
improve find addon includes
Diffstat (limited to 'xmake/core/project/project.lua')
-rw-r--r--xmake/core/project/project.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua
index f67ac9a67..b92c5cfab 100644
--- a/xmake/core/project/project.lua
+++ b/xmake/core/project/project.lua
@@ -860,6 +860,10 @@ function project.interpreter()
-- set root scope
interp:rootscope_set("target")
+ -- the project file can reference the includes files of the addons,
+ -- e.g. includes("@addon/esp32-devel/board")
+ interp:includes_resolver_add(addon.find_includes)
+
-- define apis for rule
interp:api_define(rule.apis())