Added DEBUG_DIR and DEBUG_ARGS parameters, make sense right now for VS build (nw)

This commit is contained in:
Miodrag Milanovic 2016-04-12 15:43:15 +02:00
parent ca580178cb
commit c833268236
3 changed files with 31 additions and 2 deletions

View File

@ -100,6 +100,9 @@
# IGNORE_BAD_LOCALISATION=1
# PRECOMPILE = 0
# DEBUG_DIR=c:\test\location
# DEBUG_ARGS= -window -video bgfx
ifdef PREFIX_MAKEFILE
include $(PREFIX_MAKEFILE)
else
@ -723,6 +726,13 @@ ifdef PRECOMPILE
PARAMS += --precompile='$(PRECOMPILE)'
endif
ifdef DEBUG_DIR
PARAMS += --DEBUG_DIR='$(DEBUG_DIR)'
endif
ifdef DEBUG_ARGS
PARAMS += --DEBUG_ARGS='$(DEBUG_ARGS)'
endif
#-------------------------------------------------
# All scripts
#-------------------------------------------------

View File

@ -376,6 +376,16 @@ newoption {
}
}
newoption {
trigger = "DEBUG_DIR",
description = "Default directory for debugger.",
}
newoption {
trigger = "DEBUG_ARGS",
description = "Arguments for running debug build.",
}
dofile ("extlib.lua")
if _OPTIONS["SHLIB"]=="1" then

View File

@ -342,6 +342,15 @@ end
configuration { }
debugdir (MAME_DIR)
debugargs ("-window")
if _OPTIONS["DEBUG_DIR"]~=nil then
debugdir (_OPTIONS["DEBUG_DIR"])
else
debugdir (MAME_DIR)
end
if _OPTIONS["DEBUG_ARGS"]~=nil then
debugargs (_OPTIONS["DEBUG_ARGS"])
else
debugargs ("-window")
end
end