root/branches/libffado-2.0/admin/dbus.py

Revision 864, 1.7 kB (checked in by ppalmers, 16 years ago)

update license to GPLv2 or GPLv3 instead of GPLv2 or any later version. Update copyrights to reflect the new year

Line 
1 #!/usr/bin/python
2 #
3 # Copyright (C) 2007-2008 Arnold Krille
4 # Copyright (C) 2007-2008 Pieter Palmers
5 #
6 # This file is part of FFADO
7 # FFADO = Free Firewire (pro-)audio drivers for linux
8 #
9 # FFADO is based upon FreeBoB.
10 #
11 # This program is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation, either version 2 of the License, or
14 # (at your option) version 3 of the License.
15 #
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 # GNU General Public License for more details.
20 #
21 # You should have received a copy of the GNU General Public License
22 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
23 #
24
25 #
26 # xml translator
27 #
28
29 def dbusxx_xml2cpp_emitter(target, source, env):
30         env.Depends(target, "#/external/dbus/dbusxx-xml2cpp" )
31         return (target, source)
32
33 def dbusxx_xml2cpp_adaptor_action( target, source, env ):
34         env.Execute( "./external/dbus/dbusxx-xml2cpp %s --adaptor=%s" % ( source[0], target[0] ) )
35         return 0
36
37 def dbusxx_xml2cpp_proxy_action( target, source, env ):
38         env.Execute( "./external/dbus/dbusxx-xml2cpp %s --proxy=%s" % ( source[0], target[0] ) )
39         return 0
40
41 def generate( env, **kw ):
42         env['BUILDERS']['Xml2Cpp_Adaptor'] = env.Builder(action = dbusxx_xml2cpp_adaptor_action,
43                 emitter = dbusxx_xml2cpp_emitter,
44                 suffix = '.h', src_suffix = '.xml')
45         env['BUILDERS']['Xml2Cpp_Proxy'] = env.Builder(action = dbusxx_xml2cpp_proxy_action,
46                 emitter = dbusxx_xml2cpp_emitter,
47                 suffix = '.h', src_suffix = '.xml', single_source=True )
48
49 def exists( env ):
50         return 1
51
Note: See TracBrowser for help on using the browser.