Added FILTER_DEPS option for post compile filtering (nw)

This commit is contained in:
Miodrag Milanovic 2015-04-07 13:23:31 +02:00
parent 3991971c86
commit 209734925f
2 changed files with 21 additions and 5 deletions

View File

@ -73,6 +73,8 @@
# CPP11 = 1
# FASTDEBUG = 1
# FILTER_DEPS = 1
###########################################################################
################## END USER-CONFIGURABLE OPTIONS ######################
###########################################################################
@ -482,6 +484,11 @@ ifdef FASTDEBUG
PARAMS += --FASTDEBUG='$(FASTDEBUG)'
endif
ifdef FILTER_DEPS
PARAMS += --FILTER_DEPS='$(FILTER_DEPS)'
endif
#-------------------------------------------------
# All scripts
#-------------------------------------------------

View File

@ -254,6 +254,15 @@ newoption {
}
}
newoption {
trigger = "FILTER_DEPS",
description = "Filter dependency files.",
allowed = {
{ "0", "Disabled" },
{ "1", "Enabled" },
}
}
if not _OPTIONS["BIGENDIAN"] then
_OPTIONS["BIGENDIAN"] = "0"
end
@ -350,11 +359,11 @@ else
end
end
if (AWK~='') then
-- postcompiletasks {
-- AWK .. " -f ../../../../../scripts/depfilter.awk $(@:%.o=%.d) > $(@:%.o=%.dep)",
-- "mv $(@:%.o=%.dep) $(@:%.o=%.d)",
-- }
if (_OPTIONS["FILTER_DEPS"]=="1") and (AWK~='') then
postcompiletasks {
AWK .. " -f ../../../../../scripts/depfilter.awk $(@:%.o=%.d) > $(@:%.o=%.dep)",
"mv $(@:%.o=%.dep) $(@:%.o=%.d)",
}
end
msgcompile ("Compiling $(subst ../,,$<)...")