Three-in-one commit:
[blender-staging.git] / source / blender / blenlib / SConscript
1 #!/usr/bin/python
2 Import ('extra_includes')
3 Import ('user_options_dict')
4 Import ('library_env')
5
6 blenlib_env = library_env.Copy ()
7
8 source_files = ['intern/BLI_dynstr.c',
9                 'intern/BLI_ghash.c',
10                 'intern/edgehash.c',
11                 'intern/BLI_linklist.c',
12                 'intern/BLI_memarena.c',
13                 'intern/arithb.c',
14                 'intern/dynlib.c',
15                 'intern/fileops.c',
16                 'intern/gsqueue.c',
17                 'intern/matrixops.c',
18                 'intern/noise.c',
19                 'intern/psfont.c',
20                 'intern/rand.c',
21                 'intern/rct.c',
22                 'intern/scanfill.c',
23                 'intern/storage.c',
24                 'intern/time.c',
25                 'intern/util.c',
26                 'intern/vectorops.c',
27                 'intern/freetypefont.c',
28                 'intern/jitter.c',
29                 'intern/threads.c',
30                 'intern/winstuff.c']
31
32
33 blenlib_env.Append (CPPPATH = ['.',
34                                '../blenlib',
35                                '../makesdna',
36                                '../blenkernel',
37                                '#/intern/guardedalloc',
38                                '../include'])
39
40 if user_options_dict['USE_INTERNATIONAL'] == 1:
41     blenlib_env.Append (CPPDEFINES = 'WITH_FREETYPE2')
42
43 blenlib_env.Append (CPPPATH = extra_includes)
44 blenlib_env.Prepend (CPPPATH = user_options_dict['FREETYPE_INCLUDE'])
45 blenlib_env.Append (CPPPATH = user_options_dict['Z_INCLUDE'])
46 blenlib_env.Append (CPPPATH = user_options_dict['SDL_INCLUDE'])
47 blenlib_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_blenlib', source=source_files)