mame/scripts/src/tests.lua

50 lines
860 B
Lua

-- license:BSD-3-Clause
-- copyright-holders:MAMEdev Team
---------------------------------------------------------------------------
--
-- tests.lua
--
-- Rules for building tests
--
---------------------------------------------------------------------------
project("tests")
uuid ("66d4c639-196b-4065-a411-7ee9266564f5")
kind "ConsoleApp"
flags {
"Symbols", -- always include minimum symbols for executables
}
if _OPTIONS["SEPARATE_BIN"]~="1" then
targetdir(MAME_DIR)
end
configuration { "gmake" }
buildoptions {
"-Wno-undef",
}
configuration { }
links {
"gtest",
"utils",
"expat",
"zlib",
"ocore_" .. _OPTIONS["osd"],
}
includedirs {
MAME_DIR .. "3rdparty/googletest/googletest/include",
MAME_DIR .. "src/osd",
MAME_DIR .. "src/lib/util",
}
files {
MAME_DIR .. "tests/main.cpp",
MAME_DIR .. "tests/lib/util/corestr.cpp",
}