This commit is contained in:
momo5502 2019-11-30 23:37:34 +01:00
parent ca908fdf0b
commit 2546d92b92
3 changed files with 47 additions and 0 deletions

3
.gitmodules vendored
View File

@ -30,3 +30,6 @@
path = deps/ChaiScript path = deps/ChaiScript
url = https://github.com/ChaiScript/ChaiScript.git url = https://github.com/ChaiScript/ChaiScript.git
branch = master branch = master
[submodule "deps/zstd"]
path = deps/zstd
url = https://github.com/facebook/zstd.git

43
deps/premake/zstd.lua vendored Normal file
View File

@ -0,0 +1,43 @@
zstd = {
source = path.join(dependencies.basePath, "zstd"),
}
function zstd.import()
links { "zstd" }
zstd.includes()
end
function zstd.includes()
includedirs {
path.join(zstd.source, "lib"),
path.join(zstd.source, "lib/common"),
--path.join(zstd.source, "zlibWrapper")
}
end
function zstd.project()
project "zstd"
language "C"
zstd.includes()
files {
path.join(zstd.source, "lib/**.h"),
path.join(zstd.source, "lib/**.c"),
--path.join(zstd.source, "zlibWrapper/zstd_zlibwrapper.h"),
--path.join(zstd.source, "zlibWrapper/zstd_zlibwrapper.c"),
}
removefiles {
path.join(zstd.source, "lib/legacy/**.*"),
--path.join(zstd.source, "zlibWrapper/examples/**.*"),
}
defines {
"zstd_DLL",
"_CRT_SECURE_NO_DEPRECATE",
}
warnings "Off"
kind "StaticLib"
end
table.insert(dependencies, zstd)

1
deps/zstd vendored Submodule

@ -0,0 +1 @@
Subproject commit d3ec368e13cac8391264ae2de3e9b930b199e282