diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-09-10 22:15:00 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-09-10 22:15:00 -0300 |
commit | 56c907ad040b102c1d74d2d54190238989f1a819 (patch) | |
tree | 3c3b41cb28965dbb51cbbb21090fceae038186a1 /platform/x11 | |
parent | 751202768c7a396d3f480775225d09d42689b8db (diff) |
fix to builtin freetype defines on linux
Diffstat (limited to 'platform/x11')
-rw-r--r-- | platform/x11/detect.py | 6 |
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']) |