2008-05-05 16:56:44 +00:00
|
|
|
#!/usr/bin/python
|
2008-05-06 17:23:27 +00:00
|
|
|
import sys
|
|
|
|
|
Import ('env')
|
|
|
|
|
|
|
|
|
|
sources = []
|
|
|
|
|
defs = []
|
2008-05-09 23:06:28 +00:00
|
|
|
incs = ''
|
2008-05-06 17:23:27 +00:00
|
|
|
|
2009-12-06 22:01:04 +00:00
|
|
|
incs += '../blenkernel ../blenloader ../blenlib ../imbuf ../makesdna ../makesrna'
|
2009-12-13 21:28:31 +00:00
|
|
|
incs += ' ../python ../python/intern'
|
|
|
|
|
incs += ' ../render/extern/include ../render/intern/include ../include ../src'
|
|
|
|
|
incs += ' #/extern/glew/include #/intern/guardedalloc ../freestyle'
|
2008-07-29 05:45:16 +00:00
|
|
|
incs += ' ' + env['BF_PYTHON_INC']
|
2008-05-09 23:06:28 +00:00
|
|
|
incs += ' ' + env['BF_PNG_INC']
|
2008-05-06 17:23:27 +00:00
|
|
|
|
2009-10-08 06:32:07 +00:00
|
|
|
|
|
|
|
|
if env['OURPLATFORM'] == 'linux2':
|
|
|
|
|
cflags='-pthread'
|
|
|
|
|
incs += ' ../../../extern/binreloc/include'
|
|
|
|
|
|
|
|
|
|
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
|
|
|
|
|
incs += ' ' + env['BF_PTHREADS_INC']
|
|
|
|
|
|
2008-05-09 23:06:28 +00:00
|
|
|
########################################################
|
|
|
|
|
# folders sources
|
|
|
|
|
########################################################
|
|
|
|
|
|
|
|
|
|
# system
|
|
|
|
|
prefix = 'intern/system'
|
|
|
|
|
system_sources = env.Glob(prefix + '/*.cpp')
|
|
|
|
|
|
|
|
|
|
# image
|
|
|
|
|
prefix = 'intern/image'
|
|
|
|
|
image_sources = env.Glob(prefix + '/*.cpp')
|
|
|
|
|
|
|
|
|
|
# geometry
|
|
|
|
|
prefix = 'intern/geometry'
|
|
|
|
|
geometry_sources = env.Glob(prefix + '/*.cpp')
|
|
|
|
|
|
|
|
|
|
# scene_graph
|
|
|
|
|
prefix = 'intern/scene_graph'
|
|
|
|
|
scene_graph_sources = env.Glob(prefix + '/*.cpp')
|
|
|
|
|
|
|
|
|
|
# winged_edge
|
|
|
|
|
prefix = 'intern/winged_edge'
|
|
|
|
|
winged_edge_sources = env.Glob(prefix + '/*.cpp')
|
|
|
|
|
|
|
|
|
|
# view_map
|
|
|
|
|
prefix = 'intern/view_map'
|
|
|
|
|
view_map_sources = env.Glob(prefix + '/*.cpp')
|
|
|
|
|
|
|
|
|
|
# stroke
|
|
|
|
|
prefix = 'intern/stroke'
|
|
|
|
|
stroke_sources = env.Glob(prefix + '/*.cpp')
|
|
|
|
|
|
2009-10-05 01:27:35 +00:00
|
|
|
# application
|
|
|
|
|
prefix = 'intern/application'
|
|
|
|
|
application_sources = env.Glob(prefix + '/*.cpp')
|
|
|
|
|
|
|
|
|
|
# blender_interface
|
|
|
|
|
prefix = 'intern/blender_interface'
|
|
|
|
|
interface_sources = env.Glob(prefix + '/*.cpp')
|
2008-05-09 23:06:28 +00:00
|
|
|
|
2008-07-12 04:02:08 +00:00
|
|
|
# Python
|
|
|
|
|
prefix = 'intern/python'
|
2008-07-29 05:45:16 +00:00
|
|
|
python_sources = env.Glob(prefix + '/*.cpp') \
|
|
|
|
|
+ env.Glob(prefix + '/*/*.cpp') \
|
|
|
|
|
+ env.Glob(prefix + '/*/*/*.cpp') \
|
|
|
|
|
+ env.Glob(prefix + '/*/*/*/*.cpp')
|
2008-05-25 17:34:21 +00:00
|
|
|
|
2008-05-18 13:01:52 +00:00
|
|
|
sources = system_sources + image_sources + geometry_sources + scene_graph_sources \
|
2010-07-10 00:09:05 +00:00
|
|
|
+ winged_edge_sources + view_map_sources + stroke_sources \
|
2009-10-05 01:27:35 +00:00
|
|
|
+ application_sources + interface_sources + python_sources
|
2008-05-09 23:06:28 +00:00
|
|
|
|
|
|
|
|
env.BlenderLib (libname="bf_freestyle",
|
|
|
|
|
sources=sources,
|
|
|
|
|
includes=Split(incs),
|
|
|
|
|
defines=defs,
|
2009-09-28 03:56:31 +00:00
|
|
|
libtype=['core'],
|
2009-10-15 19:23:11 +00:00
|
|
|
priority = [370] # bf_python is 361
|
2008-05-19 05:34:31 +00:00
|
|
|
)
|
2008-05-09 23:06:28 +00:00
|
|
|
|