mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 14:58:10 -05:00
Add premake scripts for projects
This commit is contained in:
38
test/ZoneCodeGeneratorTests.lua
Normal file
38
test/ZoneCodeGeneratorTests.lua
Normal 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
32
test/ZoneCommonTests.lua
Normal 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
|
Reference in New Issue
Block a user