summaryrefslogtreecommitdiffstatshomepage
path: root/scripts
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-04-12 15:43:15 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-04-12 15:43:15 +0200
commitc833268236d712f5e07d2138e6df5b4ba26e114b (patch)
tree95801c6c3f4f6f1d3010919b9527ee2296d2cfa9 /scripts
parentca580178cbad3e317c1d888fc01730443e2d0afb (diff)
Added DEBUG_DIR and DEBUG_ARGS parameters, make sense right now for VS build (nw)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/genie.lua10
-rw-r--r--scripts/src/main.lua13
2 files changed, 21 insertions, 2 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua
index a3c59ca7462..90df0a55d76 100644
--- a/scripts/genie.lua
+++ b/scripts/genie.lua
@@ -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
diff --git a/scripts/src/main.lua b/scripts/src/main.lua
index 7d97eae1c1c..44e34207dd8 100644
--- a/scripts/src/main.lua
+++ b/scripts/src/main.lua
@@ -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