Bugfix #3437 #3438
[blender.git] / source / creator / SConscript
index 6210f578af2d1add44ceb90d89c692a12b744737..11e2c835be303c3ca96b178a7f309056d40e3ce1 100644 (file)
@@ -1,12 +1,8 @@
-creator_env = Environment ()
-
-Import ('cflags')
-Import ('cxxflags')
-Import ('defines')
+#!/usr/bin/python
 Import ('user_options_dict')
-creator_env.Append (CCFLAGS = cflags)
-creator_env.Append (CXXFLAGS = cxxflags)
-creator_env.Append (CPPDEFINES = defines)
+Import ('library_env')
+
+creator_env = library_env.Copy ()
 
 source_files = ['creator.c']
 
@@ -22,6 +18,7 @@ creator_env.Append (CPPPATH = ['#/intern/guardedalloc',
                                '../blender/makesdna',
                                '../kernel/gen_messaging',
                                '../kernel/gen_system'])
+creator_env.Append (CPPPATH = user_options_dict['OPENGL_INCLUDE'])
 
 if user_options_dict['USE_QUICKTIME'] == 1:
     creator_env.Append (CPPDEFINES = ['WITH_QUICKTIME'])