mame/scripts/src/osd/mac_cfg.lua
Vas Crabb 5bce46bd75 Removed winpcap and cleaned up network module selection.
(nw) The pcap.h header itself has the problematic original BSD license,
including the obnoxious advertising clause.  Using tap/tun networking on
Windows provides a much better experience, so the extra setup is worth
it.  This patch also allows you to enable pcap on platforms where it's
disabled by default with USE_PCAP=1 if you really want to use it.
2020-03-05 21:23:21 +11:00

41 lines
596 B
Lua

-- license:BSD-3-Clause
-- copyright-holders:MAMEdev Team
dofile('modules.lua')
forcedincludes {
-- MAME_DIR .. "src/osd/sdl/sdlprefix.h"
}
if _OPTIONS["USE_TAPTUN"]=="1" or _OPTIONS["USE_PCAP"]==1 then
defines {
"USE_NETWORK",
}
if _OPTIONS["USE_TAPTUN"]=="1" then
defines {
"OSD_NET_USE_TAPTUN",
}
end
if _OPTIONS["USE_PCAP"]=="1" then
defines {
"OSD_NET_USE_PCAP",
}
end
end
defines {
"OSD_MAC",
"SDLMAME_UNIX",
"SDLMAME_MACOSX",
"SDLMAME_DARWIN"
}
configuration { "osx*" }
includedirs {
MAME_DIR .. "3rdparty/bx/include/compat/osx",
}
configuration { }