mirror of
https://github.com/holub/mame
synced 2025-06-29 23:48:56 +03:00

(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.
41 lines
596 B
Lua
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 { }
|
|
|