From 75c6c0f059c955f0fa8b5f99e30dc650f0503147 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 12 Nov 2016 14:54:21 +0100 Subject: Make executable for test follow rules for main file (nw) Make normal notation for require (nw) Split properly tests (nw) --- scripts/src/tests.lua | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) (limited to 'scripts/src') diff --git a/scripts/src/tests.lua b/scripts/src/tests.lua index 662f6ac0c20..7b4185f5005 100644 --- a/scripts/src/tests.lua +++ b/scripts/src/tests.lua @@ -21,6 +21,49 @@ project("mametests") targetdir(MAME_DIR) end + configuration { "x64", "Release" } + targetsuffix "64" + if _OPTIONS["PROFILE"] then + targetsuffix "64p" + end + + configuration { "x64", "Debug" } + targetsuffix "64d" + if _OPTIONS["PROFILE"] then + targetsuffix "64dp" + end + + configuration { "x32", "Release" } + targetsuffix "" + if _OPTIONS["PROFILE"] then + targetsuffix "p" + end + + configuration { "x32", "Debug" } + targetsuffix "d" + if _OPTIONS["PROFILE"] then + targetsuffix "dp" + end + + configuration { "Native", "Release" } + targetsuffix "" + if _OPTIONS["PROFILE"] then + targetsuffix "p" + end + + configuration { "Native", "Debug" } + targetsuffix "d" + if _OPTIONS["PROFILE"] then + targetsuffix "dp" + end + + configuration { "mingw*" or "vs*" } + targetextension ".exe" + + configuration { "rpi" } + targetextension "" + + configuration { } links { @@ -42,6 +85,7 @@ project("mametests") files { MAME_DIR .. "tests/main.cpp", MAME_DIR .. "tests/lib/util/corestr.cpp", + MAME_DIR .. "tests/lib/util/options.cpp", MAME_DIR .. "tests/emu/attotime.cpp", } -- cgit v1.2.3-70-g09d2