root/trunk/libffado/support/mixer/SConscript

Revision 1093, 2.3 kB (checked in by arnonym, 16 years ago)
  • Add a generic part for each mixer controlling the nickname and the clocksource.
  • Don't install the generic mixer as its only intended for developers.
  • ignore the generated ffadomixer_config.py
  • Rework/resort the initialization of mixer-widgets...
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 import os
25 from string import Template
26
27 Import( 'env' )
28
29 if env.has_key('PYUIC'):
30     e = env.Clone()
31
32     e['MIXERAPPS'] = [ 'phase24', 'phase88', 'saffirepro', 'saffire',
33                        'saffirele', 'af2', 'bcoaudio5', 'edirolfa66',
34                        'mackie_generic', 'quatafire', 'motu',
35                        'global', 'dummy'
36                      ]
37     e['OTHERAPPS'] = ['ffado_regdialog']
38
39     #
40     # For the ffadomixer.in
41     e['PYTHONDIR'] = Template( os.path.join( e['SHAREDIR'], 'python' ) ).safe_substitute( e )
42     # For the installation of the stuff
43     e['pythondir'] = Template( os.path.join( e['sharedir'], 'python' ) ).safe_substitute( e )
44
45     for m in e['MIXERAPPS']:
46         app = "mixer_" + m
47         if os.path.exists( app+".ui" ):
48             e.PyUIC( source=app+".ui", target=app+"ui.py" )
49             e.Install( "$pythondir", app+"ui.py" )
50         e.Install( "$pythondir", app+".py" )
51
52     for app in e['OTHERAPPS']:
53         if os.path.exists( app+".ui" ):
54             e.PyUIC( source=app+".ui", target=app+"ui.py" )
55             e.Install( "$pythondir", app+"ui.py" )
56         e.Install( "$pythondir", app+".py" )
57
58     e.Install( "$pythondir", "ffado_registration.py" )
59
60     e.ScanReplace( "ffadomixer_config.py.in" )
61     e.Depends( "ffadomixer_config.py", "#/config.h" )
62     e.Install( "$pythondir", "ffadomixer_config.py" )
63
64     e.ScanReplace( "ffadomixer.in" )
65     e.Depends( "ffadomixer", "#/config.h" )
66     e.Depends( "ffadomixer", "SConscript" )
67     e.Install( "$bindir", "ffadomixer" )
68
Note: See TracBrowser for help on using the browser.