root/branches/libffado-scons_porting_work/pyuic.py

Revision 519, 0.5 kB (checked in by arnonym, 15 years ago)

Add the first version of scons-support to ffado.

Everything seems to build correctly. Installing and library-versioning is not implemented yet.

[Hopefully this gets into the right branch.]

Line 
1 #! /usr/bin/python
2
3 def pyuic_action( target, source, env ):
4         print "'"+str( target[0] )+"'"
5         print "'"+str( source[0] )+"'"
6         print env.Command( str( target[0] ), str( source[0] ), action = "pyuic $SOURCE > $TARGET" )
7         return 0
8
9 def pyuic_string( target, source, env ):
10         return "building '%s' from '%s'" % ( str(target[0]), str( source[0] ) )
11
12 def generate( env, **kw ):
13         action = env.Action( pyuic_action, pyuic_string )
14         env['BUILDERS']['PyUIC'] = env.Builder( action=action, src_suffix=".ui", single_source=True )
15
16 def exists( env ):
17         return 1
18
Note: See TracBrowser for help on using the browser.