Add premake scripts for projects

This commit is contained in:
Jan
2019-10-22 02:40:06 +02:00
parent cae05efb7b
commit 0d103e24a5
15 changed files with 361 additions and 12 deletions

View File

@ -0,0 +1,38 @@
ZoneCodeGeneratorTests = {}
function ZoneCodeGeneratorTests:include()
end
function ZoneCodeGeneratorTests:link()
end
function ZoneCodeGeneratorTests:project()
local folder = TestFolder();
project "ZoneCodeGeneratorTests"
targetdir(TargetDirectoryTest)
location "%{wks.location}/test"
kind "SharedLib"
language "C#"
files {
path.join(folder, "Zone/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

32
test/ZoneCommonTests.lua Normal file
View File

@ -0,0 +1,32 @@
ZoneCommonTests = {}
function ZoneCommonTests:include()
end
function ZoneCommonTests:link()
end
function ZoneCommonTests:project()
local folder = TestFolder();
project "ZoneCommonTests"
targetdir(TargetDirectoryTest)
location "%{wks.location}/test"
kind "SharedLib"
language "C++"
files {
path.join(folder, "ZoneCommonTests/**.h"),
path.join(folder, "ZoneCommonTests/**.cpp")
}
self:include()
ZoneCommon:include()
ZoneCommon:link()
-- Disable warnings. They do not have any value to us since it is not our code.
warnings "off"
end