fix to builtin freetype defines on linux

This commit is contained in:
Juan Linietsky 2015-09-10 22:15:00 -03:00
parent 751202768c
commit 56c907ad04
1 changed files with 6 additions and 0 deletions

View File

@ -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'])