mirror of
https://github.com/holub/mame
synced 2025-04-19 15:11:37 +03:00
Added NO_STRIPPING option and enabled stripping of executable by default (nw)
This commit is contained in:
parent
f9462eb086
commit
073fd3f7d4
5
makefile
5
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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user