'scons blenderlite' failed because blf expected freetype
[blender-staging.git] / source / blender / blenfont / intern / blf_lang.c
index 527656f67b061f4d0aa2367e2f3bf14ae2e85832..0aaf399cf586a7708e8d0709bffbd518e31ac1e3 100644 (file)
@@ -42,7 +42,9 @@
 #include "blf_internal_types.h"
 
 // XXX 2.50 Remove this later.
+#ifdef WITH_FREETYPE2
 #include "FTF_Api.h"
+#endif
 
 static ListBase global_lang= { NULL, NULL };
 static int global_tot_lang= 0;
@@ -99,12 +101,14 @@ char *BLF_lang_find_code(short langid)
 
 void BLF_lang_set(int id)
 {
+#ifdef WITH_FREETYPE2
        LangBLF *lme;
 
        // XXX 2.50 Remove this later, with ftfont
        lme= blf_lang_find_by_id(id);
        if(lme) FTF_SetLanguage(lme->code);
        else FTF_SetLanguage("en_US");
+#endif
 }
 
 static void blf_lang_split(char *line, LangBLF* lme)