From cc35d05ec05209e6c453be96e16d32dcb15c3f1b Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Wed, 8 Apr 2015 08:52:02 +0200 Subject: added SEPARATE_BIN option to put executable files in bin folder and not in main (useful for continuous integration )(nw) --- scripts/src/main.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts/src/main.lua') diff --git a/scripts/src/main.lua b/scripts/src/main.lua index c73f3f450e6..10796c02bb7 100644 --- a/scripts/src/main.lua +++ b/scripts/src/main.lua @@ -26,6 +26,11 @@ function mainProject(_target, _subtarget) flags { "Unicode", } + + if _OPTIONS["SEPARATE_BIN"]~="1" then + targetdir(MAME_DIR) + end + configuration { "mingw*" or "vs*" } targetextension ".exe" @@ -33,7 +38,6 @@ function mainProject(_target, _subtarget) targetextension ".bc" configuration { } - targetdir(MAME_DIR) findfunction("linkProjects_" .. _OPTIONS["target"] .. "_" .. _OPTIONS["subtarget"])(_OPTIONS["target"], _OPTIONS["subtarget"]) links { -- cgit v1.2.3-70-g09d2