forked from bartvdbraak/blender
Windows / Scons OSL:
* Initial support, still commented.
This commit is contained in:
parent
5c6f6301b0
commit
1c9b548d92
@ -150,6 +150,19 @@ WITH_BF_OPENMP = True
|
|||||||
#Cycles
|
#Cycles
|
||||||
WITH_BF_CYCLES = True
|
WITH_BF_CYCLES = True
|
||||||
|
|
||||||
|
#OSL
|
||||||
|
'''
|
||||||
|
WITH_BF_CYCLES_OSL = True
|
||||||
|
WITH_BF_STATICOSL = True
|
||||||
|
BF_OSL = LIBDIR + '/osl'
|
||||||
|
BF_OSL_INC = '${BF_OSL}/include'
|
||||||
|
# note oslexec would passed via program linkflags, which is needed to
|
||||||
|
# make llvm happy with osl_allocate_closure_component
|
||||||
|
BF_OSL_LIB = 'oslcomp oslexec oslquery'
|
||||||
|
BF_OSL_LIBPATH = '${BF_OSL}/lib'
|
||||||
|
BF_OSL_COMPILER = '${BF_OSL}/bin/oslc'
|
||||||
|
'''
|
||||||
|
|
||||||
WITH_BF_OIIO = True
|
WITH_BF_OIIO = True
|
||||||
BF_OIIO = '${LIBDIR}/openimageio'
|
BF_OIIO = '${LIBDIR}/openimageio'
|
||||||
BF_OIIO_INC = '${BF_OIIO}/include'
|
BF_OIIO_INC = '${BF_OIIO}/include'
|
||||||
|
@ -146,6 +146,19 @@ WITH_BF_OPENMP = True
|
|||||||
#Cycles
|
#Cycles
|
||||||
WITH_BF_CYCLES = True
|
WITH_BF_CYCLES = True
|
||||||
|
|
||||||
|
#OSL
|
||||||
|
'''
|
||||||
|
WITH_BF_CYCLES_OSL = True
|
||||||
|
WITH_BF_STATICOSL = True
|
||||||
|
BF_OSL = LIBDIR + '/osl'
|
||||||
|
BF_OSL_INC = '${BF_OSL}/include'
|
||||||
|
# note oslexec would passed via program linkflags, which is needed to
|
||||||
|
# make llvm happy with osl_allocate_closure_component
|
||||||
|
BF_OSL_LIB = 'oslcomp oslexec oslquery'
|
||||||
|
BF_OSL_LIBPATH = '${BF_OSL}/lib'
|
||||||
|
BF_OSL_COMPILER = '${BF_OSL}/bin/oslc'
|
||||||
|
'''
|
||||||
|
|
||||||
WITH_BF_OIIO = True
|
WITH_BF_OIIO = True
|
||||||
BF_OIIO = '${LIBDIR}/openimageio'
|
BF_OIIO = '${LIBDIR}/openimageio'
|
||||||
BF_OIIO_INC = '${BF_OIIO}/include'
|
BF_OIIO_INC = '${BF_OIIO}/include'
|
||||||
|
@ -13,7 +13,7 @@ oso_files = []
|
|||||||
if env['WITH_BF_CYCLES_OSL']:
|
if env['WITH_BF_CYCLES_OSL']:
|
||||||
shaders = env.Clone()
|
shaders = env.Clone()
|
||||||
|
|
||||||
# cuda info
|
# osl compiler info
|
||||||
osl_compiler = env['BF_OSL_COMPILER']
|
osl_compiler = env['BF_OSL_COMPILER']
|
||||||
|
|
||||||
# build directory
|
# build directory
|
||||||
|
Loading…
Reference in New Issue
Block a user