mirror of
https://github.com/holub/mame
synced 2025-04-27 02:33:13 +03:00

If you want to build 64-bit and 32-bit in the same tree without them stomping on each other, use SEPARATE_BIN=1 (you already need to do this for TOOLS=1 anyway).
76 lines
1.5 KiB
Lua
76 lines
1.5 KiB
Lua
-- license:BSD-3-Clause
|
|
-- copyright-holders:MAMEdev Team
|
|
|
|
---------------------------------------------------------------------------
|
|
--
|
|
-- tests.lua
|
|
--
|
|
-- Rules for building tests
|
|
--
|
|
---------------------------------------------------------------------------
|
|
|
|
project("mametests")
|
|
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 { "Release" }
|
|
targetsuffix ""
|
|
if _OPTIONS["PROFILE"] then
|
|
targetsuffix "p"
|
|
end
|
|
|
|
configuration { "Debug" }
|
|
targetsuffix "d"
|
|
if _OPTIONS["PROFILE"] then
|
|
targetsuffix "dp"
|
|
end
|
|
|
|
configuration { "mingw*" or "vs*" }
|
|
targetextension ".exe"
|
|
|
|
configuration { "rpi" }
|
|
targetextension ""
|
|
|
|
|
|
configuration { }
|
|
|
|
links {
|
|
"utils",
|
|
ext_lib("expat"),
|
|
ext_lib("zlib"),
|
|
"ocore_" .. _OPTIONS["osd"],
|
|
}
|
|
|
|
includedirs {
|
|
MAME_DIR .. "3rdparty/catch/single_include",
|
|
MAME_DIR .. "src/osd",
|
|
MAME_DIR .. "src/emu",
|
|
MAME_DIR .. "src/lib/util",
|
|
ext_includedir("expat"),
|
|
ext_includedir("zlib"),
|
|
}
|
|
|
|
files {
|
|
MAME_DIR .. "src/emu/video/rgbsse.cpp",
|
|
MAME_DIR .. "src/emu/video/rgbsse.h",
|
|
MAME_DIR .. "src/emu/video/rgbvmx.cpp",
|
|
MAME_DIR .. "src/emu/video/rgbvmx.h",
|
|
}
|
|
|
|
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",
|
|
MAME_DIR .. "tests/emu/video/rgbutil.cpp",
|
|
}
|
|
|