2012-09-15 10:03:17 +00:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
|
|
|
Import('env')
|
|
|
|
|
2012-10-04 13:39:08 +00:00
|
|
|
sources = env.Glob('*.cc')
|
2012-09-15 10:03:17 +00:00
|
|
|
|
|
|
|
incs = '. ../guardedalloc ../../source/blender/blenlib'
|
2012-10-04 13:39:08 +00:00
|
|
|
defs = []
|
2012-09-15 10:03:17 +00:00
|
|
|
|
|
|
|
if env['WITH_BF_OCIO']:
|
2012-10-04 13:39:08 +00:00
|
|
|
defs.append('WITH_OCIO')
|
2012-10-04 23:44:03 +00:00
|
|
|
incs += ' ' + env['BF_OCIO_INC']
|
2012-09-15 10:03:17 +00:00
|
|
|
|
|
|
|
if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
|
|
|
|
incs += ' ' + env['BF_BOOST_INC']
|
|
|
|
else:
|
2012-10-04 23:44:03 +00:00
|
|
|
sources.remove('ocio_impl.cc')
|
2012-09-15 10:03:17 +00:00
|
|
|
|
2012-10-04 13:39:08 +00:00
|
|
|
env.BlenderLib( 'bf_intern_opencolorio', sources, Split(incs), defs, libtype=['extern','player'], priority=[10, 185])
|