From 56c907ad040b102c1d74d2d54190238989f1a819 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Thu, 10 Sep 2015 22:15:00 -0300 Subject: [PATCH] fix to builtin freetype defines on linux --- platform/x11/detect.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/x11/detect.py b/platform/x11/detect.py index 2701a41a5b3..33e8fd03e23 100644 --- a/platform/x11/detect.py +++ b/platform/x11/detect.py @@ -134,8 +134,14 @@ def configure(env): if (env["freetype"]=="yes"): env.ParseConfig('pkg-config freetype2 --cflags --libs') + if (env["freetype"]!="no"): env.Append(CCFLAGS=['-DFREETYPE_ENABLED']) + if (env["freetype"]=="builtin"): + env.Append(CPPPATH=['#tools/freetype']) + env.Append(CPPPATH=['#tools/freetype/freetype/include']) + + env.Append(CPPFLAGS=['-DOPENGL_ENABLED','-DGLEW_ENABLED'])