summaryrefslogtreecommitdiff
path: root/xmake
diff options
context:
space:
mode:
authorruki <[email protected]>2019-01-17 00:51:59 +0800
committerruki <[email protected]>2019-01-16 23:11:56 +0800
commit7d011ff2746b005f1346c66ab19aae1b9ba77d3f (patch)
tree0f906e5016ade13c54c9c9463237d24c0b5897ba /xmake
parent8aca38678b43b9fbf96964ae6fd104ea9e5000a3 (diff)
add add_headerdirs api
Diffstat (limited to 'xmake')
-rw-r--r--xmake/core/tool/builder.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/xmake/core/tool/builder.lua b/xmake/core/tool/builder.lua
index 69335a9e5..09daa029f 100644
--- a/xmake/core/tool/builder.lua
+++ b/xmake/core/tool/builder.lua
@@ -191,10 +191,16 @@ function builder:_inherit_from_targetdeps(results, target, flagname)
elseif flagname == "includedirs" then
- -- add dependent headerdir
+ -- TODO add dependent headerdir (deprecated)
if dep:get("headers") and os.isdir(dep:headerdir()) then
table.insert(results, dep:headerdir())
end
+
+ -- add dependent header directories
+ local headerdirs = dep:get("headerdirs")
+ if headerdirs then
+ table.join2(results, headerdirs)
+ end
-- add dependent configheader directory
local configheader = dep:configheader()