initial commit of the fluid simulator.
[blender-staging.git] / intern / elbeem / SConscript
1 #!/usr/bin/python
2 Import ('library_env')
3 Import('user_options_dict');
4
5 print "Including El'Beem Fluid Simulation..."
6 elbeem_env = library_env.Copy();
7 elbeem_env.Append(CXXFLAGS= ' -DNOGUI -DELBEEM_BLENDER=1  ');
8 elbeem_env.Append(CCFLAGS=  ' -DNOGUI -DELBEEM_BLENDER=1  ');
9 #elbeem_env.Append(CPPPATH= '../src');
10 #elbeem_env.Append(CCPATH=  '../src');
11   
12 elbeem_env.Append (CPPPATH = user_options_dict['PNG_INCLUDE'])
13 elbeem_env.Append (CPPPATH = user_options_dict['Z_INCLUDE'])
14 elbeem_env.Append (CPPPATH = user_options_dict['SDL_INCLUDE'])
15 elbeem_env.Append (CCPATH = user_options_dict['PNG_INCLUDE'])
16 elbeem_env.Append (CCPATH = user_options_dict['Z_INCLUDE'])
17 elbeem_env.Append (CCPATH = user_options_dict['SDL_INCLUDE'])
18
19 #Export('elbeem_env');
20 #SConscript(['src/SConscript'])
21
22 # main build----------------------------------------
23 #Import('elbeem_env');
24 #srcenv = elbeem_env.Copy();
25
26 Sources = [ 
27
28         "intern/cfgparser.cpp",
29         "intern/cfglexer.cpp",
30
31         "intern/attributes.cpp",
32         "intern/elbeem.cpp",
33         "intern/factory_fsgr.cpp",
34         "intern/isosurface.cpp",
35         "intern/lbminterface.cpp",
36         "intern/ntl_blenderdumper.cpp",
37         "intern/ntl_bsptree.cpp",
38         "intern/ntl_geometrybox.cpp",
39         "intern/ntl_geometrymodel.cpp",
40         "intern/ntl_geometryobject.cpp",
41         "intern/ntl_geometrysphere.cpp",
42         "intern/ntl_image.cpp",
43         "intern/ntl_lightobject.cpp",
44         "intern/ntl_ray.cpp",
45         "intern/ntl_raytracer.cpp",
46         "intern/ntl_scene.cpp",
47         "intern/parametrizer.cpp",
48         "intern/particletracer.cpp",
49         "intern/simulation_object.cpp",
50         "intern/utilities.cpp",
51         "intern/blendercall.cpp"
52
53                 ]; # sources
54
55 elbeem_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_elbeem', source=Sources)
56