[xiph-commits] r17692 - trunk/theora

giles at svn.xiph.org giles at svn.xiph.org
Tue Nov 30 11:32:31 PST 2010


Author: giles
Date: 2010-11-30 11:32:31 -0800 (Tue, 30 Nov 2010)
New Revision: 17692

Modified:
   trunk/theora/SConstruct
Log:
Add a build variable collect_metrics to the scons build.

Invoking the build with 'scons collect_metrics=1' will
compile the library -DOC_COLLECT_METRICS, which enables
recording training metrics.

Modified: trunk/theora/SConstruct
===================================================================
--- trunk/theora/SConstruct	2010-11-30 13:32:18 UTC (rev 17691)
+++ trunk/theora/SConstruct	2010-11-30 19:32:31 UTC (rev 17692)
@@ -46,6 +46,12 @@
 if env['CC'] == 'gcc':
   env.Append(CCFLAGS=["-g", "-O2", "-Wall", "-Wno-parentheses"])
 
+# pass collect_metrics=1 on the scons command line
+# to enable metrics collection for mode training.
+collect_metrics = ARGUMENTS.get('collect_metrics', 0)
+if int(collect_metrics):
+  env.Append(CPPDEFINES=['OC_COLLECT_METRICS'])
+
 def CheckPKGConfig(context, version): 
   context.Message( 'Checking for pkg-config... ' ) 
   ret = context.TryAction('pkg-config --atleast-pkgconfig-version=%s' % version)[0] 



More information about the commits mailing list