2.5
[blender.git] / source / blender / readblenfile / SConscript
index 1f0909b1f84201135df2efec99361337b0bf9c69..31ca25eedd7ed5c5339eaeceb4443efdbd411b3f 100644 (file)
@@ -1,20 +1,8 @@
 #!/usr/bin/python
-Import ('user_options_dict')
-Import ('library_env')
+Import ('env')
 
-readblenfile_env = library_env.Copy ()
+sources = env.Glob('intern/*.c')
 
-source_files = ['intern/BLO_readblenfile.c']
+incs = '.  ../blenloader ../blenloader/intern ../blenkernel ../blenlib ../makesdna ../../kernel/gen_messaging'
 
-readblenfile_env.Append (CPPPATH = ['.',
-
-'../readblenfile',
-                                                                       '../readstreamglue',
-                                                                       '../blenloader',
-                                                                       '../blenloader/intern',
-                                                                       '../blenkernel',
-                                                                       '../blenlib',
-                                                                       '../makesdna',
-                                                                       '../../kernel/gen_messaging'])
-
-readblenfile_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_readblenfile', source=source_files)
+env.BlenderLib ( 'bf_readblenfile', sources, Split(incs), [], libtype=['common','player'], priority = [0, 220] )