Added #!/usr/bin/python standard script identifier to the start of SConscript files.
[blender-staging.git] / source / kernel / SConscript
index 0439f7169bc2b7cd55813d563c95d419080ad57b..cb1dc0decbe630a45eecf323f3019f0c792b624e 100644 (file)
@@ -1,12 +1,8 @@
-kernel_env = Environment ()
+#!/usr/bin/python
+Import ('user_options_dict')
+Import ('library_env')
 
 
-# Import the C flags set in the SConstruct file
-Import ('cflags')
-Import ('cxxflags')
-Import ('defines')
-kernel_env.Append (CCFLAGS = cflags)
-kernel_env.Append (CXXFLAGS = cxxflags)
-kernel_env.Append (CPPDEFINES = defines)
+kernel_env = library_env.Copy ()
 
 source_files = ['gen_messaging/intern/messaging.c',
                 'gen_system/GEN_HashedPtr.cpp',
 
 source_files = ['gen_messaging/intern/messaging.c',
                 'gen_system/GEN_HashedPtr.cpp',
@@ -19,4 +15,4 @@ kernel_env.Append (CPPPATH = ['gen_messaging',
                               '#/intern/string',
                               '#/intern/moto/include'])
 
                               '#/intern/string',
                               '#/intern/moto/include'])
 
-kernel_env.Library (target='#/lib/blender_kernel', source=source_files)
+kernel_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_kernel', source=source_files)