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

Revision 1394, 3.4 kB (checked in by ppalmers, 12 years ago)

rename all debug and mixer tools to start with ffado-*

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('PYUIC4'):
30     e = env.Clone()
31     e['MIXERGUIS'] = [
32                         'phase24',
33                         'phase88',
34                         'saffire_mono', 'saffire_stereo',
35                         'saffirepro_large', 'saffirepro_small',
36                         'saffirele_large', 'saffirele_small',
37                         'audiofire_strip', 'audiofire_settings',
38                         'bcoaudio5',
39                         'edirolfa101', 'edirolfa66',
40                         'quatafire',
41                         'mackie_onyxmixer',
42                         'motu',
43                         'global', 'dummy'
44                      ]
45     e['MIXERAPPS'] = [
46                         'phase24',
47                         'phase88',
48                         'saffire',
49                         'saffirepro',
50                         'audiofire',
51                         'bcoaudio5',
52                         'edirolfa101', 'edirolfa66',
53                         'quatafire',
54                         'mackie_onyxmixer',
55                         'motu',
56                         'global', 'dummy'
57                      ]
58
59     e['OTHERGUIS'] = ['ffado_regdialog', 'ffado_panelmanagerstatus']
60     e['OTHERAPPS'] = ['ffado_dbus_util',
61                       'ffado_regdialog',
62                       'ffado_panelmanager',
63                       'mixer_saffire_base'
64                      ]
65
66     #
67     # For the ffadomixer.in
68     e['PYTHONDIR'] = Template( os.path.join( e['SHAREDIR'], 'python' ) ).safe_substitute( e )
69     # For the installation of the stuff
70     e['pythondir'] = Template( os.path.join( e['sharedir'], 'python' ) ).safe_substitute( e )
71
72     for m in e['MIXERGUIS']:
73         app = "mixer_" + m
74         if os.path.exists( app+".ui" ):
75             e.PyUIC4( source=app+".ui", target=app+"ui.py" )
76             e.Install( "$pythondir", app+"ui.py" )
77     for m in e['MIXERAPPS']:
78         app = "mixer_" + m
79         e.Install( "$pythondir", app+".py" )
80
81     for app in e['OTHERGUIS']:
82         if os.path.exists( app+".ui" ):
83             e.PyUIC4( source=app+".ui", target=app+"ui.py" )
84             e.Install( "$pythondir", app+"ui.py" )
85     for app in e['OTHERAPPS']:
86         e.Install( "$pythondir", app+".py" )
87
88     e.Install( "$pythondir", "ffado_registration.py" )
89
90     e.ScanReplace( "ffadomixer_config.py.in" )
91     e.Depends( "ffadomixer_config.py", "#/config.h" )
92     e.Install( "$pythondir", "ffadomixer_config.py" )
93
94     e.ScanReplace( "ffado-mixer.in" )
95     e.Depends( "ffado-mixer", "#/config.h" )
96     e.Depends( "ffado-mixer", "SConscript" )
97     e.Install( "$bindir", "ffado-mixer" )
98
Note: See TracBrowser for help on using the browser.