From 13f137dde718a913750a6ec943fddf484a7186ea Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Mon, 6 Apr 2015 16:33:21 +0200 Subject: [PATCH] And one more (nw) --- makefile | 5 +++++ scripts/genie.lua | 18 ++++++++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/makefile b/makefile index 1a15fe4a9d7..190d4f2ae33 100644 --- a/makefile +++ b/makefile @@ -71,6 +71,7 @@ # SSE2 = 1 # OPENMP = 1 # CPP11 = 1 +# FASTDEBUG = 1 ########################################################################### ################## END USER-CONFIGURABLE OPTIONS ###################### @@ -477,6 +478,10 @@ ifdef CPP11 PARAMS += --CPP11='$(CPP11)' endif +ifdef FASTDEBUG +PARAMS += --FASTDEBUG='$(FASTDEBUG)' +endif + #------------------------------------------------- # All scripts #------------------------------------------------- diff --git a/scripts/genie.lua b/scripts/genie.lua index 057b78dc9d1..2134fed8018 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -244,6 +244,15 @@ newoption { } } +newoption { + trigger = "FASTDEBUG", + description = "Fast DEBUG.", + allowed = { + { "0", "Disabled" }, + { "1", "Enabled" }, + } +} + if not _OPTIONS["BIGENDIAN"] then _OPTIONS["BIGENDIAN"] = "0" end @@ -449,6 +458,11 @@ configuration { "Debug" } "MAME_DEBUG", "MAME_PROFILER", } +if _OPTIONS["FASTDEBUG"]=="1" then + defines { + "MAME_DEBUG_FAST" + } +end configuration { } @@ -557,10 +571,6 @@ end -- define USE_SYSTEM_JPEGLIB if library shipped with MAME is not used --ifneq ($(BUILD_JPEGLIB),1) --DEFS += -DUSE_SYSTEM_JPEGLIB ---endif - ---ifdef FASTDEBUG ---DEFS += -DMAME_DEBUG_FAST --endif --To support casting in Lua 5.3