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:
authorTom Musgrove <LetterRip@gmail.com>2010-01-31 01:46:25 +0300
committerTom Musgrove <LetterRip@gmail.com>2010-01-31 01:46:25 +0300
commitcaf067576e12f42272a73455353455bd264921f7 (patch)
treedd8c739a8040a4fc21703947de36c18121e6b0a7 /SConstruct
parentf749d0361f8a2cf8ba7d515c31cec1dcf8fe96a5 (diff)
changes to get MingW compiling and cross compiling working, patch by Sergey Sharybin
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct16
1 files changed, 10 insertions, 6 deletions
diff --git a/SConstruct b/SConstruct
index c56ee99bb80..354915541b8 100644
--- a/SConstruct
+++ b/SConstruct
@@ -578,11 +578,14 @@ else:
allinstall = [blenderinstall, dotblenderinstall, scriptinstall, plugininstall, textinstall]
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'win64-vc'):
- if env['OURPLATFORM'] == 'win64-vc':
- dllsources = []
- else:
- dllsources = ['${LCGDIR}/gettext/lib/gnu_gettext.dll',
- '${BF_PNG_LIBPATH}/libpng.dll',
+ dllsources = []
+
+ if env['OURPLATFORM'] != 'win64-vc':
+ if env['OURPLATFORM'] != 'win32-mingw':
+ # For MinGW static linking will be used
+ dllsources += ['${LCGDIR}/gettext/lib/gnu_gettext.dll']
+
+ dllsources += ['${BF_PNG_LIBPATH}/libpng.dll',
'${BF_ZLIB_LIBPATH}/zlib.dll',
'${BF_TIFF_LIBPATH}/${BF_TIFF_LIB}.dll']
dllsources += ['${BF_PTHREADS_LIBPATH}/${BF_PTHREADS_LIB}.dll']
@@ -599,7 +602,8 @@ if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'win64-vc'):
if env['WITH_BF_ICONV']:
if env['OURPLATFORM'] == 'win64-vc':
pass # we link statically to iconv on win64
- else:
+ elif env['OURPLATFORM'] != 'win32-mingw':
+ #gettext for MinGW is compiled staticly
dllsources += ['${BF_ICONV_LIBPATH}/iconv.dll']
if env['WITH_BF_OPENAL']:
dllsources.append('${LCGDIR}/openal/lib/OpenAL32.dll')