mirror of
https://github.com/holub/mame
synced 2025-06-03 19:36:26 +03:00
Added DEBUG_DIR and DEBUG_ARGS parameters, make sense right now for VS build (nw)
This commit is contained in:
parent
ca580178cb
commit
c833268236
10
makefile
10
makefile
@ -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
|
||||
#-------------------------------------------------
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user