Previous 199869 Revisions Next

r36938 Saturday 4th April, 2015 at 17:57:12 UTC by Miodrag Milanović
Implemented filtering of dependency files, only active if machine have awk or gawk installed (nw)
[scripts]genie.lua
[scripts/src/osd]modules.lua

trunk/scripts/genie.lua
r245449r245450
267267
268268configuration {}
269269
270--postcompiletasks {
271--   "gawk -f ../../../../../scripts/depfilter.awk $(@:%.o=%.d) > $(@:%.o=%.dep)",
272--   "mv $(@:%.o=%.dep) $(@:%.o=%.d)",
273--}
270local AWK = ""
271if (os.is("windows")) then
272   AWK_TEST = backtick("awk --version 2> NUL")
273   if (AWK_TEST~='') then
274      AWK = "awk"
275   else
276      AWK_TEST = backtick("gawk --version 2> NUL")
277      if (AWK_TEST~='') then
278         AWK = "gawk"
279      end
280   end   
281else
282   AWK_TEST = backtick("awk --version 2> /dev/null")
283   if (AWK_TEST~='') then
284      AWK = "awk"
285   else
286      AWK_TEST = backtick("gawk --version 2> /dev/null")
287      if (AWK_TEST~='') then
288         AWK = "gawk"
289      end
290   end   
291end
274292
293if (AWK~='') then
294   postcompiletasks {
295      AWK .. " -f ../../../../../scripts/depfilter.awk $(@:%.o=%.d) > $(@:%.o=%.dep)",
296      "mv $(@:%.o=%.dep) $(@:%.o=%.d)",
297   }
298end
299
275300msgcompile ("Compiling $(subst ../,,$<)...")
276301
277302msgcompile_objc ("Objective-C compiling $(subst ../,,$<)...")
trunk/scripts/src/osd/modules.lua
r245449r245450
103103     
104104      local MOC = ""
105105      if (os.is("windows")) then
106         print("windows")
107106         MOC = "moc"
108107      else
109108         MOCTST = backtick("which moc-qt4 2>/dev/null")         


Previous 199869 Revisions Next


© 1997-2024 The MAME Team