root/trunk/libffado/support/mixer/SConscript

Revision 1358, 3.1 kB (checked in by wagi, 15 years ago)

fix #165

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