root/trunk/libffado/support/mixer-qt4/SConscript

Revision 1492, 3.6 kB (checked in by arnonym, 15 years ago)

Install the logginghandler. And don't print the logmessage to stdout (which effectively doubled the debug-output on the console).

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                       'ffado_configuration',
64                       'ffado_logginghandler',
65                       'mixer_saffire_base'
66                      ]
67
68     #
69     # For the ffadomixer.in
70     e['PYTHONDIR'] = Template( os.path.join( e['SHAREDIR'], 'python' ) ).safe_substitute( e )
71     # For the installation of the stuff
72     e['pythondir'] = Template( os.path.join( e['sharedir'], 'python' ) ).safe_substitute( e )
73
74     for m in e['MIXERGUIS']:
75         app = "mixer_" + m
76         if os.path.exists( app+".ui" ):
77             e.PyUIC4( source=app+".ui", target=app+"ui.py" )
78             e.Install( "$pythondir", app+"ui.py" )
79     for m in e['MIXERAPPS']:
80         app = "mixer_" + m
81         e.Install( "$pythondir", app+".py" )
82
83     for app in e['OTHERGUIS']:
84         if os.path.exists( app+".ui" ):
85             e.PyUIC4( source=app+".ui", target=app+"ui.py" )
86             e.Install( "$pythondir", app+"ui.py" )
87     for app in e['OTHERAPPS']:
88         e.Install( "$pythondir", app+".py" )
89
90     e.Install( "$pythondir", "ffado_registration.py" )
91
92     e.ScanReplace( "ffadomixer_config.py.in" )
93     e.Depends( "ffadomixer_config.py", "#/config.h" )
94     e.Install( "$pythondir", "ffadomixer_config.py" )
95
96     e.ScanReplace( "ffado-mixer.in" )
97     e.Depends( "ffado-mixer", "#/config.h" )
98     e.Depends( "ffado-mixer", "SConscript" )
99     e.Install( "$bindir", "ffado-mixer" )
100
101     e.Install( "$sharedir/icons", "../xdg/hi64-apps-ffado.png" )
Note: See TracBrowser for help on using the browser.