root/trunk/libffado/admin/dbus.py

Revision 1888, 1.5 kB (checked in by arnonym, 14 years ago)

Drop the libs in external/ and use the system-libs for that. Easier on administration, easier on compilation time, easier for packagers.

This is basically the patches provided by packagers in #290.

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_adaptor_action( target, source, env ):
30         env.Execute( "dbusxx-xml2cpp %s --adaptor=%s" % ( source[0], target[0] ) )
31         return 0
32
33 def dbusxx_xml2cpp_proxy_action( target, source, env ):
34         env.Execute( "dbusxx-xml2cpp %s --proxy=%s" % ( source[0], target[0] ) )
35         return 0
36
37 def generate( env, **kw ):
38         env['BUILDERS']['Xml2Cpp_Adaptor'] = env.Builder(action = dbusxx_xml2cpp_adaptor_action,
39                 suffix = '.h', src_suffix = '.xml')
40         env['BUILDERS']['Xml2Cpp_Proxy'] = env.Builder(action = dbusxx_xml2cpp_proxy_action,
41                 suffix = '.h', src_suffix = '.xml', single_source=True )
42
43 def exists( env ):
44         return 1
45
Note: See TracBrowser for help on using the browser.