From 41292eee9567ee517aec42c3d414eacd7b4be802 Mon Sep 17 00:00:00 2001 From: /dev/urandom Date: Mon, 29 Aug 2016 07:36:41 +0200 Subject: [PATCH] Premake: Add "--disable-base128" to disable Base-128 encoding for minidump uploads. --- premake5.lua | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/premake5.lua b/premake5.lua index c05b6be6..b98c162d 100644 --- a/premake5.lua +++ b/premake5.lua @@ -57,6 +57,10 @@ newoption { trigger = "disable-bitmessage", description = "Disable use of BitMessage completely." } +newoption { + trigger = "disable-base128", + description = "Disable debugging messages for Nodes in Debug builds." +} newaction { trigger = "version", @@ -285,6 +289,9 @@ workspace "iw4x" "./src/Components/Modules/BitMessage.*", } end + if _OPTIONS["disable-base128"] then + defines { "DISABLE_BASE128" } + end -- Pre-compiled header pchheader "STDInclude.hpp" -- must be exactly same as used in #include directives @@ -295,7 +302,9 @@ workspace "iw4x" if not _OPTIONS["disable-bitmessage"] then bitmrc.import() end - base128.import() + if not _OPTIONS["disable-base128"] then + base128.import() + end fmt.import() json11.import() libtomcrypt.import() @@ -404,7 +413,9 @@ workspace "iw4x" libcryptopp.project() sqlite3.project() end - base128.project() + if not _OPTIONS["disable-base128"] then + base128.project() + end fmt.project() json11.project() libtomcrypt.project()