* integrate bFTGL with Scons
[blender.git] / tools / scons / bs / bs_libs.py
index 3783b926dfb9f7286d3082bb0b1e60364a4b6334..aa6b39967230112af87b4606aa179a98741116d9 100644 (file)
@@ -41,8 +41,11 @@ def international_libs(env):
                env.Append (LIBS=bs_globals.user_options_dict['FREETYPE_LIBRARY'])
                env.Append (LIBPATH=bs_globals.user_options_dict['FREETYPE_LIBPATH'])
                env.Append (LIBS=['blender_FTF'])
-               env.Append (LIBS=bs_globals.user_options_dict['FTGL_LIBRARY'])
-               env.Append (LIBPATH=bs_globals.user_options_dict['FTGL_LIBPATH'])
+               if sys.platform=='darwin':
+                       env.Append (LIBS=bs_globals.user_options_dict['FTGL_LIBRARY'])
+                       env.Append (LIBPATH=bs_globals.user_options_dict['FTGL_LIBPATH'])
+               else:
+                       env.Append (LIBS=['extern_ftgl'])
                env.Append (LIBS=bs_globals.user_options_dict['FREETYPE_LIBRARY'])
 
 def blender_libs(env):