summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2017-04-16 19:47:24 +0800
committerruki <[email protected]>2017-04-16 19:47:24 +0800
commit057493ce4252bbbd3c52db87ec044e14ce565ed5 (patch)
tree4079e07e39993d588410e980cfe1dbd20ac30f0b
parente523e7fc34144794aa837ce1aab2a9ff966496ba (diff)
add and variables
-rw-r--r--xmake/core/project/project.lua2
-rw-r--r--xmake/core/project/task.lua2
2 files changed, 4 insertions, 0 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua
index c71df25db..e9ac7399e 100644
--- a/xmake/core/project/project.lua
+++ b/xmake/core/project/project.lua
@@ -303,6 +303,8 @@ function project._interpreter()
, configdir = config.directory()
, projectdir = project.directory()
, packagedir = package.directory()
+ , programdir = xmake._PROGRAM_DIR
+ , xmake = path.join(xmake._PROGRAM_DIR, "xmake")
}
-- map it
diff --git a/xmake/core/project/task.lua b/xmake/core/project/task.lua
index ed0150694..35c051ef9 100644
--- a/xmake/core/project/task.lua
+++ b/xmake/core/project/task.lua
@@ -202,6 +202,8 @@ function task._interpreter()
, configdir = config.directory()
, projectdir = xmake._PROJECT_DIR
, packagedir = package.directory()
+ , programdir = xmake._PROGRAM_DIR
+ , xmake = path.join(xmake._PROGRAM_DIR, "xmake")
}
-- map it