mirror of
https://github.com/holub/mame
synced 2025-06-06 21:03:47 +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
|
# IGNORE_BAD_LOCALISATION=1
|
||||||
# PRECOMPILE = 0
|
# PRECOMPILE = 0
|
||||||
|
|
||||||
|
# DEBUG_DIR=c:\test\location
|
||||||
|
# DEBUG_ARGS= -window -video bgfx
|
||||||
|
|
||||||
ifdef PREFIX_MAKEFILE
|
ifdef PREFIX_MAKEFILE
|
||||||
include $(PREFIX_MAKEFILE)
|
include $(PREFIX_MAKEFILE)
|
||||||
else
|
else
|
||||||
@ -723,6 +726,13 @@ ifdef PRECOMPILE
|
|||||||
PARAMS += --precompile='$(PRECOMPILE)'
|
PARAMS += --precompile='$(PRECOMPILE)'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef DEBUG_DIR
|
||||||
|
PARAMS += --DEBUG_DIR='$(DEBUG_DIR)'
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifdef DEBUG_ARGS
|
||||||
|
PARAMS += --DEBUG_ARGS='$(DEBUG_ARGS)'
|
||||||
|
endif
|
||||||
#-------------------------------------------------
|
#-------------------------------------------------
|
||||||
# All scripts
|
# 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")
|
dofile ("extlib.lua")
|
||||||
|
|
||||||
if _OPTIONS["SHLIB"]=="1" then
|
if _OPTIONS["SHLIB"]=="1" then
|
||||||
|
@ -342,6 +342,15 @@ end
|
|||||||
|
|
||||||
configuration { }
|
configuration { }
|
||||||
|
|
||||||
debugdir (MAME_DIR)
|
if _OPTIONS["DEBUG_DIR"]~=nil then
|
||||||
debugargs ("-window")
|
debugdir (_OPTIONS["DEBUG_DIR"])
|
||||||
|
else
|
||||||
|
debugdir (MAME_DIR)
|
||||||
|
end
|
||||||
|
if _OPTIONS["DEBUG_ARGS"]~=nil then
|
||||||
|
debugargs (_OPTIONS["DEBUG_ARGS"])
|
||||||
|
else
|
||||||
|
debugargs ("-window")
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user