mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-13 00:08:26 -05:00
Add premake scripts for projects
This commit is contained in:
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
|
Reference in New Issue
Block a user