mirror of
https://github.com/holub/mame
synced 2025-06-29 23:48:56 +03:00
Implemented filtering of dependency files, only active if machine have awk or gawk installed (nw)
This commit is contained in:
parent
ee0fd53c28
commit
9c6fa77b47
@ -267,10 +267,35 @@ configuration { "Debug", "vs*" }
|
|||||||
|
|
||||||
configuration {}
|
configuration {}
|
||||||
|
|
||||||
--postcompiletasks {
|
local AWK = ""
|
||||||
-- "gawk -f ../../../../../scripts/depfilter.awk $(@:%.o=%.d) > $(@:%.o=%.dep)",
|
if (os.is("windows")) then
|
||||||
-- "mv $(@:%.o=%.dep) $(@:%.o=%.d)",
|
AWK_TEST = backtick("awk --version 2> NUL")
|
||||||
--}
|
if (AWK_TEST~='') then
|
||||||
|
AWK = "awk"
|
||||||
|
else
|
||||||
|
AWK_TEST = backtick("gawk --version 2> NUL")
|
||||||
|
if (AWK_TEST~='') then
|
||||||
|
AWK = "gawk"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
else
|
||||||
|
AWK_TEST = backtick("awk --version 2> /dev/null")
|
||||||
|
if (AWK_TEST~='') then
|
||||||
|
AWK = "awk"
|
||||||
|
else
|
||||||
|
AWK_TEST = backtick("gawk --version 2> /dev/null")
|
||||||
|
if (AWK_TEST~='') then
|
||||||
|
AWK = "gawk"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
if (AWK~='') then
|
||||||
|
postcompiletasks {
|
||||||
|
AWK .. " -f ../../../../../scripts/depfilter.awk $(@:%.o=%.d) > $(@:%.o=%.dep)",
|
||||||
|
"mv $(@:%.o=%.dep) $(@:%.o=%.d)",
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
msgcompile ("Compiling $(subst ../,,$<)...")
|
msgcompile ("Compiling $(subst ../,,$<)...")
|
||||||
|
|
||||||
|
@ -103,7 +103,6 @@ function osdmodulesbuild()
|
|||||||
|
|
||||||
local MOC = ""
|
local MOC = ""
|
||||||
if (os.is("windows")) then
|
if (os.is("windows")) then
|
||||||
print("windows")
|
|
||||||
MOC = "moc"
|
MOC = "moc"
|
||||||
else
|
else
|
||||||
MOCTST = backtick("which moc-qt4 2>/dev/null")
|
MOCTST = backtick("which moc-qt4 2>/dev/null")
|
||||||
|
Loading…
Reference in New Issue
Block a user