root/branches/libffado-2.0/support/mixer/SConscript

Revision 1325, 3.1 kB (checked in by wagi, 16 years ago)

Add mixer control panel for FA 101. Also update the FA 66
to look and behave identical to the FA 101.

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['MIXERGUIS'] = [ 'phase24', 'phase88',
33                        'saffire_mono', 'saffire_stereo',
34                        'saffireprolarge', 'saffireprosmall',
35                        'saffirelelarge', 'saffirelesmall',
36                        'audiofire_strip', 'audiofire_settings',
37                        'bcoaudio5', 'edirolfa66', 'edirolfa101',
38                        'mackie_generic', 'quatafire', 'motu',
39                        'global', 'dummy'
40                      ]
41     e['MIXERAPPS'] = [ 'phase24', 'phase88',
42                        'saffire',
43                        'saffirepro',
44                        'saffirele',
45                        'audiofire',
46                        'bcoaudio5', 'edirolfa66', 'edirolfa101',
47                        'mackie_generic', 'quatafire', 'motu',
48                        'global', 'dummy'
49                      ]
50     e['OTHERGUIS'] = ['ffado_regdialog']
51     e['OTHERAPPS'] = ['ffado_regdialog', 'mixer_saffire_base']
52
53     #
54     # For the ffadomixer.in
55     e['PYTHONDIR'] = Template( os.path.join( e['SHAREDIR'], 'python' ) ).safe_substitute( e )
56     # For the installation of the stuff
57     e['pythondir'] = Template( os.path.join( e['sharedir'], 'python' ) ).safe_substitute( e )
58
59     for m in e['MIXERGUIS']:
60         app = "mixer_" + m
61         if os.path.exists( app+".ui" ):
62             e.PyUIC( source=app+".ui", target=app+"ui.py" )
63             e.Install( "$pythondir", app+"ui.py" )
64     for m in e['MIXERAPPS']:
65         app = "mixer_" + m
66         e.Install( "$pythondir", app+".py" )
67
68     for app in e['OTHERGUIS']:
69         if os.path.exists( app+".ui" ):
70             e.PyUIC( source=app+".ui", target=app+"ui.py" )
71             e.Install( "$pythondir", app+"ui.py" )
72     for app in e['OTHERAPPS']:
73         e.Install( "$pythondir", app+".py" )
74
75     e.Install( "$pythondir", "ffado_registration.py" )
76
77     e.ScanReplace( "ffadomixer_config.py.in" )
78     e.Depends( "ffadomixer_config.py", "#/config.h" )
79     e.Install( "$pythondir", "ffadomixer_config.py" )
80
81     e.ScanReplace( "ffadomixer.in" )
82     e.Depends( "ffadomixer", "#/config.h" )
83     e.Depends( "ffadomixer", "SConscript" )
84     e.Install( "$bindir", "ffadomixer" )
85
Note: See TracBrowser for help on using the browser.