mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 07:42:54 +00:00
47 lines
818 B
Lua
47 lines
818 B
Lua
libtomcrypt = {}
|
|
|
|
function libtomcrypt:include()
|
|
defines{
|
|
"LTM_DESC"
|
|
}
|
|
|
|
includedirs {
|
|
path.join(ThirdPartyFolder(), "libtomcrypt/src/headers")
|
|
}
|
|
end
|
|
|
|
function libtomcrypt:link()
|
|
links {
|
|
"libtomcrypt"
|
|
}
|
|
end
|
|
|
|
function libtomcrypt:project()
|
|
local folder = ThirdPartyFolder();
|
|
|
|
project "libtomcrypt"
|
|
targetdir(TargetDirectoryLib)
|
|
location "%{wks.location}/thirdparty"
|
|
kind "StaticLib"
|
|
language "C"
|
|
|
|
files {
|
|
path.join(folder, "libtomcrypt/src/**.h"),
|
|
path.join(folder, "libtomcrypt/src/**.c")
|
|
}
|
|
|
|
defines {
|
|
"_CRT_SECURE_NO_WARNINGS",
|
|
"_CRT_NONSTDC_NO_DEPRECATE",
|
|
"LTC_SOURCE",
|
|
"LTC_NO_TEST",
|
|
"LTC_NO_PROTOTYPES"
|
|
}
|
|
|
|
self:include()
|
|
libtommath:include()
|
|
|
|
-- Disable warnings. They do not have any value to us since it is not our code.
|
|
warnings "off"
|
|
end
|