[Bf-committers] scons issues with new ffmpeg package
Mathias Wein
lynx at yafray.org
Thu Sep 27 23:47:56 CEST 2007
Ken Hughes wrote:
> I was able to get it scons to compile ffmpeg by locally setting
> env['CCFLAGS'] to an empty string before calling env.BlenderLib() and
> restoring afterward.
>
>
Hm...it seems blender's custom build environment functions circumvents it
by creating a copy in BlenderLib(), but normally "temporary" changes to
environments don't have any effect, all scripts are passed and after that,
all targets get built with the environment how it was setup at the end
of parsing.
You might want to do something like:
ff_env = env.Copy();
ff_env.Replace(CCFLAGS = ...)
ff_env.BlenderLib(...)
to stick to the usual SCons conventions IMHO...
Mathias
More information about the Bf-committers
mailing list