summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/rule.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-29 15:21:41 +0800
committerruki <[email protected]>2015-06-29 15:21:41 +0800
commitac86a19928d72a69a1ddd4802479393c717352e4 (patch)
tree9391f03ed6c6d11bbe62af0a2b96d8e42bd6295d /xmake/scripts/base/rule.lua
parentb61940ce9d77a09d86c0e45cf32255f2dd91bc78 (diff)
add xmake.lua for package library
Diffstat (limited to 'xmake/scripts/base/rule.lua')
-rw-r--r--xmake/scripts/base/rule.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/scripts/base/rule.lua b/xmake/scripts/base/rule.lua
index bafc054bc..cff18ed16 100644
--- a/xmake/scripts/base/rule.lua
+++ b/xmake/scripts/base/rule.lua
@@ -203,7 +203,7 @@ function rule.sourcefiles(target)
end
-- get the header files from the given target
-function rule.headerfiles(target)
+function rule.headerfiles(target, headerdir)
-- check
assert(target)
@@ -213,7 +213,7 @@ function rule.headerfiles(target)
if not headers then return end
-- get the headerdir
- local headerdir = target.headerdir or config.get("buildir")
+ if not headerdir then headerdir = target.headerdir or config.get("buildir") end
assert(headerdir)
-- get the source pathes and destinate pathes