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:
authorNathan Letwory <nathan@letworyinteractive.com>2006-08-14 16:47:13 +0400
committerNathan Letwory <nathan@letworyinteractive.com>2006-08-14 16:47:13 +0400
commit800ae7cf466dd50c15c3ecf655f68e0d43de12f2 (patch)
tree7aa76990341b49572163225210ffc20f2d76336e
parent404ccd1a07a5b2d5f649f3403ced9cc37f4556b8 (diff)
[ #4035 ] patch to make scons compile with ffmpeg in mingw
Submitted by Joseph Eagar (joeedh). windows/gcc ffmpeg library may need recompiling to support all codecs necessary (ie. H264 doesn't work).
-rw-r--r--config/win32-mingw-config.py6
-rw-r--r--source/blender/blenkernel/SConscript1
-rw-r--r--source/blender/imbuf/SConscript1
-rw-r--r--source/blender/src/SConscript1
-rw-r--r--tools/Blender.py1
-rwxr-xr-xtools/btools.py7
6 files changed, 15 insertions, 2 deletions
diff --git a/config/win32-mingw-config.py b/config/win32-mingw-config.py
index 5d256300685..6a4aed6503f 100644
--- a/config/win32-mingw-config.py
+++ b/config/win32-mingw-config.py
@@ -12,6 +12,12 @@ BF_OPENAL_INC = '${BF_OPENAL}/include'
BF_OPENAL_LIB = 'openal_static'
BF_OPENAL_LIBPATH = '${BF_OPENAL}/lib'
+WITH_BF_FFMPEG = 'false'
+BF_FFMPEG = LCGDIR + '/gcc/ffmpeg'
+BF_FFMPEG_LIB = 'avformat avutil avcodec'
+BF_FFMPEG_LIBPATH = '${BF_FFMPEG}/lib'
+BF_FFMPEG_INC = '${BF_FFMPEG}/include'
+
WITH_BF_SDL = 'true'
BF_SDL = LCGDIR + '/sdl'
BF_SDL_INC = '${BF_SDL}/include'
diff --git a/source/blender/blenkernel/SConscript b/source/blender/blenkernel/SConscript
index aed4ad6ed4c..3221696d21a 100644
--- a/source/blender/blenkernel/SConscript
+++ b/source/blender/blenkernel/SConscript
@@ -22,6 +22,7 @@ if env['WITH_BF_OPENEXR'] == 1:
if env['WITH_BF_FFMPEG'] == 1:
defs += ' WITH_FFMPEG'
+ incs += ' ' + env['BF_FFMPEG_INC']
if env['WITH_BF_QUICKTIME'] == 1:
defs += ' WITH_QUICKTIME'
diff --git a/source/blender/imbuf/SConscript b/source/blender/imbuf/SConscript
index 93041ab97cf..0d9b9fbe81b 100644
--- a/source/blender/imbuf/SConscript
+++ b/source/blender/imbuf/SConscript
@@ -18,6 +18,7 @@ if env['WITH_BF_OPENEXR'] == 1:
if env['WITH_BF_FFMPEG'] == 1:
defs.append('WITH_FFMPEG')
+ incs += ' ' + env['BF_FFMPEG_INC']
if env['WITH_BF_QUICKTIME']==1:
incs += ' ' + env['BF_QUICKTIME_INC']
diff --git a/source/blender/src/SConscript b/source/blender/src/SConscript
index fdd920e2713..a70f9254d98 100644
--- a/source/blender/src/SConscript
+++ b/source/blender/src/SConscript
@@ -34,6 +34,7 @@ if env['WITH_BF_QUICKTIME']==1:
if env['WITH_BF_FFMPEG'] == 1:
defs.append('WITH_FFMPEG')
+ incs += ' ' + env['BF_FFMPEG_INC']
# TODO buildinfo
if env['BF_BUILDINFO'] == 1:
diff --git a/tools/Blender.py b/tools/Blender.py
index 8c334a70536..c1e43d9ceeb 100644
--- a/tools/Blender.py
+++ b/tools/Blender.py
@@ -119,6 +119,7 @@ def setup_staticlibs(lenv):
lenv['BF_ICONV_LIBPATH']
]
libincs += Split(lenv['BF_OPENEXR_LIBPATH'])
+ libincs += Split(lenv['BF_FFMPEG_LIBPATH'])
if lenv['WITH_BF_INTERNATIONAL']:
libincs += Split(lenv['BF_GETTEXT_LIBPATH'])
diff --git a/tools/btools.py b/tools/btools.py
index b66d388ec76..6f3c8537c68 100755
--- a/tools/btools.py
+++ b/tools/btools.py
@@ -21,7 +21,7 @@ def validate_arguments(args, bc):
'BF_PTHREADS', 'BF_PTHREADS_INC', 'BF_PTHREADS_LIB', 'BF_PTHREADS_LIBPATH',
'WITH_BF_FMOD',
'WITH_BF_OPENEXR', 'BF_OPENEXR', 'BF_OPENEXR_INC', 'BF_OPENEXR_LIB', 'BF_OPENEXR_LIBPATH',
- 'WITH_BF_FFMPEG', 'BF_FFMPEG_LIB',
+ 'WITH_BF_FFMPEG', 'BF_FFMPEG_LIB', 'BF_FFMPEG', 'BF_FFMPEG_INC',
'WITH_BF_JPEG', 'BF_JPEG', 'BF_JPEG_INC', 'BF_JPEG_LIB', 'BF_JPEG_LIBPATH',
'WITH_BF_PNG', 'BF_PNG', 'BF_PNG_INC', 'BF_PNG_LIB', 'BF_PNG_LIBPATH',
'BF_TIFF', 'BF_TIFF_INC',
@@ -146,8 +146,11 @@ def read_opts(cfg, args):
('BF_OPENEXR_LIBPATH', 'OPENEXR library path', ''),
(BoolOption('WITH_BF_FFMPEG', 'Use FFMPEG if true', 'false')),
+ ('BF_FFMPEG', 'FFMPEG base path', ''),
('BF_FFMPEG_LIB', 'FFMPEG library', ''),
-
+ ('BF_FFMPEG_INC', 'FFMPEG includes', ''),
+ ('BF_FFMPEG_LIBPATH', 'FFMPEG library path', ''),
+
(BoolOption('WITH_BF_JPEG', 'Use JPEG if true', 'true')),
('BF_JPEG', 'JPEG base path', ''),
('BF_JPEG_INC', 'JPEG include path', ''),