summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-09-10 22:15:00 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-09-10 22:15:00 -0300
commit56c907ad040b102c1d74d2d54190238989f1a819 (patch)
tree3c3b41cb28965dbb51cbbb21090fceae038186a1 /platform
parent751202768c7a396d3f480775225d09d42689b8db (diff)
fix to builtin freetype defines on linux
Diffstat (limited to 'platform')
-rw-r--r--platform/x11/detect.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py
index 2701a41a5b..33e8fd03e2 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'])