Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Selten <michel@mselten.demon.nl>2004-02-15 22:25:32 +0300
committerMichel Selten <michel@mselten.demon.nl>2004-02-15 22:25:32 +0300
commit9330e553e88fe77b3a08cfac3a13046031b58e56 (patch)
tree69b9155aad185dc347bef0dcffaf8c538980fb72 /source/blender
parent2fbf2b3775405566eb5906da2c7223eb9b626427 (diff)
SCons updates
* libraries are now generated in [BUILD_DIR]/lib * passed the user_options to all libraries now. This means I could remove a couple of Export/Import lines. * Changed the order in source/blender/src/SConscript and source/gameengine/SConscript. All libraries are now sorted alphabetically. This has no impact on the build process.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/SConscript35
-rw-r--r--source/blender/avi/SConscript3
-rw-r--r--source/blender/blenkernel/SConscript3
-rw-r--r--source/blender/blenlib/SConscript3
-rw-r--r--source/blender/blenloader/SConscript3
-rw-r--r--source/blender/blenpluginapi/SConscript3
-rw-r--r--source/blender/deflate/SConscript3
-rw-r--r--source/blender/ftfont/SConscript3
-rw-r--r--source/blender/imbuf/SConscript3
-rw-r--r--source/blender/img/SConscript3
-rw-r--r--source/blender/inflate/SConscript3
-rw-r--r--source/blender/makesdna/SConscript3
-rw-r--r--source/blender/makesdna/intern/SConscript10
-rw-r--r--source/blender/python/SConscript3
-rw-r--r--source/blender/quicktime/SConscript3
-rw-r--r--source/blender/radiosity/SConscript3
-rw-r--r--source/blender/readblenfile/SConscript3
-rw-r--r--source/blender/readstreamglue/SConscript3
-rw-r--r--source/blender/render/SConscript3
-rw-r--r--source/blender/renderconverter/SConscript3
-rw-r--r--source/blender/src/SConscript6
-rw-r--r--source/blender/writeblenfile/SConscript3
-rw-r--r--source/blender/writestreamglue/SConscript3
-rw-r--r--source/blender/yafray/SConscript3
24 files changed, 67 insertions, 47 deletions
diff --git a/source/blender/SConscript b/source/blender/SConscript
index 3b01792081d..0efdb463ba9 100644
--- a/source/blender/SConscript
+++ b/source/blender/SConscript
@@ -1,29 +1,28 @@
-Import ('use_quicktime')
-Import ('use_international')
+Import ('user_options_dict')
-SConscript(['blenloader/SConscript',
+SConscript(['avi/SConscript',
+ 'blenkernel/SConscript',
+ 'blenlib/SConscript',
+ 'blenloader/SConscript',
+ 'blenpluginapi/SConscript',
'deflate/SConscript',
- 'inflate/SConscript',
- 'writestreamglue/SConscript',
- 'readstreamglue/SConscript',
- 'writeblenfile/SConscript',
- 'readblenfile/SConscript',
- 'avi/SConscript',
'imbuf/SConscript',
'img/SConscript',
- 'render/SConscript',
- 'radiosity/SConscript',
- 'blenlib/SConscript',
- 'blenkernel/SConscript',
- 'blenpluginapi/SConscript',
- 'python/SConscript',
+ 'inflate/SConscript',
'makesdna/SConscript',
- 'src/SConscript',
+ 'python/SConscript',
+ 'radiosity/SConscript',
+ 'readblenfile/SConscript',
+ 'readstreamglue/SConscript',
+ 'render/SConscript',
'renderconverter/SConscript',
+ 'src/SConscript',
+ 'writeblenfile/SConscript',
+ 'writestreamglue/SConscript',
'yafray/SConscript'])
-if use_international == 'true':
+if user_options_dict['USE_INTERNATIONAL'] == 1:
SConscript (['ftfont/SConscript'])
-if use_quicktime == 'true':
+if user_options_dict['USE_QUICKTIME'] == 1:
SConscript (['quicktime/SConscript'])
diff --git a/source/blender/avi/SConscript b/source/blender/avi/SConscript
index e312c65ff84..8548178606c 100644
--- a/source/blender/avi/SConscript
+++ b/source/blender/avi/SConscript
@@ -5,6 +5,7 @@ Import ('cflags')
Import ('cxxflags')
Import ('defines')
Import ('extra_includes')
+Import ('user_options_dict')
avi_env.Append (CCFLAGS = cflags)
avi_env.Append (CXXFLAGS = cxxflags)
avi_env.Append (CPPDEFINES = defines)
@@ -21,4 +22,4 @@ avi_env.Append (CPPPATH = ['.',
'#/intern/guardedalloc'])
avi_env.Append (CPPPATH=extra_includes)
-avi_env.Library (target='#/lib/blender_avi', source=source_files)
+avi_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_avi', source=source_files)
diff --git a/source/blender/blenkernel/SConscript b/source/blender/blenkernel/SConscript
index e82ebebb2f9..7f151f68e26 100644
--- a/source/blender/blenkernel/SConscript
+++ b/source/blender/blenkernel/SConscript
@@ -4,6 +4,7 @@ blenkernel_env = Environment()
Import ('cflags')
Import ('cxxflags')
Import ('defines')
+Import ('user_options_dict')
blenkernel_env.Append (CCFLAGS = cflags)
blenkernel_env.Append (CXXFLAGS = cxxflags)
blenkernel_env.Append (CPPDEFINES = defines)
@@ -57,4 +58,4 @@ blenkernel_env.Append (CPPPATH = ['.',
'#/intern/iksolver/extern',
'../blenloader'])
-blenkernel_env.Library (target='#/lib/blender_blenkernel', source=source_files)
+blenkernel_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_blenkernel', source=source_files)
diff --git a/source/blender/blenlib/SConscript b/source/blender/blenlib/SConscript
index 956e766edf9..d3172a3515f 100644
--- a/source/blender/blenlib/SConscript
+++ b/source/blender/blenlib/SConscript
@@ -5,6 +5,7 @@ Import ('cflags')
Import ('cxxflags')
Import ('defines')
Import ('extra_includes')
+Import ('user_options_dict')
blenlib_env.Append (CCFLAGS = cflags)
blenlib_env.Append (CXXFLAGS = cxxflags)
blenlib_env.Append (CPPDEFINES = defines)
@@ -38,4 +39,4 @@ blenlib_env.Append (CPPPATH = ['.',
'../include'])
blenlib_env.Append (CPPPATH = extra_includes)
-blenlib_env.Library (target='#/lib/blender_blenlib', source=source_files)
+blenlib_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_blenlib', source=source_files)
diff --git a/source/blender/blenloader/SConscript b/source/blender/blenloader/SConscript
index 2a11d60bf44..fdaa06afa62 100644
--- a/source/blender/blenloader/SConscript
+++ b/source/blender/blenloader/SConscript
@@ -4,6 +4,7 @@ blenloader_env = Environment()
Import ('cflags')
Import ('cxxflags')
Import ('defines')
+Import ('user_options_dict')
blenloader_env.Append (CCFLAGS = cflags)
blenloader_env.Append (CXXFLAGS = cxxflags)
blenloader_env.Append (CPPDEFINES = defines)
@@ -26,4 +27,4 @@ blenloader_env.Append (CPPPATH = ['.',
'../writestreamglue',
'../readstreamglue'])
-blenloader_env.Library (target='#/lib/blender_blenloader', source=source_files)
+blenloader_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_blenloader', source=source_files)
diff --git a/source/blender/blenpluginapi/SConscript b/source/blender/blenpluginapi/SConscript
index 33800197f6d..91854db6816 100644
--- a/source/blender/blenpluginapi/SConscript
+++ b/source/blender/blenpluginapi/SConscript
@@ -4,6 +4,7 @@ blenplugin_env = Environment()
Import ('cflags')
Import ('cxxflags')
Import ('defines')
+Import ('user_options_dict')
blenplugin_env.Append (CCFLAGS = cflags)
blenplugin_env.Append (CXXFLAGS = cxxflags)
blenplugin_env.Append (CPPDEFINES = defines)
@@ -17,4 +18,4 @@ blenplugin_env.Append (CPPPATH = ['.',
'../imbuf',
'../makesdna'])
-blenplugin_env.Library (target='#/lib/blender_blenpluginapi', source=source_files)
+blenplugin_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_blenpluginapi', source=source_files)
diff --git a/source/blender/deflate/SConscript b/source/blender/deflate/SConscript
index d20f7db7fd6..190e4ed416b 100644
--- a/source/blender/deflate/SConscript
+++ b/source/blender/deflate/SConscript
@@ -5,6 +5,7 @@ Import ('cflags')
Import ('cxxflags')
Import ('defines')
Import ('extra_includes')
+Import ('user_options_dict')
deflate_env.Append (CCFLAGS = cflags)
deflate_env.Append (CXXFLAGS = cxxflags)
deflate_env.Append (CPPDEFINES = defines)
@@ -18,4 +19,4 @@ deflate_env.Append (CPPPATH = ['.',
'../inflate'])
deflate_env.Append (CPPPATH=extra_includes)
-deflate_env.Library (target='#/lib/blender_deflate', source=source_files)
+deflate_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_deflate', source=source_files)
diff --git a/source/blender/ftfont/SConscript b/source/blender/ftfont/SConscript
index d75b2abfc37..f44b765ec76 100644
--- a/source/blender/ftfont/SConscript
+++ b/source/blender/ftfont/SConscript
@@ -3,6 +3,7 @@ Import ('cflags')
Import ('cxxflags')
Import ('extra_includes')
Import ('defines')
+Import ('user_options_dict')
source_files = ['intern/FTF_Api.cpp',
'intern/FTF_TTFont.cpp']
@@ -18,4 +19,4 @@ ftf_env.Append(CPPPATH = include_paths)
ftf_env.Append(CCFLAGS = cflags)
ftf_env.Append(CXXFLAGS = cxxflags)
ftf_env.Append(CPPDEFINES = defines)
-ftf_env.Library (target='#/lib/blender_FTF', source=source_files)
+ftf_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_FTF', source=source_files)
diff --git a/source/blender/imbuf/SConscript b/source/blender/imbuf/SConscript
index 52a1795d666..d67b80c5b8a 100644
--- a/source/blender/imbuf/SConscript
+++ b/source/blender/imbuf/SConscript
@@ -5,6 +5,7 @@ Import ('cflags')
Import ('cxxflags')
Import ('defines')
Import ('extra_includes')
+Import ('user_options_dict')
imbuf_env.Append (CCFLAGS = cflags)
imbuf_env.Append (CXXFLAGS = cxxflags)
imbuf_env.Append (CPPDEFINES = defines)
@@ -46,4 +47,4 @@ imbuf_env.Append (CPPPATH = ['.',
'../blenkernel'])
imbuf_env.Append (CPPPATH = extra_includes)
-imbuf_env.Library (target='#/lib/blender_imbuf', source=source_files)
+imbuf_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_imbuf', source=source_files)
diff --git a/source/blender/img/SConscript b/source/blender/img/SConscript
index 8766eb76ba2..99f8d84e97c 100644
--- a/source/blender/img/SConscript
+++ b/source/blender/img/SConscript
@@ -4,6 +4,7 @@ img_env = Environment()
Import ('cflags')
Import ('cxxflags')
Import ('defines')
+Import ('user_options_dict')
img_env.Append (CCFLAGS = cflags)
img_env.Append (CXXFLAGS = cxxflags)
img_env.Append (CPPDEFINES = defines)
@@ -16,4 +17,4 @@ source_files = ['intern/IMG_Api.cpp',
'intern/IMG_PixmapRGBA32.cpp',
'intern/IMG_Rect.cpp']
-img_env.Library (target='#/lib/blender_img', source=source_files)
+img_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_img', source=source_files)
diff --git a/source/blender/inflate/SConscript b/source/blender/inflate/SConscript
index 4ffb3b48ebc..65bb8586799 100644
--- a/source/blender/inflate/SConscript
+++ b/source/blender/inflate/SConscript
@@ -6,6 +6,7 @@ Import ('cflags')
Import ('cxxflags')
Import ('defines')
Import ('extra_includes')
+Import ('user_options_dict')
inflate_env.Append (CCFLAGS = cflags)
inflate_env.Append (CXXFLAGS = cxxflags)
inflate_env.Append (CPPDEFINES = defines)
@@ -17,4 +18,4 @@ inflate_env.Append (CPPPATH = ['.',
'../readstreamglue'])
inflate_env.Append (CPPPATH = extra_includes)
-inflate_env.Library (target='#/lib/blender_inflate', source=source_files)
+inflate_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_inflate', source=source_files)
diff --git a/source/blender/makesdna/SConscript b/source/blender/makesdna/SConscript
index 8a496e383da..a73336c1aed 100644
--- a/source/blender/makesdna/SConscript
+++ b/source/blender/makesdna/SConscript
@@ -4,6 +4,7 @@ makesdna_env = Environment()
Import ('cflags')
Import ('cxxflags')
Import ('defines')
+Import ('user_options_dict')
makesdna_env.Append (CCFLAGS = cflags)
makesdna_env.Append (CXXFLAGS = cxxflags)
makesdna_env.Append (CPPDEFINES = defines)
@@ -15,4 +16,4 @@ objs.append (o)
makesdna_env.Append (CPPPATH = ['#/intern/guardedalloc'])
-makesdna_env.Library (target='#/lib/blender_makesdna', source=objs)
+makesdna_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_makesdna', source=objs)
diff --git a/source/blender/makesdna/intern/SConscript b/source/blender/makesdna/intern/SConscript
index f636b228a63..5924dcb7eb3 100644
--- a/source/blender/makesdna/intern/SConscript
+++ b/source/blender/makesdna/intern/SConscript
@@ -6,7 +6,7 @@ Import ('defines')
Import ('platform_libs')
Import ('platform_libpath')
Import ('platform_linkflags')
-Import ('root_build_dir')
+Import ('user_options_dict')
if sys.platform=='win32':
platform_linkflags = ['/SUBSYSTEM:CONSOLE',
@@ -33,14 +33,14 @@ makesdna_tool.Append (CCFLAGS = cflags)
makesdna_tool.Append (CXXFLAGS = cxxflags)
makesdna_tool.Append (CPPDEFINES = defines)
makesdna_tool.Append (LINKFLAGS = platform_linkflags)
-makesdna_tool.Append (LIBPATH = '#/lib')
+makesdna_tool.Append (LIBPATH = '#'+user_options_dict['BUILD_DIR']+'/lib')
makesdna_tool.Append (LIBS = 'blender_guardedalloc')
-makesdna_tool.Program (target = '#'+root_build_dir+'makesdna', source = source_files)
+makesdna_tool.Program (target = '#'+user_options_dict['BUILD_DIR']+'makesdna', source = source_files)
dna = Environment ()
dna_dict = dna.Dictionary()
-makesdna_name = root_build_dir+'makesdna' + dna_dict['PROGSUFFIX']
+makesdna_name = user_options_dict['BUILD_DIR']+'makesdna' + dna_dict['PROGSUFFIX']
dna.Depends ('dna.c', '#'+makesdna_name)
-dna.Command ('dna.c', '', root_build_dir+"makesdna $TARGET")
+dna.Command ('dna.c', '', user_options_dict['BUILD_DIR']+"makesdna $TARGET")
obj = 'intern/dna.c'
Return ('obj')
diff --git a/source/blender/python/SConscript b/source/blender/python/SConscript
index 02a9444b128..66b359bc61e 100644
--- a/source/blender/python/SConscript
+++ b/source/blender/python/SConscript
@@ -6,6 +6,7 @@ Import ('cxxflags')
Import ('defines')
Import ('python_include')
Import ('extra_includes')
+Import ('user_options_dict')
python_env.Append (CCFLAGS = cflags)
python_env.Append (CXXFLAGS = cxxflags)
python_env.Append (CPPDEFINES = defines)
@@ -60,4 +61,4 @@ python_env.Append (CPPPATH = ['api2_2x',
python_include])
python_env.Append (CPPPATH = extra_includes)
-python_env.Library (target='#/lib/blender_python', source=source_files)
+python_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_python', source=source_files)
diff --git a/source/blender/quicktime/SConscript b/source/blender/quicktime/SConscript
index bcc1792d586..07c22398fef 100644
--- a/source/blender/quicktime/SConscript
+++ b/source/blender/quicktime/SConscript
@@ -5,6 +5,7 @@ Import ('cflags')
Import ('cxxflags')
Import ('extra_includes')
Import ('defines')
+Import ('user_options_dict')
quicktime_env.Append (CCFLAGS = cflags)
quicktime_env.Append (CXXFLAGS = cxxflags)
quicktime_env.Append (CPPPATH = extra_includes)
@@ -24,4 +25,4 @@ quicktime_env.Append (CPPPATH = ['.',
'../readstreamglue',
'../render/extern/include'])
-quicktime_env.Library (target='#/lib/blender_quicktime', source=source_files)
+quicktime_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_quicktime', source=source_files)
diff --git a/source/blender/radiosity/SConscript b/source/blender/radiosity/SConscript
index e88e896f095..512d7dad0a4 100644
--- a/source/blender/radiosity/SConscript
+++ b/source/blender/radiosity/SConscript
@@ -4,6 +4,7 @@ rad_env = Environment ()
Import ('cflags')
Import ('cxxflags')
Import ('defines')
+Import ('user_options_dict')
rad_env.Append (CCFLAGS = cflags)
rad_env.Append (CXXFLAGS = cxxflags)
rad_env.Append (CPPDEFINES = defines)
@@ -24,4 +25,4 @@ rad_env.Append (CPPPATH = ['extern/include',
'#/intern/guardedalloc',
'../render/extern/include'])
-rad_env.Library (target='#/lib/blender_radiosity', source=source_files)
+rad_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_radiosity', source=source_files)
diff --git a/source/blender/readblenfile/SConscript b/source/blender/readblenfile/SConscript
index 4ba91d55c9a..4452b21f718 100644
--- a/source/blender/readblenfile/SConscript
+++ b/source/blender/readblenfile/SConscript
@@ -4,6 +4,7 @@ readblenfile_env = Environment()
Import ('cflags')
Import ('cxxflags')
Import ('defines')
+Import ('user_options_dict')
readblenfile_env.Append (CCFLAGS = cflags)
readblenfile_env.Append (CXXFLAGS = cxxflags)
readblenfile_env.Append (CPPDEFINES = defines)
@@ -16,4 +17,4 @@ readblenfile_env.Append (CPPPATH = ['.',
'../blenkernel',
'../../kernel/gen_messaging'])
-readblenfile_env.Library (target='#/lib/blender_readblenfile', source=source_files)
+readblenfile_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_readblenfile', source=source_files)
diff --git a/source/blender/readstreamglue/SConscript b/source/blender/readstreamglue/SConscript
index d1dc3084db6..3c96bcca9b0 100644
--- a/source/blender/readstreamglue/SConscript
+++ b/source/blender/readstreamglue/SConscript
@@ -5,6 +5,7 @@ Import ('cflags')
Import ('cxxflags')
Import ('defines')
Import ('extra_includes')
+Import ('user_options_dict')
readstrgl_env.Append (CCFLAGS = cflags)
readstrgl_env.Append (CXXFLAGS = cxxflags)
readstrgl_env.Append (CPPDEFINES = defines)
@@ -18,4 +19,4 @@ readstrgl_env.Append (CPPPATH = ['.',
'../inflate'])
readstrgl_env.Append (CPPPATH = extra_includes)
-readstrgl_env.Library (target='#/lib/blender_readstreamglue', source=source_files)
+readstrgl_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_readstreamglue', source=source_files)
diff --git a/source/blender/render/SConscript b/source/blender/render/SConscript
index 311f90d27d6..ea9d30a7003 100644
--- a/source/blender/render/SConscript
+++ b/source/blender/render/SConscript
@@ -4,6 +4,7 @@ render_env = Environment()
Import ('cflags')
Import ('cxxflags')
Import ('defines')
+Import ('user_options_dict')
render_env.Append (CCFLAGS = cflags)
render_env.Append (CXXFLAGS = cxxflags)
render_env.Append (CPPDEFINES = defines)
@@ -43,4 +44,4 @@ render_env.Append (CPPPATH = ['intern/include',
'../../kernel/gen_messaging',
'../yafray'])
-render_env.Library (target='#/lib/blender_render', source=source_files)
+render_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_render', source=source_files)
diff --git a/source/blender/renderconverter/SConscript b/source/blender/renderconverter/SConscript
index b3f49dd9451..1cd12c181f9 100644
--- a/source/blender/renderconverter/SConscript
+++ b/source/blender/renderconverter/SConscript
@@ -4,6 +4,7 @@ renderconv_env = Environment()
Import ('cflags')
Import ('cxxflags')
Import ('defines')
+Import ('user_options_dict')
renderconv_env.Append (CCFLAGS = cflags)
renderconv_env.Append (CXXFLAGS = cxxflags)
renderconv_env.Append (CPPDEFINES = defines)
@@ -19,4 +20,4 @@ renderconv_env.Append (CPPPATH = ['.',
'../render/extern/include',
'../python'])
-renderconv_env.Library (target='#/lib/blender_renderconverter', source=source_files)
+renderconv_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_renderconverter', source=source_files)
diff --git a/source/blender/src/SConscript b/source/blender/src/SConscript
index 8b84934271f..c718ad1c90f 100644
--- a/source/blender/src/SConscript
+++ b/source/blender/src/SConscript
@@ -8,7 +8,7 @@ Import ('python_include')
Import ('sdl_cflags')
Import ('sdl_include')
Import ('extra_includes')
-Import ('use_international')
+Import ('user_options_dict')
src_env.Append (CCFLAGS = cflags)
src_env.Append (CCFLAGS = sdl_cflags)
src_env.Append (CXXFLAGS = cxxflags)
@@ -140,9 +140,9 @@ src_env.Append (CPPPATH = ['#/intern/guardedalloc',
python_include,
sdl_include])
-if use_international=='true':
+if user_options_dict['USE_INTERNATIONAL'] == 1:
src_env.Append (CPPPATH=['../ftfont'])
src_env.Append (CPPPATH=extra_includes)
-src_env.Library (target='#/lib/blender_blendersrc', source=source_files)
+src_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_blendersrc', source=source_files)
diff --git a/source/blender/writeblenfile/SConscript b/source/blender/writeblenfile/SConscript
index c669b495cfc..48a1cba4949 100644
--- a/source/blender/writeblenfile/SConscript
+++ b/source/blender/writeblenfile/SConscript
@@ -5,6 +5,7 @@ Import ('cflags')
Import ('cxxflags')
Import ('defines')
Import ('extra_includes')
+Import ('user_options_dict')
wrblenfile_env.Append (CCFLAGS = cflags)
wrblenfile_env.Append (CXXFLAGS = cxxflags)
wrblenfile_env.Append (CPPDEFINES = defines)
@@ -19,4 +20,4 @@ wrblenfile_env.Append (CPPPATH = ['.',
'../readblenfile'])
wrblenfile_env.Append (CPPPATH = extra_includes)
-wrblenfile_env.Library (target='#/lib/blender_writeblenfile', source=source_files)
+wrblenfile_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_writeblenfile', source=source_files)
diff --git a/source/blender/writestreamglue/SConscript b/source/blender/writestreamglue/SConscript
index 455f53b3306..aa2d4d10e2e 100644
--- a/source/blender/writestreamglue/SConscript
+++ b/source/blender/writestreamglue/SConscript
@@ -5,6 +5,7 @@ Import ('cflags')
Import ('cxxflags')
Import ('defines')
Import ('extra_includes')
+Import ('user_options_dict')
wrstrgl_env.Append (CCFLAGS = cflags)
wrstrgl_env.Append (CXXFLAGS = cxxflags)
wrstrgl_env.Append (CPPDEFINES = defines)
@@ -21,4 +22,4 @@ wrstrgl_env.Append (CPPPATH = ['.',
'../../kernel/gen_messaging'])
wrstrgl_env.Append (CPPPATH = extra_includes)
-wrstrgl_env.Library (target='#/lib/blender_writestreamglue', source=source_files)
+wrstrgl_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_writestreamglue', source=source_files)
diff --git a/source/blender/yafray/SConscript b/source/blender/yafray/SConscript
index aa721ecb004..88cc6ff44bc 100644
--- a/source/blender/yafray/SConscript
+++ b/source/blender/yafray/SConscript
@@ -4,6 +4,7 @@ yafray_env = Environment()
Import ('cflags')
Import ('cxxflags')
Import ('defines')
+Import ('user_options_dict')
yafray_env.Append (CCFLAGS = cflags)
yafray_env.Append (CXXFLAGS = cxxflags)
yafray_env.Append (CPPDEFINES = defines)
@@ -19,4 +20,4 @@ yafray_env.Append (CPPPATH = ['#/intern/guardedalloc',
'../imbuf',
'../render/extern/include'])
-yafray_env.Library (target='#/lib/blender_yafray', source=source_files)
+yafray_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/blender_yafray', source=source_files)