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

Revision 1748, 1.9 kB (checked in by arnonym, 14 years ago)

Split the main-part of ffado-mixer.in into ffado/ffadowindow.py.

Use that new independency to create ffado-mixer-profiler (which isn't installed system-wide). Maybe that helps to determine where time is ticking away.

Line 
1 #!/usr/bin/python
2 #
3 # Copyright (C) 2007-2009 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
32     def findfiles( arg, dirname, names ):
33         for name in names:
34             if name.startswith("."):
35                 names.remove(name)
36         for name in names:
37             if '.pyc' not in name and '.in' not in name:
38                 arg.append( os.path.join( dirname, name ) )
39
40     pythonfiles = [ 'ffado/config.py' ]
41     os.path.walk( "ffado", findfiles, pythonfiles )
42
43     e.ScanReplace( "ffado/config.py.in" )
44     e.Depends( "ffado/config.py", "#/SConstruct" )
45     for file in pythonfiles:
46         e.InstallAs( os.path.join(e['pypkgdir'], file), file )
47
48     e.ScanReplace( "ffado-mixer.in" )
49     e.Depends( "ffado-mixer", "SConscript" )
50     e.Depends( "ffado-mixer", "#/SConstruct" )
51     e.Install( "$bindir", "ffado-mixer" )
52
53     e.ScanReplace( "ffado-mixer-profiler.in" )
54     e.Depends( "ffado-mixer-profiler", "SConscript" )
55     e.Depends( "ffado-mixer-profiler", "#/SConstruct" )
56
57     e.Install( "$sharedir/icons", "../xdg/hi64-apps-ffado.png" )
58
59 # vim: et
Note: See TracBrowser for help on using the browser.