From dbd44e3bf5bc2f9ce0ae8d65a285155b5798e48d Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 3 Dec 2012 16:51:05 +0000 Subject: Fix scons not installing closure/ directory for runtime compiles of CUDA kernel. --- SConstruct | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'SConstruct') diff --git a/SConstruct b/SConstruct index d6972de8cab..c2bae0459ca 100644 --- a/SConstruct +++ b/SConstruct @@ -700,6 +700,8 @@ if env['OURPLATFORM']!='darwin': source.remove('kernel.cpp') source.remove('CMakeLists.txt') source.remove('svm') + source.remove('closure') + source.remove('shaders') source.remove('osl') source=['intern/cycles/kernel/'+s for s in source] source.append('intern/cycles/util/util_color.h') @@ -715,6 +717,14 @@ if env['OURPLATFORM']!='darwin': if '__pycache__' in source: source.remove('__pycache__') source=['intern/cycles/kernel/svm/'+s for s in source] scriptinstall.append(env.Install(dir=dir,source=source)) + # closure + dir=os.path.join(env['BF_INSTALLDIR'], VERSION, 'scripts', 'addons','cycles', 'kernel', 'closure') + source=os.listdir('intern/cycles/kernel/closure') + if '.svn' in source: source.remove('.svn') + if '_svn' in source: source.remove('_svn') + if '__pycache__' in source: source.remove('__pycache__') + source=['intern/cycles/kernel/closure/'+s for s in source] + scriptinstall.append(env.Install(dir=dir,source=source)) # licenses dir=os.path.join(env['BF_INSTALLDIR'], VERSION, 'scripts', 'addons','cycles', 'license') -- cgit v1.2.3