mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-11 15:28:11 -05:00
Add premake scripts for projects
This commit is contained in:
36
src/Crypto.lua
Normal file
36
src/Crypto.lua
Normal file
@ -0,0 +1,36 @@
|
||||
Crypto = {}
|
||||
|
||||
function Crypto:include()
|
||||
includedirs {
|
||||
path.join(ProjectFolder(), "Crypto")
|
||||
}
|
||||
end
|
||||
|
||||
function Crypto:link()
|
||||
libtomcrypt:link()
|
||||
libtommath:link()
|
||||
salsa20:link()
|
||||
links {
|
||||
"Crypto"
|
||||
}
|
||||
end
|
||||
|
||||
function Crypto:project()
|
||||
local folder = ProjectFolder();
|
||||
|
||||
project "Crypto"
|
||||
targetdir(TargetDirectoryLib)
|
||||
location "%{wks.location}/src"
|
||||
kind "StaticLib"
|
||||
language "C++"
|
||||
|
||||
files {
|
||||
path.join(folder, "Crypto/**.h"),
|
||||
path.join(folder, "Crypto/**.cpp")
|
||||
}
|
||||
|
||||
self:include()
|
||||
libtomcrypt:include()
|
||||
libtommath:include()
|
||||
salsa20:include()
|
||||
end
|
33
src/Linker.lua
Normal file
33
src/Linker.lua
Normal file
@ -0,0 +1,33 @@
|
||||
Linker = {}
|
||||
|
||||
function Linker:include()
|
||||
includedirs {
|
||||
path.join(ProjectFolder(), "Linker")
|
||||
}
|
||||
end
|
||||
|
||||
function Linker:link()
|
||||
|
||||
end
|
||||
|
||||
function Linker:project()
|
||||
local folder = ProjectFolder();
|
||||
|
||||
project "Linker"
|
||||
targetdir(TargetDirectoryBin)
|
||||
location "%{wks.location}/src"
|
||||
kind "ConsoleApp"
|
||||
language "C++"
|
||||
|
||||
files {
|
||||
path.join(folder, "Linker/**.h"),
|
||||
path.join(folder, "Linker/**.cpp")
|
||||
}
|
||||
|
||||
self:include()
|
||||
Utils:include()
|
||||
ZoneWriting:include()
|
||||
|
||||
Utils:link()
|
||||
--ZoneWriting:link()
|
||||
end
|
33
src/Unlinker.lua
Normal file
33
src/Unlinker.lua
Normal file
@ -0,0 +1,33 @@
|
||||
Unlinker = {}
|
||||
|
||||
function Unlinker:include()
|
||||
includedirs {
|
||||
path.join(ProjectFolder(), "Unlinker")
|
||||
}
|
||||
end
|
||||
|
||||
function Unlinker:link()
|
||||
|
||||
end
|
||||
|
||||
function Unlinker:project()
|
||||
local folder = ProjectFolder();
|
||||
|
||||
project "Unlinker"
|
||||
targetdir(TargetDirectoryBin)
|
||||
location "%{wks.location}/src"
|
||||
kind "ConsoleApp"
|
||||
language "C++"
|
||||
|
||||
files {
|
||||
path.join(folder, "Unlinker/**.h"),
|
||||
path.join(folder, "Unlinker/**.cpp")
|
||||
}
|
||||
|
||||
self:include()
|
||||
Utils:include()
|
||||
ZoneLoading:include()
|
||||
|
||||
Utils:link()
|
||||
ZoneLoading:link()
|
||||
end
|
30
src/Utils.lua
Normal file
30
src/Utils.lua
Normal file
@ -0,0 +1,30 @@
|
||||
Utils = {}
|
||||
|
||||
function Utils:include()
|
||||
includedirs {
|
||||
path.join(ProjectFolder(), "Utils")
|
||||
}
|
||||
end
|
||||
|
||||
function Utils:link()
|
||||
links {
|
||||
"Utils"
|
||||
}
|
||||
end
|
||||
|
||||
function Utils:project()
|
||||
local folder = ProjectFolder();
|
||||
|
||||
project "Utils"
|
||||
targetdir(TargetDirectoryLib)
|
||||
location "%{wks.location}/src"
|
||||
kind "StaticLib"
|
||||
language "C++"
|
||||
|
||||
files {
|
||||
path.join(folder, "Utils/**.h"),
|
||||
path.join(folder, "Utils/**.cpp")
|
||||
}
|
||||
|
||||
self:include()
|
||||
end
|
0
src/ZoneCodeGenerator.lua
Normal file
0
src/ZoneCodeGenerator.lua
Normal file
30
src/ZoneCommon.lua
Normal file
30
src/ZoneCommon.lua
Normal file
@ -0,0 +1,30 @@
|
||||
ZoneCommon = {}
|
||||
|
||||
function ZoneCommon:include()
|
||||
includedirs {
|
||||
path.join(ProjectFolder(), "ZoneCommon")
|
||||
}
|
||||
end
|
||||
|
||||
function ZoneCommon:link()
|
||||
links {
|
||||
"ZoneCommon"
|
||||
}
|
||||
end
|
||||
|
||||
function ZoneCommon:project()
|
||||
local folder = ProjectFolder();
|
||||
|
||||
project "ZoneCommon"
|
||||
targetdir(TargetDirectoryLib)
|
||||
location "%{wks.location}/src"
|
||||
kind "StaticLib"
|
||||
language "C++"
|
||||
|
||||
files {
|
||||
path.join(folder, "ZoneCommon/**.h"),
|
||||
path.join(folder, "ZoneCommon/**.cpp")
|
||||
}
|
||||
|
||||
self:include()
|
||||
end
|
38
src/ZoneLoading.lua
Normal file
38
src/ZoneLoading.lua
Normal file
@ -0,0 +1,38 @@
|
||||
ZoneLoading = {}
|
||||
|
||||
function ZoneLoading:include()
|
||||
ZoneCommon:include()
|
||||
includedirs {
|
||||
path.join(ProjectFolder(), "ZoneLoading")
|
||||
}
|
||||
end
|
||||
|
||||
function ZoneLoading:link()
|
||||
Crypto:link()
|
||||
Utils:link()
|
||||
ZoneCommon:link()
|
||||
zlib:link()
|
||||
links {
|
||||
"ZoneLoading"
|
||||
}
|
||||
end
|
||||
|
||||
function ZoneLoading:project()
|
||||
local folder = ProjectFolder();
|
||||
|
||||
project "ZoneLoading"
|
||||
targetdir(TargetDirectoryLib)
|
||||
location "%{wks.location}/src"
|
||||
kind "StaticLib"
|
||||
language "C++"
|
||||
|
||||
files {
|
||||
path.join(folder, "ZoneLoading/**.h"),
|
||||
path.join(folder, "ZoneLoading/**.cpp")
|
||||
}
|
||||
|
||||
self:include()
|
||||
Crypto:include()
|
||||
Utils:include()
|
||||
zlib:include()
|
||||
end
|
38
src/ZoneWriting.lua
Normal file
38
src/ZoneWriting.lua
Normal file
@ -0,0 +1,38 @@
|
||||
ZoneWriting = {}
|
||||
|
||||
function ZoneWriting:include()
|
||||
ZoneCommon:include()
|
||||
includedirs {
|
||||
path.join(ProjectFolder(), "ZoneWriting")
|
||||
}
|
||||
end
|
||||
|
||||
function ZoneWriting:link()
|
||||
Crypto:link()
|
||||
Utils:link()
|
||||
ZoneCommon:link()
|
||||
zlib:link()
|
||||
links {
|
||||
"ZoneWriting"
|
||||
}
|
||||
end
|
||||
|
||||
function ZoneWriting:project()
|
||||
local folder = ProjectFolder();
|
||||
|
||||
project "ZoneWriting"
|
||||
targetdir(TargetDirectoryLib)
|
||||
location "%{wks.location}/src"
|
||||
kind "StaticLib"
|
||||
language "C++"
|
||||
|
||||
files {
|
||||
path.join(folder, "ZoneWriting/**.h"),
|
||||
path.join(folder, "ZoneWriting/**.cpp")
|
||||
}
|
||||
|
||||
self:include()
|
||||
Crypto:include()
|
||||
Utils:include()
|
||||
zlib:include()
|
||||
end
|
Reference in New Issue
Block a user