2.5
[blender.git] / source / blender / readblenfile / SConscript
index 751bc100a97c86c15148d569874a4b48fe17cd12..31ca25eedd7ed5c5339eaeceb4443efdbd411b3f 100644 (file)
@@ -1,18 +1,8 @@
 #!/usr/bin/python
 #!/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 = ['.',
-                                                                       '../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] )