Added lib-dir premake option
This commit is contained in:
parent
faeac9bb4e
commit
75cde56e2c
2 changed files with 12 additions and 1 deletions
12
premake5.lua
12
premake5.lua
|
@ -1,14 +1,24 @@
|
||||||
-- options
|
-- options
|
||||||
|
newoption {
|
||||||
|
trigger = "lib-dir",
|
||||||
|
description = "Sets the path for the dependencies",
|
||||||
|
value = "PATH"
|
||||||
|
}
|
||||||
|
|
||||||
newoption {
|
newoption {
|
||||||
trigger = "clean-symbols",
|
trigger = "clean-symbols",
|
||||||
description = "Cleans up the symbol table from unused symbols"
|
description = "Cleans up the symbol table from unused symbols"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if not _OPTIONS["lib-dir"] then
|
||||||
|
_OPTIONS["lib-dir"] = "lib"
|
||||||
|
end
|
||||||
|
|
||||||
-- main workspace
|
-- main workspace
|
||||||
workspace "ssc"
|
workspace "ssc"
|
||||||
configurations { "Debug", "Release" }
|
configurations { "Debug", "Release" }
|
||||||
targetdir "bin/%{cfg.buildcfg}"
|
targetdir "bin/%{cfg.buildcfg}"
|
||||||
libdirs { "lib" }
|
libdirs { _OPTIONS["lib-dir"] }
|
||||||
|
|
||||||
startproject "frontend"
|
startproject "frontend"
|
||||||
|
|
||||||
|
|
|
@ -52,6 +52,7 @@ There are also compile-time options which are able to be configured via the prem
|
||||||
|
|
||||||
|Option|Description|
|
|Option|Description|
|
||||||
|------|-----------|
|
|------|-----------|
|
||||||
|
|lib-dir|Sets the path to the dependencies. Defaults to the _lib/_ folder.|
|
||||||
|clean-symbols|Cleans symbol table of unused symbols.|
|
|clean-symbols|Cleans symbol table of unused symbols.|
|
||||||
|
|
||||||
_**Note:** A Java runtime compatible with JDK 1.5 is required for generating the Grammatica parser classes during compilation.
|
_**Note:** A Java runtime compatible with JDK 1.5 is required for generating the Grammatica parser classes during compilation.
|
||||||
|
|
Loading…
Reference in a new issue