summaryrefslogtreecommitdiffstats
path: root/premake5.lua
diff options
context:
space:
mode:
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/premake5.lua b/premake5.lua
index 11a0bbbd..6c26732c 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -172,10 +172,11 @@ workspace "reLCS"
filter {}
- function setpaths (gamepath, exepath)
+ function setpaths (gamepath, exepath, scriptspath)
+ scriptspath = scriptspath or ""
if (gamepath) then
postbuildcommands {
- '{COPYFILE} "%{cfg.buildtarget.abspath}" "' .. gamepath .. '%{cfg.buildtarget.name}"'
+ '{COPYFILE} "%{cfg.buildtarget.abspath}" "' .. gamepath .. scriptspath .. '%{cfg.buildtarget.name}"'
}
debugdir (gamepath)
if (exepath) then
@@ -185,6 +186,7 @@ workspace "reLCS"
debugdir (gamepath .. (dir or ""))
end
end
+ --targetdir ("bin/%{prj.name}/" .. scriptspath)
end
if(_OPTIONS["with-librw"]) then