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
|
||||
newoption {
|
||||
trigger = "lib-dir",
|
||||
description = "Sets the path for the dependencies",
|
||||
value = "PATH"
|
||||
}
|
||||
|
||||
newoption {
|
||||
trigger = "clean-symbols",
|
||||
description = "Cleans up the symbol table from unused symbols"
|
||||
}
|
||||
|
||||
if not _OPTIONS["lib-dir"] then
|
||||
_OPTIONS["lib-dir"] = "lib"
|
||||
end
|
||||
|
||||
-- main workspace
|
||||
workspace "ssc"
|
||||
configurations { "Debug", "Release" }
|
||||
targetdir "bin/%{cfg.buildcfg}"
|
||||
libdirs { "lib" }
|
||||
libdirs { _OPTIONS["lib-dir"] }
|
||||
|
||||
startproject "frontend"
|
||||
|
||||
|
|
|
@ -52,6 +52,7 @@ There are also compile-time options which are able to be configured via the prem
|
|||
|
||||
|Option|Description|
|
||||
|------|-----------|
|
||||
|lib-dir|Sets the path to the dependencies. Defaults to the _lib/_ folder.|
|
||||
|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.
|
||||
|
|
Loading…
Reference in a new issue