From 75cde56e2c2a6d688f75e180e3eb122fbe4f49cc Mon Sep 17 00:00:00 2001 From: arookas Date: Fri, 12 Feb 2016 22:39:25 -0500 Subject: [PATCH] Added lib-dir premake option --- premake5.lua | 12 +++++++++++- readme.md | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/premake5.lua b/premake5.lua index 93b6242..f8253c0 100644 --- a/premake5.lua +++ b/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" diff --git a/readme.md b/readme.md index 92fcbea..9d7ea84 100644 --- a/readme.md +++ b/readme.md @@ -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.