From 073fd3f7d41580b08729f0a009066b149c535e54 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sun, 19 Apr 2015 16:21:36 +0200 Subject: [PATCH] Added NO_STRIPPING option and enabled stripping of executable by default (nw) --- makefile | 5 +++++ scripts/genie.lua | 16 +++++++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/makefile b/makefile index 2e6c5d9f89d..46211bae89b 100644 --- a/makefile +++ b/makefile @@ -77,6 +77,7 @@ # SEPARATE_BIN = 1 # PYTHON_EXECUTABLE = python3 # SHADOW_CHECK = 1 +# NO_STRIPPING = 1 # QT_HOME = /usr/lib64/qt48/ @@ -538,6 +539,10 @@ ifdef SHADOW_CHECK PARAMS += --SHADOW_CHECK='$(SHADOW_CHECK)' endif +ifdef NO_STRIPPING +PARAMS += --NO_STRIPPING='$(NO_STRIPPING)' +endif + ifdef QT_HOME PARAMS += --QT_HOME='$(QT_HOME)' endif diff --git a/scripts/genie.lua b/scripts/genie.lua index 597dca93f26..019b4486c0c 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -287,6 +287,15 @@ newoption { } } +newoption { + trigger = "NO_STRIPPING", + description = "Stripping.", + allowed = { + { "0", "Enabled" }, + { "1", "Disabled" }, + } +} + PYTHON = "python" @@ -1139,11 +1148,12 @@ else end mainProject(_OPTIONS["target"],_OPTIONS["subtarget"]) +if (_OPTIONS["NO_STRIPPING"]~="1") then + strip() +end + if _OPTIONS["with-tools"] then group "tools" dofile(path.join("src", "tools.lua")) end -if (_ACTION == "gmake" and _OPTIONS["gcc"]=='asmjs') then - strip() -end