Revert "[Submodules] Add DHT"

This commit is contained in:
momo5502 2018-10-09 10:55:48 +02:00
parent b2c94a7be3
commit f382f97253
4 changed files with 0 additions and 55 deletions

3
.gitmodules vendored
View File

@ -32,6 +32,3 @@
[submodule "deps/iw4mvm"]
path = deps/iw4mvm
url = ../../luckyy/IW4MVM_IW4X.git
[submodule "deps/dht"]
path = deps/dht
url = ../dht.git

1
deps/dht vendored

@ -1 +0,0 @@
Subproject commit 54ee76af630f56cb97646bc770b88bfb592fd328

View File

@ -1,44 +0,0 @@
dht = {
settings = nil
}
function dht.setup(settings)
if not settings.source then error("Missing source.") end
dht.settings = settings
if not dht.settings.defines then dht.settings.defines = {} end
end
function dht.import()
if not dht.settings then error("You need to call dht.setup first") end
links { "dht" }
dht.includes()
end
function dht.includes()
if not dht.settings then error("You need to call dht.setup first") end
includedirs { dht.settings.source }
defines(dht.settings.defines)
end
function dht.project()
if not dht.settings then error("You need to call dht.setup first") end
project "dht"
language "C"
dht.includes()
files
{
path.join(dht.settings.source, "dht.h"),
path.join(dht.settings.source, "dht.c"),
}
-- not our code, ignore POSIX usage warnings for now
warnings "Off"
kind "StaticLib"
end

View File

@ -182,7 +182,6 @@ require "premake/protobuf"
require "premake/zlib"
require "premake/udis86"
require "premake/iw4mvm"
require "premake/dht"
json11.setup
{
@ -237,10 +236,6 @@ iw4mvm.setup
},
source = path.join(depsBasePath, "iw4mvm"),
}
dht.setup
{
source = path.join(depsBasePath, "dht"),
}
workspace "iw4x"
location "./build"
@ -333,7 +328,6 @@ workspace "iw4x"
zlib.import()
udis86.import()
iw4mvm.import()
dht.import()
-- fix vpaths for protobuf sources
vpaths
@ -447,7 +441,6 @@ workspace "iw4x"
zlib.project()
udis86.project()
iw4mvm.project()
dht.project()
workspace "*"
buildoptions {