Added NO_STRIPPING option and enabled stripping of executable by default (nw)

This commit is contained in:
Miodrag Milanovic 2015-04-19 16:21:36 +02:00
parent f9462eb086
commit 073fd3f7d4
2 changed files with 18 additions and 3 deletions

View File

@ -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

View File

@ -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