summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/rule.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2015-06-25 15:59:53 +0800
committerruki <[email protected]>2015-06-25 15:59:53 +0800
commit8f45b7c5b9e62f3ac2cc8782d4de1bff3ed31008 (patch)
treeb0d60cff07630412756bf5e401c61aff1db6e4b4 /xmake/scripts/base/rule.lua
parent8d46305db1819357868d3c71a61d98856aa0fa5a (diff)
load and make configure for package
Diffstat (limited to 'xmake/scripts/base/rule.lua')
-rw-r--r--xmake/scripts/base/rule.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/xmake/scripts/base/rule.lua b/xmake/scripts/base/rule.lua
index 59885d1b4..5dc4e5d53 100644
--- a/xmake/scripts/base/rule.lua
+++ b/xmake/scripts/base/rule.lua
@@ -56,21 +56,21 @@ function rule.filename(name, kind)
end
-- get configure file for the given target
-function rule.configfile(target)
+function rule.config_h(target)
-- get the target configure file
- local configfile = target.configfile
- if configfile then
+ local config_h = target.config_h
+ if config_h then
-- translate file path
- if not path.is_absolute(configfile) then
- configfile = path.absolute(configfile, xmake._PROJECT_DIR)
+ if not path.is_absolute(config_h) then
+ config_h = path.absolute(config_h, xmake._PROJECT_DIR)
else
- configfile = path.translate(configfile)
+ config_h = path.translate(config_h)
end
end
-- ok?
- return configfile
+ return config_h
end
-- get target file for the given target