From ce1814d274cee4c1157c215731b5de4ecdcfb390 Mon Sep 17 00:00:00 2001 From: maxcodehack Date: Sun, 3 Jan 2021 14:49:43 +0000 Subject: [PATCH] Add freetype to autobuild git-svn-id: svn://kolibrios.org@8504 a494cfbc-eb01-0410-851d-a64ba20cac60 --- contrib/sdk/sources/freetype/Tupfile.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 contrib/sdk/sources/freetype/Tupfile.lua diff --git a/contrib/sdk/sources/freetype/Tupfile.lua b/contrib/sdk/sources/freetype/Tupfile.lua new file mode 100755 index 0000000000..addce01761 --- /dev/null +++ b/contrib/sdk/sources/freetype/Tupfile.lua @@ -0,0 +1,10 @@ +if tup.getconfig("NO_GCC") ~= "" then return end +HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../../../programs" or tup.getconfig("HELPERDIR") +tup.include(HELPERDIR .. "/use_gcc.lua") +tup.include(HELPERDIR .. "/use_newlib.lua") + +CFLAGS = CFLAGS .. " -U_Win32 -U_WIN32 -U__MINGW32__ -DFT_CONFIG_CONFIG_H=\"\" -DFT_CONFIG_MODULES_H=\"\" -DFT2_BUILD_LIBRARY" +INCLUDES = INCLUDES .. " -I./include -I./include/freetype/config" + +compile_gcc{"src/autofit/autofit.c", "src/base/ftbase.c", "src/base/ftbbox.c", "src/base/ftbdf.c", "src/base/ftbitmap.c", "src/base/ftcid.c", "src/base/ftdebug.c", "src/base/ftfstype.c", "src/base/ftgasp.c", "src/base/ftglyph.c", "src/base/ftgxval.c", "src/base/ftinit.c", "src/base/ftlcdfil.c", "src/base/ftmm.c", "src/base/ftotval.c", "src/base/ftpatent.c", "src/base/ftpfr.c", "src/base/ftstroke.c", "src/base/ftsynth.c", "src/base/ftsystem.c", "src/base/fttype1.c", "src/bdf/bdf.c", "src/bzip2/ftbzip2.c", "src/cache/ftcache.c", "src/cff/cff.c", "src/cid/type1cid.c", "src/gzip/ftgzip.c", "src/lzw/ftlzw.c", "src/otvalid/otvalid.c", "src/pcf/pcf.c", "src/pfr/pfr.c", "src/psaux/psaux.c", "src/pshinter/pshinter.c", "src/psnames/psnames.c", "src/raster/raster.c", "src/sfnt/sfnt.c", "src/smooth/smooth.c", "src/truetype/truetype.c", "src/type1/type1.c", "src/type42/type42.c", "src/winfonts/winfnt.c"} +tup.rule(OBJS, "kos32-ar rcs %o %f", {"../../lib/libfreetype.a", "../../lib/"})