[xiph-commits] r17783 - trunk/ffmpeg2theora
j at svn.xiph.org
j at svn.xiph.org
Tue Jan 18 06:01:19 PST 2011
Author: j
Date: 2011-01-18 06:01:19 -0800 (Tue, 18 Jan 2011)
New Revision: 17783
Modified:
trunk/ffmpeg2theora/SConstruct
Log:
update to current scons api
Modified: trunk/ffmpeg2theora/SConstruct
===================================================================
--- trunk/ffmpeg2theora/SConstruct 2011-01-18 13:17:15 UTC (rev 17782)
+++ trunk/ffmpeg2theora/SConstruct 2011-01-18 14:01:19 UTC (rev 17783)
@@ -15,10 +15,7 @@
pkg_name="ffmpeg2theora"
-scons_version=(0,97,0)
-#this is needed to make scons -h work, so not checking for it right now
-#(i.e. ubuntu hardy only ships with 0.97..)
-#scons_version=(0,98,0)
+scons_version=(1,2,0)
try:
EnsureSConsVersion(*scons_version)
@@ -26,18 +23,18 @@
print 'SCons %d.%d.%d or greater is required, but you have an older version' % scons_version
Exit(2)
-opts = Options()
-opts.AddOptions(
- BoolOption('static', 'Set to 1 for static linking', 0),
- BoolOption('debug', 'Set to 1 to enable debugging', 0),
+opts = Variables()
+opts.AddVariables(
+ BoolVariable('static', 'Set to 1 for static linking', 0),
+ BoolVariable('debug', 'Set to 1 to enable debugging', 0),
('prefix', 'install files in', '/usr/local'),
('bindir', 'user executables', 'PREFIX/bin'),
('mandir', 'man documentation', 'PREFIX/man'),
('destdir', 'extra install time prefix', ''),
('APPEND_CCFLAGS', 'Additional C/C++ compiler flags'),
('APPEND_LINKFLAGS', 'Additional linker flags'),
- BoolOption('libkate', 'enable libkate support', 1),
- BoolOption('crossmingw', 'Set to 1 for crosscompile with mingw', 0)
+ BoolVariable('libkate', 'enable libkate support', 1),
+ BoolVariable('crossmingw', 'Set to 1 for crosscompile with mingw', 0)
)
env = Environment(options = opts)
Help(opts.GenerateHelpText(env))
More information about the commits
mailing list