SCons: make OSL linking work on windows, and fix OSL compiler path issue to

properly expand to absolute path.
This commit is contained in:
Brecht Van Lommel
2012-11-19 14:54:35 +00:00
parent 9947f70f19
commit 312abf8cb2
3 changed files with 28 additions and 19 deletions

View File

@@ -13,11 +13,8 @@ oso_files = []
if env['WITH_BF_CYCLES_OSL']:
shaders = env.Clone()
# osl compiler info
if env['OURPLATFORM']=='darwin':
osl_compiler = env['LCGDIR'][1:] + '/osl/bin/oslc' # get the leading "#" away that breaks shadercompile
else:
osl_compiler = env['BF_OSL_COMPILER']
# osl compiler
osl_compiler = env._canonicalize(env.subst(env['BF_OSL_COMPILER']))
# build directory
root_build_dir = normpath(env['BF_BUILDDIR'])