root/trunk/libffado/support/firmware/SConscript

Revision 2802, 2.7 kB (checked in by jwoithe, 3 years ago)

Cosmetic: "Firewire" becomes "FireWire?".

Officially both the "F" and "W" were capitalised in the FireWire? name, so
reflect this throughout FFADO's source tree. This mostly affects comments.

This patch originated from pander on the ffado-devel mailing list. To
maintain consistency, the committed version has been expanded to include
files not originally included in the original patch.

Line 
1 #
2 # Copyright (C) 2007-2008 Arnold Krille
3 # Copyright (C) 2007-2008 Pieter Palmers
4 #
5 # This file is part of FFADO
6 # FFADO = Free FireWire (pro-)audio drivers for linux
7 #
8 # FFADO is based upon FreeBoB.
9 #
10 # This program is free software: you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation, either version 2 of the License, or
13 # (at your option) version 3 of the License.
14 #
15 # This program is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 # GNU General Public License for more details.
19 #
20 # You should have received a copy of the GNU General Public License
21 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
22 #
23 import os
24
25 Import( 'env' )
26
27 env = env.Clone()
28
29 env.AppendUnique( CPPPATH=["#/", "#/src"] )
30
31 if not env.GetOption( "clean" ):
32     env.MergeFlags( "-lrt -lpthread" )
33     env.MergeFlags( env['LIBRAW1394_FLAGS'].decode() )
34     env.MergeFlags( env['LIBIEC61883_FLAGS'].decode() )
35     if not env['SERIALIZE_USE_EXPAT']:
36         if 'LIBXML30_FLAGS' in env :
37             env.MergeFlags( env['LIBXML30_FLAGS'].decode() )
38         if not('LIBXML30_FLAGS' in env) :
39             env.MergeFlags( env['LIBXML26_FLAGS'].decode() )
40     else:
41         env.PrependUnique( LIBS=["expat"] )
42
43 static_env = env.Clone()
44
45 apps = {
46 }
47
48 installapps = []
49
50 manpages = []
51
52 env.PrependUnique( LIBPATH=env['build_base']+"src" )
53 env.PrependUnique( LIBS="ffado" )
54
55 if env['ENABLE_BEBOB']:
56     apps["ffado-bridgeco-downloader"] = "downloader.cpp bridgeco-downloader.cpp"
57     installapps += [ "ffado-bridgeco-downloader" ]
58     manpages += [ "ffado-bridgeco-downloader.1" ]
59
60 if env['ENABLE_FIREWORKS']:
61     apps["ffado-fireworks-downloader"] = "downloader.cpp fireworks-downloader.cpp"
62     installapps += [ "ffado-fireworks-downloader" ]
63     manpages += [ "ffado-fireworks-downloader.1" ]
64
65 if env['ENABLE_DICE']:
66     apps["ffado-dice-firmware"] = "dice-firmware-utility.cpp"
67     installapps += [ "ffado-dice-firmware" ]
68     manpages += [ "ffado-dice-firmware.1" ]
69
70
71 for app in apps.keys():
72     env.Program( target=app, source = env.Split( apps[app] ) )
73     if app.find( "test" ) == -1:
74         env.Install( "$bindir", app )
75
76 for manpage in manpages:
77     section = manpage.split(".")[1]
78     dest = os.path.join("$mandir", "man"+section, manpage)
79     env.InstallAs(source=manpage, target=dest)
80
81
82 # static versions
83 if static_env['BUILD_STATIC_TOOLS']:
84     static_env.Append(LIBS=File('#/src/libffado.a'))
85     for app in apps.keys():
86         static_app = app + "-static"
87         static_env.Program( target=static_app, source = static_env.Split( apps[app] ) )
Note: See TracBrowser for help on using the browser.