mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 14:58:10 -05:00
Add premake solution generation for third party projects for now only
This commit is contained in:
43
thirdparty/libtomcrypt.lua
vendored
Normal file
43
thirdparty/libtomcrypt.lua
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
libtomcrypt = {}
|
||||
|
||||
function libtomcrypt:include()
|
||||
includedirs {
|
||||
path.join(ThirdPartyFolder(), "libtomcrypt/src/headers")
|
||||
}
|
||||
end
|
||||
|
||||
function libtomcrypt:link()
|
||||
self:include()
|
||||
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
|
Reference in New Issue
Block a user