2022-09-17 02:13:06 -04:00
|
|
|
libtomcrypt = {
|
|
|
|
source = path.join(dependencies.basePath, "libtomcrypt"),
|
|
|
|
}
|
|
|
|
|
|
|
|
function libtomcrypt.import()
|
|
|
|
links {
|
|
|
|
"libtomcrypt"
|
|
|
|
}
|
|
|
|
|
|
|
|
libtomcrypt.includes()
|
|
|
|
end
|
|
|
|
|
|
|
|
function libtomcrypt.includes()
|
|
|
|
includedirs {
|
|
|
|
path.join(libtomcrypt.source, "src/headers")
|
|
|
|
}
|
|
|
|
|
|
|
|
defines {
|
|
|
|
"LTC_NO_FAST",
|
|
|
|
"LTC_NO_PROTOTYPES",
|
|
|
|
"LTC_NO_RSA_BLINDING",
|
2022-12-04 06:50:00 -05:00
|
|
|
"LTC_NO_FILE",
|
2022-11-12 04:05:52 -05:00
|
|
|
"ARGTYPE=4",
|
2022-09-17 02:13:06 -04:00
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
function libtomcrypt.project()
|
|
|
|
project "libtomcrypt"
|
|
|
|
language "C"
|
|
|
|
|
|
|
|
libtomcrypt.includes()
|
|
|
|
libtommath.import()
|
|
|
|
|
|
|
|
files {
|
|
|
|
path.join(libtomcrypt.source, "src/**.c"),
|
|
|
|
}
|
|
|
|
|
|
|
|
removefiles {
|
2022-12-04 06:50:00 -05:00
|
|
|
path.join(libtomcrypt.source, "src/**/*_test.c"),
|
2022-09-17 02:13:06 -04:00
|
|
|
path.join(libtomcrypt.source, "src/**/*tab.c"),
|
|
|
|
path.join(libtomcrypt.source, "src/encauth/ocb3/**.c"),
|
|
|
|
}
|
|
|
|
|
|
|
|
defines {
|
|
|
|
"_CRT_SECURE_NO_WARNINGS",
|
|
|
|
"LTC_SOURCE",
|
|
|
|
"_LIB",
|
|
|
|
"USE_LTM"
|
|
|
|
}
|
|
|
|
|
|
|
|
removedefines {
|
|
|
|
"_DLL",
|
|
|
|
"_USRDLL"
|
|
|
|
}
|
|
|
|
|
|
|
|
linkoptions {
|
|
|
|
"-IGNORE:4221"
|
|
|
|
}
|
|
|
|
|
|
|
|
warnings "Off"
|
|
|
|
kind "StaticLib"
|
|
|
|
end
|
|
|
|
|
|
|
|
table.insert(dependencies, libtomcrypt)
|