mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-07-26 09:50:38 +00:00
* chore: add file variant of json fonts * chore: add stb dependency * feat: generate fonts from ttf files * chore: add option to add yOffset to file font * chore: dynamically adjust generated font bitmap size * fix: printable characters should respect ISO-8859-1 control characters * chore: do not write missing glyphs into the bitmap * chore: remove test texture conversion * chore: adjust font compiler for iw3,iw4,iw5,t4,t5 * chore: add possibility to fill color channels when converting * fix: games other than t6 use rgba for fonts * fix: make sure no mipmaps are set on loaddef * fix: t4 and iw3 use dimensions in image loaddef * chore: also include optional glyphs in fonts
64 lines
1.2 KiB
Lua
64 lines
1.2 KiB
Lua
ObjCompiling = {}
|
|
|
|
function ObjCompiling:include(includes)
|
|
if includes:handle(self:name()) then
|
|
ObjCommon:include(includes)
|
|
ObjLoading:include(includes)
|
|
ObjImage:include(includes)
|
|
ZoneCommon:include(includes)
|
|
includedirs {
|
|
path.join(ProjectFolder(), "ObjCompiling")
|
|
}
|
|
end
|
|
end
|
|
|
|
function ObjCompiling:link(links)
|
|
links:add(self:name())
|
|
links:linkto(minilzo)
|
|
links:linkto(stb)
|
|
links:linkto(Utils)
|
|
links:linkto(ObjCommon)
|
|
links:linkto(ObjLoading)
|
|
links:linkto(ObjImage)
|
|
links:linkto(ZoneCommon)
|
|
end
|
|
|
|
function ObjCompiling:use()
|
|
|
|
end
|
|
|
|
function ObjCompiling:name()
|
|
return "ObjCompiling"
|
|
end
|
|
|
|
function ObjCompiling:project()
|
|
local folder = ProjectFolder()
|
|
local includes = Includes:create()
|
|
|
|
project(self:name())
|
|
targetdir(TargetDirectoryLib)
|
|
location "%{wks.location}/src/%{prj.name}"
|
|
kind "StaticLib"
|
|
language "C++"
|
|
|
|
files {
|
|
path.join(folder, "ObjCompiling/**.h"),
|
|
path.join(folder, "ObjCompiling/**.cpp")
|
|
}
|
|
|
|
vpaths {
|
|
["*"] = {
|
|
path.join(folder, "ObjCompiling")
|
|
}
|
|
}
|
|
|
|
ObjCommon:use()
|
|
useSourceTemplating("ObjCompiling")
|
|
|
|
self:include(includes)
|
|
minilzo:include(includes)
|
|
Utils:include(includes)
|
|
json:include(includes)
|
|
stb:include(includes)
|
|
end
|