SCons build system files added.
[blender.git] / source / blender / python / SConscript
1 python_env = Environment ()
2
3 # Import the C flags set in the SConstruct file
4 Import ('cflags')
5 Import ('cxxflags')
6 Import ('defines')
7 Import ('python_include')
8 Import ('extra_includes')
9 python_env.Append (CCFLAGS = cflags)
10 python_env.Append (CXXFLAGS = cxxflags)
11 python_env.Append (CPPDEFINES = defines)
12
13 source_files = ['BPY_interface.c',
14                 'api2_2x/Blender.c',
15                 'api2_2x/Sys.c',
16                 'api2_2x/Registry.c',
17                 'api2_2x/Scene.c',
18                 'api2_2x/Types.c',
19                 'api2_2x/Object.c',
20                 'api2_2x/NMesh.c',
21                 'api2_2x/Material.c',
22                 'api2_2x/Camera.c',
23                 'api2_2x/World.c',
24                 'api2_2x/Lamp.c',
25                 'api2_2x/Lattice.c',
26                 'api2_2x/Curve.c',
27                 'api2_2x/Armature.c',
28                 'api2_2x/Bone.c',
29                 'api2_2x/Ipo.c',
30                 'api2_2x/Ipocurve.c',
31                 'api2_2x/BezTriple.c',
32                 'api2_2x/Metaball.c',
33                 'api2_2x/Effect.c',
34                 'api2_2x/Particle.c',
35                 'api2_2x/Wave.c',
36                 'api2_2x/Build.c',
37                 'api2_2x/Image.c',
38                 'api2_2x/Window.c',
39                 'api2_2x/Draw.c',
40                 'api2_2x/BGL.c',
41                 'api2_2x/Text.c',
42                 'api2_2x/Texture.c',
43                 'api2_2x/MTex.c',
44                 'api2_2x/vector.c',
45                 'api2_2x/constant.c',
46                 'api2_2x/matrix.c',
47                 'api2_2x/rgbTuple.c',
48                 'api2_2x/gen_utils.c',
49                 'api2_2x/EXPP_interface.c']
50
51 python_env.Append (CPPPATH = ['api2_2x',
52                               '../blenkernel',
53                               '../blenlib',
54                               '../makesdna',
55                               '#/intern/guardedalloc',
56                               '#/intern/bmfont',
57                               '../imbuf',
58                               '../include',
59                               python_include])
60
61 python_env.Append (CPPPATH = extra_includes)
62 python_env.Library (target='#/lib/blender_python', source=source_files)