Newer
Older
#!/usr/bin/python
import sys
Import ('env')
sources = []
Campbell Barton
committed
incs = [
'#/intern/guardedalloc',
'#/extern/glew/include',
'../blenkernel',
'../blenlib',
'../freestyle',
'../imbuf',
'../makesdna',
'../makesrna',
'../python',
'../python/intern',
'../render/extern/include',
'../render/intern/include',
env['BF_PYTHON_INC'],
env['BF_PNG_INC'],
]
incs = ' '.join(incs)
defs = ['WITH_FREESTYLE']
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
Tamito Kajiyama
committed
incs += ' ' + env['BF_PTHREADS_INC']
Maxime Curioni
committed
########################################################
Tamito Kajiyama
committed
# folders sources
Maxime Curioni
committed
########################################################
Tamito Kajiyama
committed
# system
Maxime Curioni
committed
prefix = 'intern/system'
system_sources = env.Glob(prefix + '/*.cpp')
Tamito Kajiyama
committed
# image
Maxime Curioni
committed
prefix = 'intern/image'
image_sources = env.Glob(prefix + '/*.cpp')
Tamito Kajiyama
committed
# geometry
Maxime Curioni
committed
prefix = 'intern/geometry'
geometry_sources = env.Glob(prefix + '/*.cpp')
Tamito Kajiyama
committed
# scene_graph
Maxime Curioni
committed
prefix = 'intern/scene_graph'
scene_graph_sources = env.Glob(prefix + '/*.cpp')
Tamito Kajiyama
committed
# winged_edge
Maxime Curioni
committed
prefix = 'intern/winged_edge'
winged_edge_sources = env.Glob(prefix + '/*.cpp')
Tamito Kajiyama
committed
# view_map
Maxime Curioni
committed
prefix = 'intern/view_map'
view_map_sources = env.Glob(prefix + '/*.cpp')
Tamito Kajiyama
committed
# stroke
Maxime Curioni
committed
prefix = 'intern/stroke'
stroke_sources = env.Glob(prefix + '/*.cpp')
Tamito Kajiyama
committed
# application
prefix = 'intern/application'
application_sources = env.Glob(prefix + '/*.cpp')
Tamito Kajiyama
committed
# blender_interface
prefix = 'intern/blender_interface'
interface_sources = env.Glob(prefix + '/*.cpp')
Maxime Curioni
committed
Tamito Kajiyama
committed
# Python
Maxime Curioni
committed
prefix = 'intern/python'
Tamito Kajiyama
committed
python_sources = env.Glob(prefix + '/*.cpp') + \
env.Glob(prefix + '/*/*.cpp') + \
env.Glob(prefix + '/*/*/*.cpp') + \
env.Glob(prefix + '/*/*/*/*.cpp')
sources = system_sources + image_sources + geometry_sources + scene_graph_sources + \
winged_edge_sources + view_map_sources + stroke_sources + \
Brecht Van Lommel
committed
application_sources + interface_sources
Tamito Kajiyama
committed
Brecht Van Lommel
committed
if False: # gives link errors 'win' in env['OURPLATFORM']:
env.BlenderLib(libname="bf_freestyle_python", sources=python_sources, includes=Split(incs),
defines=defs, libtype=['core'], priority = [369] # bf_python is 361
)
else:
sources += python_sources
Brecht Van Lommel
committed
Brecht Van Lommel
committed
env.BlenderLib(libname="bf_freestyle", sources=sources, includes=Split(incs),
defines=defs, libtype=['core'], priority = [370] # bf_python is 361