add outliner.c so new outliner stuff gets actually compiled in :)
[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                 'blenderbuttons.c',
12                 'booleanops.c',
13                 'booleanops_mesh.c',
14                 'buttons_editing.c',
15                 'buttons_logic.c',
16                 'buttons_object.c',
17                 'buttons_scene.c',
18                 'buttons_script.c',
19                 'buttons_shading.c',
20                 'butspace.c',
21                 'cmap.tga.c',
22                 'cmovie.tga.c',
23                 'cursors.c',
24                 'drawaction.c',
25                 'drawimage.c',
26                 'drawimasel.c',
27                 'drawipo.c',
28                 'drawmesh.c',
29                 'drawnla.c',
30                 'drawobject.c',
31                 'drawoops.c',
32                 'drawscene.c',
33                 'drawscript.c',
34                 'drawseq.c',
35                 'drawsound.c',
36                 'drawtext.c',
37                 'drawview.c',
38                 'edit.c',
39                 'editaction.c',
40                 'editarmature.c',
41                 'editconstraint.c',
42                 'editcurve.c',
43                 'editdeform.c',
44                 'editface.c',
45                 'editfont.c',
46                 'editgroup.c',
47                 'editika.c',
48                 'editimasel.c',
49                 'editipo.c',
50                 'editkey.c',
51                 'editlattice.c',
52                 'editmball.c',
53                 'editmesh.c',
54                 'editmesh_add.c',
55                 'editmesh_lib.c',
56                 'editmesh_loop.c',
57                 'editmesh_mods.c',
58                 'editmesh_tools.c',
59                 'editmode_undo.c',
60                 'editnla.c',
61                 'editobject.c',
62                 'editoops.c',
63                 'editscreen.c',
64                 'editseq.c',
65                 'editsima.c',
66                 'editsound.c',
67                 'editview.c',
68                 'eventdebug.c',
69                 'filesel.c',
70                 'ghostwinlay.c',
71                 'glutil.c',
72                 'headerbuttons.c',
73                 'header_action.c',
74                 'header_buttonswin.c',
75                 'header_filesel.c',
76                 'header_image.c',
77                 'header_imasel.c',
78                 'header_info.c',
79                 'header_ipo.c',
80                 'header_nla.c',
81                 'header_oops.c',
82                 'header_script.c',
83                 'header_seq.c',
84                 'header_sound.c',
85                 'header_text.c',
86                 'header_view3d.c',
87                 'imasel.c',
88                 'interface.c',
89                 'interface_panel.c',
90                 'interface_draw.c',
91                 'keyval.c',
92                 'mainqueue.c',
93                 'meshtools.c',
94                 'mywindow.c',
95                 'oops.c',
96                 'outliner.c',
97                 'splash.jpg.c',
98                 'playanim.c',
99                 'poseobject.c',
100                 'previewrender.c',
101                 'renderwin.c',
102                 'resources.c',
103                 'scrarea.c',
104                 'screendump.c',
105                 'sequence.c',
106                 'seqaudio.c',
107                 'space.c',
108                 'spacetypes.c',
109                 'swapbuffers.c',
110                 'toets.c',
111                 'toolbox.c',
112                 'unwrapper.c',
113                 'usiblender.c',
114                 'view.c',
115                 'vpaint.c',
116                 'writeavicodec.c',
117                 'writeimage.c',
118                 'writemovie.c',
119                 'language.c']
120
121 src_env.Append (CPPPATH = ['#/intern/guardedalloc',
122                            '../blenlib',
123                            '../makesdna',
124                            '../blenkernel',
125                            '../include',
126                            '#/intern/bmfont',
127                            '../imbuf',
128                            '../render/extern/include',
129                            '#/intern/bsp/extern',
130                            '../renderconverter',
131                            '../radiosity/extern/include',
132                            '#/intern/decimation/extern',
133                            '../blenloader',
134                            '../python',
135                            '../../kernel/gen_system',
136                            '#/intern/SoundSystem',
137                            '../readstreamglue',
138                            '../img',
139                            '../quicktime',
140                            '#/intern/ghost',
141                            '#/intern/opennl/extern'])
142
143 src_env.Append (CPPPATH = user_options_dict['PYTHON_INCLUDE'])
144 src_env.Append (CPPPATH = user_options_dict['SDL_INCLUDE'])
145 src_env.Append (CPPPATH = user_options_dict['OPENGL_INCLUDE'])
146
147 if user_options_dict['USE_INTERNATIONAL'] == 1:
148     src_env.Append (CPPPATH=['../ftfont'])
149     src_env.Append (CPPDEFINES = 'INTERNATIONAL')
150     src_env.Append (CPPDEFINES = 'FTGL_STATIC_LIBRARY')
151
152 if user_options_dict['USE_BUILDINFO'] == 1:
153     src_env.Append (CPPDEFINES = 'NAN_BUILDINFO')
154
155 src_env.Append (CPPPATH=extra_includes)
156
157 src_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_blendersrc', source=source_files)