summaryrefslogtreecommitdiff
path: root/src/cd_ftgl.mak
diff options
context:
space:
mode:
Diffstat (limited to 'src/cd_ftgl.mak')
-rw-r--r--src/cd_ftgl.mak63
1 files changed, 63 insertions, 0 deletions
diff --git a/src/cd_ftgl.mak b/src/cd_ftgl.mak
new file mode 100644
index 0000000..fa0833d
--- /dev/null
+++ b/src/cd_ftgl.mak
@@ -0,0 +1,63 @@
+PROJNAME = cd
+LIBNAME = ftgl
+OPT = YES
+
+ftglyph_sources = \
+ FTGlyph/FTGlyph.cpp \
+ FTGlyph/FTGlyphGlue.cpp \
+ FTGlyph/FTBitmapGlyph.cpp \
+ FTGlyph/FTBufferGlyph.cpp \
+ FTGlyph/FTExtrudeGlyph.cpp \
+ FTGlyph/FTOutlineGlyph.cpp \
+ FTGlyph/FTPixmapGlyph.cpp \
+ FTGlyph/FTPolygonGlyph.cpp \
+ FTGlyph/FTTextureGlyph.cpp
+
+ftfont_sources = \
+ FTFont/FTFont.cpp \
+ FTFont/FTFontGlue.cpp \
+ FTFont/FTBitmapFont.cpp \
+ FTFont/FTBufferFont.cpp \
+ FTFont/FTExtrudeFont.cpp \
+ FTFont/FTOutlineFont.cpp \
+ FTFont/FTPixmapFont.cpp \
+ FTFont/FTPolygonFont.cpp \
+ FTFont/FTTextureFont.cpp
+
+ftlayout_sources = \
+ FTLayout/FTLayout.cpp \
+ FTLayout/FTLayoutGlue.cpp \
+ FTLayout/FTSimpleLayout.cpp
+
+libftgl_la_SOURCES = \
+ FTBuffer.cpp \
+ FTCharmap.cpp \
+ FTContour.cpp \
+ FTFace.cpp \
+ FTGlyphContainer.cpp \
+ FTLibrary.cpp \
+ FTPoint.cpp \
+ FTSize.cpp \
+ FTVectoriser.cpp \
+ $(ftglyph_sources) \
+ $(ftfont_sources) \
+ $(ftlayout_sources)
+SRC := $(addprefix ftgl/, $(libftgl_la_SOURCES))
+
+INCLUDES := ftgl freetype2
+DEFINES = FTGL_LIBRARY_STATIC
+USE_OPENGL = Yes
+LIBS = freetype
+
+ifneq ($(findstring dll, $(TEC_UNAME)), )
+ DEFINES = FTGL_LIBRARY
+ SRC += cd_ftgl.rc
+endif
+
+ifneq ($(findstring Win, $(TEC_SYSNAME)), )
+ LIBS = freetype6
+endif
+
+ifneq ($(findstring cygw, $(TEC_UNAME)), )
+ LIBS = freetype-6
+endif