- added option to switch off compiling elbeem to scons files (set USE_FLUIDSIM=true)
[blender-staging.git] / intern / elbeem / SConscript
1 #!/usr/bin/python
2 Import ('library_env')
3 Import('user_options_dict');
4 Import('use_fluidsim');
5
6 elbeem_env = library_env.Copy();
7 elbeem_env.Append(CPPDEFINES= 'NOGUI');
8 elbeem_env.Append(CPPDEFINES= [('ELBEEM_BLENDER',1)] );
9                 
10 if use_fluidsim=='false':
11         # print "El'Beem Fluid Simulation Disabled..." # debug
12         elbeem_env.Append (CPPPATH = user_options_dict['PNG_INCLUDE'])
13         # dummy interface build
14         Sources = [ 
15                 "intern/utilities.cpp",
16                 "intern/blenderdummy.cpp"
17                         ]; # sources
18 else:
19         # print "Including El'Beem Fluid Simulation..." # debug
20         elbeem_env.Append (CPPPATH = user_options_dict['PNG_INCLUDE'])
21         elbeem_env.Append (CPPPATH = user_options_dict['Z_INCLUDE'])
22         elbeem_env.Append (CPPPATH = user_options_dict['SDL_INCLUDE'])
23
24         # main build----------------------------------------
25         Sources = [ 
26
27                 "intern/cfgparser.cpp",
28                 "intern/cfglexer.cpp",
29
30                 "intern/attributes.cpp",
31                 "intern/elbeem.cpp",
32                 "intern/factory_fsgr.cpp",
33                 "intern/isosurface.cpp",
34                 "intern/lbminterface.cpp",
35                 "intern/ntl_blenderdumper.cpp",
36                 "intern/ntl_bsptree.cpp",
37                 "intern/ntl_geometrymodel.cpp",
38                 "intern/ntl_geometryobject.cpp",
39                 "intern/ntl_lightobject.cpp",
40                 "intern/ntl_ray.cpp",
41                 "intern/ntl_raytracer.cpp",
42                 "intern/ntl_scene.cpp",
43                 "intern/parametrizer.cpp",
44                 "intern/particletracer.cpp",
45                 "intern/simulation_object.cpp",
46                 "intern/utilities.cpp",
47                 "intern/blendercall.cpp"
48
49                         ]; # sources
50
51 elbeem_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_elbeem', source=Sources)
52