Add nlohmann json submodule third party dependency

This commit is contained in:
Jan 2022-04-18 11:23:05 +02:00
parent 2ec65924c6
commit 0f47e64486
5 changed files with 30 additions and 0 deletions

3
.gitmodules vendored
View File

@ -10,3 +10,6 @@
[submodule "thirdparty/catch2"]
path = thirdparty/catch2
url = https://github.com/catchorg/Catch2.git
[submodule "thirdparty/json"]
path = thirdparty/json
url = https://github.com/nlohmann/json.git

View File

@ -75,6 +75,7 @@ workspace "OpenAssetTools"
include "thirdparty/catch2.lua"
include "thirdparty/libtomcrypt.lua"
include "thirdparty/libtommath.lua"
include "thirdparty/json.lua"
include "thirdparty/minilzo.lua"
include "thirdparty/minizip.lua"
include "thirdparty/salsa20.lua"
@ -85,6 +86,7 @@ group "ThirdParty"
catch2:project()
libtommath:project()
libtomcrypt:project()
json:project()
minilzo:project()
minizip:project()
salsa20:project()

View File

@ -52,6 +52,7 @@ function ObjWriting:project()
self:include(includes)
Utils:include(includes)
json:include(includes)
minilzo:include(includes)
minizip:include(includes)
end

1
thirdparty/json vendored Submodule

@ -0,0 +1 @@
Subproject commit 4f8fba14066156b73f1189a2b8bd568bde5284c5

23
thirdparty/json.lua vendored Normal file
View File

@ -0,0 +1,23 @@
json = {}
function json:include(includes)
if includes:handle(self:name()) then
includedirs {
path.join(ThirdPartyFolder(), "json", "single_include")
}
end
end
function json:link()
end
function json:use()
end
function json:name()
return "json"
end
function json:project()
end