mirror of
https://github.com/holub/mame
synced 2025-06-14 16:37:00 +03:00
Restore DONT_USE_NETWORK
This commit is contained in:
parent
d7d3818ea6
commit
b64e4ecee5
4
makefile
4
makefile
@ -302,6 +302,10 @@ endif
|
|||||||
endif
|
endif
|
||||||
PARAMS += --USE_QT=$(USE_QT)
|
PARAMS += --USE_QT=$(USE_QT)
|
||||||
|
|
||||||
|
ifdef DONT_USE_NETWORK
|
||||||
|
PARAMS += --DONT_USE_NETWORK='$(DONT_USE_NETWORK)'
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef NO_OPENGL
|
ifdef NO_OPENGL
|
||||||
PARAMS += --NO_OPENGL='$(NO_OPENGL)'
|
PARAMS += --NO_OPENGL='$(NO_OPENGL)'
|
||||||
endif
|
endif
|
||||||
|
@ -191,6 +191,11 @@ newoption {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
newoption {
|
||||||
|
trigger = "DONT_USE_NETWORK",
|
||||||
|
description = "Disable network access",
|
||||||
|
}
|
||||||
|
|
||||||
local os_version = str_to_version(_OPTIONS["os_version"])
|
local os_version = str_to_version(_OPTIONS["os_version"])
|
||||||
|
|
||||||
USE_BGFX = 1
|
USE_BGFX = 1
|
||||||
|
@ -268,10 +268,14 @@ end
|
|||||||
BASE_TARGETOS = "unix"
|
BASE_TARGETOS = "unix"
|
||||||
SDLOS_TARGETOS = "unix"
|
SDLOS_TARGETOS = "unix"
|
||||||
SYNC_IMPLEMENTATION = "tc"
|
SYNC_IMPLEMENTATION = "tc"
|
||||||
if _OPTIONS["targetos"]=="openbsd" then
|
SDL_NETWORK = ""
|
||||||
|
if _OPTIONS["targetos"]=="linux" then
|
||||||
|
SDL_NETWORK = "taptun"
|
||||||
|
elseif _OPTIONS["targetos"]=="openbsd" then
|
||||||
SYNC_IMPLEMENTATION = "ntc"
|
SYNC_IMPLEMENTATION = "ntc"
|
||||||
elseif _OPTIONS["targetos"]=="netbsd" then
|
elseif _OPTIONS["targetos"]=="netbsd" then
|
||||||
SYNC_IMPLEMENTATION = "ntc"
|
SYNC_IMPLEMENTATION = "ntc"
|
||||||
|
SDL_NETWORK = "pcap"
|
||||||
elseif _OPTIONS["targetos"]=="haiku" then
|
elseif _OPTIONS["targetos"]=="haiku" then
|
||||||
SYNC_IMPLEMENTATION = "ntc"
|
SYNC_IMPLEMENTATION = "ntc"
|
||||||
elseif _OPTIONS["targetos"]=="emscripten" then
|
elseif _OPTIONS["targetos"]=="emscripten" then
|
||||||
@ -280,9 +284,11 @@ elseif _OPTIONS["targetos"]=="windows" then
|
|||||||
BASE_TARGETOS = "win32"
|
BASE_TARGETOS = "win32"
|
||||||
SDLOS_TARGETOS = "win32"
|
SDLOS_TARGETOS = "win32"
|
||||||
SYNC_IMPLEMENTATION = "windows"
|
SYNC_IMPLEMENTATION = "windows"
|
||||||
|
SDL_NETWORK = "pcap"
|
||||||
elseif _OPTIONS["targetos"]=="macosx" then
|
elseif _OPTIONS["targetos"]=="macosx" then
|
||||||
SDLOS_TARGETOS = "macosx"
|
SDLOS_TARGETOS = "macosx"
|
||||||
SYNC_IMPLEMENTATION = "ntc"
|
SYNC_IMPLEMENTATION = "ntc"
|
||||||
|
SDL_NETWORK = "pcap"
|
||||||
elseif _OPTIONS["targetos"]=="os2" then
|
elseif _OPTIONS["targetos"]=="os2" then
|
||||||
BASE_TARGETOS = "os2"
|
BASE_TARGETOS = "os2"
|
||||||
SDLOS_TARGETOS = "os2"
|
SDLOS_TARGETOS = "os2"
|
||||||
|
@ -2,6 +2,12 @@ forcedincludes {
|
|||||||
MAME_DIR .. "src/osd/sdl/sdlprefix.h"
|
MAME_DIR .. "src/osd/sdl/sdlprefix.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if SDL_NETWORK~="" and not _OPTIONS["DONT_USE_NETWORK"] then
|
||||||
|
defines {
|
||||||
|
"SDLMAME_NET_" .. string.upper(SDL_NETWORK),
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
if _OPTIONS["NO_OPENGL"]=="1" then
|
if _OPTIONS["NO_OPENGL"]=="1" then
|
||||||
defines {
|
defines {
|
||||||
"USE_OPENGL=0",
|
"USE_OPENGL=0",
|
||||||
@ -119,7 +125,6 @@ if _OPTIONS["targetos"]=="windows" then
|
|||||||
"UNICODE",
|
"UNICODE",
|
||||||
"_UNICODE",
|
"_UNICODE",
|
||||||
"USE_QTDEBUG=" .. USE_QT,
|
"USE_QTDEBUG=" .. USE_QT,
|
||||||
"SDLMAME_NET_PCAP",
|
|
||||||
"main=utf8_main",
|
"main=utf8_main",
|
||||||
}
|
}
|
||||||
configuration { "mingw*" }
|
configuration { "mingw*" }
|
||||||
@ -138,7 +143,6 @@ if _OPTIONS["targetos"]=="windows" then
|
|||||||
elseif _OPTIONS["targetos"]=="linux" then
|
elseif _OPTIONS["targetos"]=="linux" then
|
||||||
defines {
|
defines {
|
||||||
"USE_QTDEBUG=" .. USE_QT,
|
"USE_QTDEBUG=" .. USE_QT,
|
||||||
"SDLMAME_NET_TAPTUN",
|
|
||||||
}
|
}
|
||||||
buildoptions {
|
buildoptions {
|
||||||
'$(shell pkg-config --cflags QtGui)',
|
'$(shell pkg-config --cflags QtGui)',
|
||||||
@ -148,7 +152,6 @@ elseif _OPTIONS["targetos"]=="macosx" then
|
|||||||
"SDLMAME_MACOSX",
|
"SDLMAME_MACOSX",
|
||||||
"SDLMAME_DARWIN",
|
"SDLMAME_DARWIN",
|
||||||
"USE_QTDEBUG=0",
|
"USE_QTDEBUG=0",
|
||||||
"SDLMAME_NET_PCAP",
|
|
||||||
}
|
}
|
||||||
elseif _OPTIONS["targetos"]=="freebsd" then
|
elseif _OPTIONS["targetos"]=="freebsd" then
|
||||||
buildoptions {
|
buildoptions {
|
||||||
|
@ -7,7 +7,12 @@ defines {
|
|||||||
"USE_OPENGL=1",
|
"USE_OPENGL=1",
|
||||||
"USE_DISPATCH_GL=1",
|
"USE_DISPATCH_GL=1",
|
||||||
"DIRECTINPUT_VERSION=0x0800",
|
"DIRECTINPUT_VERSION=0x0800",
|
||||||
"SDLMAME_NET_PCAP",
|
|
||||||
"main=utf8_main",
|
"main=utf8_main",
|
||||||
"_WIN32_WINNT=0x0501",
|
"_WIN32_WINNT=0x0501",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if not _OPTIONS["DONT_USE_NETWORK"] then
|
||||||
|
defines {
|
||||||
|
"SDLMAME_NET_PCAP",
|
||||||
|
}
|
||||||
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user