[xiph-commits] r14049 - trunk/theora

giles at svn.xiph.org giles at svn.xiph.org
Thu Oct 25 10:21:05 PDT 2007


Author: giles
Date: 2007-10-25 10:21:04 -0700 (Thu, 25 Oct 2007)
New Revision: 14049

Modified:
   trunk/theora/SConstruct
Log:
Add png2theora to the scons build.


Modified: trunk/theora/SConstruct
===================================================================
--- trunk/theora/SConstruct	2007-10-25 14:23:40 UTC (rev 14048)
+++ trunk/theora/SConstruct	2007-10-25 17:21:04 UTC (rev 14049)
@@ -118,6 +118,11 @@
   have_vorbis=True
 else:
   have_vorbis=False
+
+if conf.CheckPKG('libpng'):
+  have_libpng=True
+else:
+  have_libpng=False
   
 build_player_example=True
 if not conf.CheckHeader('sys/soundcard.h'):
@@ -182,3 +187,9 @@
     plyex_Sources = Split("""player_example.c""")
     plyex.ParseConfig('sdl-config --cflags --libs')
     plyex.Program('examples/player_example', path('examples', plyex_Sources))
+
+png2theora = env.Copy()
+png2theora.Append(LIBS=['theora'], LIBPATH=['./lib'])
+png2theora_Sources = Split("""png2theora.c""")
+png2theora.ParseConfig('pkg-config --cflags --libs libpng')
+png2theora.Program('examples/png2theora', path('examples', png2theora_Sources))



More information about the commits mailing list