Wednesday merger of Orange branch and bf-blender
[blender.git] / source / blender / src / SConscript
1 #!/usr/bin/python
2 Import ('extra_includes')
3 Import ('user_options_dict')
4 Import ('library_env')
5
6 src_env = library_env.Copy ()
7 src_env.Append (CCFLAGS = user_options_dict['SDL_CFLAGS'])
8
9 source_files = ['B.blend.c',
10                 'Bfont.c',
11                 'bfont.ttf.c',
12                 'blenderbuttons.c',
13                 'booleanops.c',
14                 'booleanops_mesh.c',
15                 'buttons_editing.c',
16                 'buttons_logic.c',
17                 'buttons_object.c',
18                 'buttons_scene.c',
19                 'buttons_script.c',
20                 'buttons_shading.c',
21                 'butspace.c',
22                 'cmap.tga.c',
23                 'cmovie.tga.c',
24                 'cursors.c',
25                 'drawaction.c',
26                 'drawarmature.c',
27                 'drawdeps.c',
28                 'drawimage.c',
29                 'drawimasel.c',
30                 'drawipo.c',
31                 'drawmesh.c',
32                 'drawnla.c',
33                 'drawobject.c',
34                 'drawoops.c',
35                 'drawscene.c',
36                 'drawscript.c',
37                 'drawseq.c',
38                 'drawsound.c',
39                 'drawtext.c',
40                 'drawtime.c',
41                 'drawview.c',
42                 'edit.c',
43                 'editaction.c',
44                 'editarmature.c',
45                 'editconstraint.c',
46                 'editcurve.c',
47                 'editdeform.c',
48                 'editface.c',
49                 'editfont.c',
50                 'editgroup.c',
51                 'editimasel.c',
52                 'editipo.c',
53                 'editipo_lib.c',
54                 'editipo_mods.c',
55                 'editkey.c',
56                 'editlattice.c',
57                 'editmball.c',
58                 'editmesh.c',
59                 'editmesh_add.c',
60                 'editmesh_lib.c',
61                 'editmesh_loop.c',
62                 'editmesh_mods.c',
63                 'editmesh_tools.c',
64                 'editmode_undo.c',
65                 'editnla.c',
66                 'editobject.c',
67                 'editoops.c',
68                 'editscreen.c',
69                 'editseq.c',
70                 'editsima.c',
71                 'editsound.c',
72                 'edittime.c',
73                 'editview.c',
74                 'eventdebug.c',
75                 'filesel.c',
76                 'fluidsim.c',
77                 'ghostwinlay.c',
78                 'glutil.c',
79                 'headerbuttons.c',
80                 'header_action.c',
81                 'header_buttonswin.c',
82                 'header_filesel.c',
83                 'header_image.c',
84                 'header_imasel.c',
85                 'header_info.c',
86                 'header_ipo.c',
87                 'header_nla.c',
88                 'header_oops.c',
89                 'header_script.c',
90                 'header_seq.c',
91                 'header_sound.c',
92                 'header_text.c',
93                 'header_time.c',
94                 'header_view3d.c',
95                 'imagepaint.c',
96                 'imasel.c',
97                 'interface.c',
98                 'interface_panel.c',
99                 'interface_draw.c',
100                 'keyval.c',
101                 'lorem.c',
102                 'mainqueue.c',
103                 'meshtools.c',
104                 'mywindow.c',
105                 'oops.c',
106                 'outliner.c',
107                 'splash.jpg.c',
108                 'parametrizer.c',
109                 'playanim.c',
110                 'poseobject.c',
111                 'previewrender.c',
112                 'renderwin.c',
113                 'resources.c',
114                 'scrarea.c',
115                 'screendump.c',
116                 'sequence.c',
117                 'seqaudio.c',
118                 'space.c',
119                 'spacetypes.c',
120                 'swapbuffers.c',
121                 'toets.c',
122                 'toolbox.c',
123                 'transform.c',
124                 'transform_generics.c',
125                 'transform_numinput.c',
126                 'transform_constraints.c',
127                 'transform_conversions.c',
128                 'transform_manipulator.c',
129                 'unwrapper.c',
130                 'usiblender.c',
131                 'view.c',
132                 'vpaint.c',
133                 'writeavicodec.c',
134                 'writeimage.c',
135                 'writemovie.c',
136                 'language.c']
137
138 src_env.Append (CPPPATH = ['#/intern/guardedalloc',
139                            '../blenlib',
140                            '../makesdna',
141                            '../blenkernel',
142                            '../include',
143                            '#/intern/bmfont',
144                            '../imbuf',
145                            '../render/extern/include',
146                            '#/intern/bsp/extern',
147                            '../renderconverter',
148                            '../radiosity/extern/include',
149                            '#/intern/decimation/extern',
150                            '../blenloader',
151                            '../python',
152                            '../../kernel/gen_system',
153                            '#/intern/SoundSystem',
154                            '../readstreamglue',
155                            '../img',
156                            '../quicktime',
157                            '#/intern/elbeem/extern',
158                            '#/intern/ghost',
159                            '#/intern/opennl/extern'])
160
161 src_env.Append (CPPPATH = user_options_dict['PYTHON_INCLUDE'])
162 src_env.Append (CPPPATH = user_options_dict['SDL_INCLUDE'])
163 src_env.Append (CPPPATH = user_options_dict['OPENGL_INCLUDE'])
164
165 if user_options_dict['USE_INTERNATIONAL'] == 1:
166     src_env.Append (CPPPATH=['../ftfont'])
167     src_env.Append (CPPDEFINES = 'INTERNATIONAL')
168     src_env.Append (CPPDEFINES = 'FTGL_STATIC_LIBRARY')
169
170 if user_options_dict['USE_BUILDINFO'] == 1:
171     src_env.Append (CPPDEFINES = 'NAN_BUILDINFO')
172
173 src_env.Append (CPPPATH=extra_includes)
174
175 src_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_blendersrc', source=source_files)