summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/extlib.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/extlib.lua')
-rw-r--r--scripts/extlib.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/extlib.lua b/scripts/extlib.lua
index 674f1b1d881..ad97ac220b8 100644
--- a/scripts/extlib.lua
+++ b/scripts/extlib.lua
@@ -6,6 +6,7 @@ local extlibs = {
-- 3rdparty system 3rdparty
-- lib name: lib name, include dir
--
+ asio = { "asio", "3rdparty/asio/include" },
expat = { "expat", "3rdparty/expat/lib" },
zlib = { "z", "3rdparty/zlib" },
jpeg = { "jpeg", "3rdparty/libjpeg" },
@@ -15,10 +16,17 @@ local extlibs = {
portaudio = { "portaudio", "3rdparty/portaudio/include" },
lua = { "lua", "3rdparty/lua/src" },
utf8proc = { "utf8proc", "3rdparty/utf8proc" },
+ glm = { "glm", "3rdparty/glm" },
+ rapidjson = { "rapidjson", "3rdparty/rapidjson/include" },
}
-- system lib options
newoption {
+ trigger = 'with-system-asio',
+ description = 'Use system Asio library',
+}
+
+newoption {
trigger = 'with-system-expat',
description = 'Use system Expat library',
}
@@ -63,6 +71,16 @@ newoption {
description = "Use system utf8proc library",
}
+newoption {
+ trigger = "with-system-glm",
+ description = "Use system glm library",
+}
+
+newoption {
+ trigger = "with-system-rapidjson",
+ description = "Use system rapidjson library",
+}
+
-- build helpers
function ext_lib(lib)
local opt = _OPTIONS["with-system-" .. lib]