52 lines
627 B
Lua
52 lines
627 B
Lua
|
libtommath = {
|
||
|
source = path.join(dependencies.basePath, "libtommath"),
|
||
|
}
|
||
|
|
||
|
function libtommath.import()
|
||
|
links {
|
||
|
"libtommath"
|
||
|
}
|
||
|
|
||
|
libtommath.includes()
|
||
|
end
|
||
|
|
||
|
function libtommath.includes()
|
||
|
includedirs {
|
||
|
libtommath.source
|
||
|
}
|
||
|
|
||
|
defines {
|
||
|
"LTM_DESC",
|
||
|
"__STDC_IEC_559__",
|
||
|
}
|
||
|
end
|
||
|
|
||
|
function libtommath.project()
|
||
|
project "libtommath"
|
||
|
language "C"
|
||
|
|
||
|
libtommath.includes()
|
||
|
|
||
|
files {
|
||
|
path.join(libtommath.source, "*.c"),
|
||
|
}
|
||
|
|
||
|
defines {
|
||
|
"_LIB"
|
||
|
}
|
||
|
|
||
|
removedefines {
|
||
|
"_DLL",
|
||
|
"_USRDLL"
|
||
|
}
|
||
|
|
||
|
linkoptions {
|
||
|
"-IGNORE:4221"
|
||
|
}
|
||
|
|
||
|
warnings "Off"
|
||
|
kind "StaticLib"
|
||
|
end
|
||
|
|
||
|
table.insert(dependencies, libtommath)
|