We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a82cf03 commit 0b3b20fCopy full SHA for 0b3b20f
1 file changed
premake/dll.lua
@@ -1,12 +1,14 @@
1
-newoption { trigger = "lua-dir", description = "", value = "PATH", default = "./lua" }
+LUA_DIR = "./lua"
2
+
3
+newoption { trigger = "lua-dir", description = "", value = "PATH" }
4
5
function GetParam(param)
6
return _OPTIONS[param] or os.getenv(string.upper(string.gsub(param,"-","_")))
7
end
8
-LUA_DIR=GetParam("lua-dir")
9
+LUA_DIR = GetParam("lua-dir") or LUA_DIR
10
if not os.isdir(LUA_DIR) then
- LUA_DIR="../lua"
11
+ LUA_DIR = "../lua"
12
13
14
workspace "ocgcoredll"
0 commit comments