root/trunk/libffado/support/dbus/SConscript

Revision 1763, 2.6 kB (checked in by ppalmers, 11 years ago)

Merged revisions 1536,1541,1544-1546,1549,1554-1562,1571,1579-1581,1618,1632,1634-1635,1661,1677-1679,1703-1704,1715,1720-1723,1743-1745,1755 via svnmerge from
svn+ssh://ffadosvn@ffado.org/ffado/branches/libffado-2.0

Also fix remaining format string warnings.

Line 
1 #!/bin/env 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
25 import os
26
27 Import( 'env' )
28
29 env = env.Clone()
30
31 #
32 # For the debugging apps
33 #
34
35 env.AppendUnique( CPPPATH=["#/", "#/src", "#/external/dbus/include"] )
36 env.PrependUnique( LIBPATH=[env['build_base']+"src", env['build_base']+"external/dbus"] )
37 env.PrependUnique( LIBS=["ffado", "dbus-c++"] )
38
39 if not env.GetOption( "clean" ):
40     env.MergeFlags( env["DBUS1_FLAGS"] )
41     env.MergeFlags( env['LIBRAW1394_FLAGS'] )
42     if not env['SERIALIZE_USE_EXPAT']:
43         env.MergeFlags( env['LIBXML26_FLAGS'] )
44     else:
45         env.PrependUnique( LIBS=["expat"] )
46
47 env.Xml2Cpp_Proxy('controlclient-glue.h', 'control-interface.xml')
48 env.Xml2Cpp_Adaptor('controlserver-glue.h', 'control-interface.xml')
49
50 static_env = env.Clone()
51
52 apps = {
53 }
54
55 installapps = []
56
57 apps = {
58     "ffado-dbus-server":"ffado-dbus-server.cpp controlserver.cpp",
59     "test-dbus" : "test-dbus.cpp controlclient.cpp",
60     "test-dbus-server" : "test-dbus-server.cpp controlserver.cpp",
61 }
62
63 installapps += [ "ffado-dbus-server" ]
64
65 for app in apps.keys():
66     env.Program( target=app, source = env.Split( apps[app] ) )
67     if app.find( "test" ) == -1:
68         env.Install( "$bindir", app )
69
70 servicefile = env.ScanReplace('org.ffado.Control.service.in')
71 if env['dbus_service_dir'] and ( env.destdir or os.access( env['dbus_service_dir'], os.W_OK ) ):
72     print "Will install the service-file"
73     targetdir = env.destdir + env['dbus_service_dir']
74     env.Alias( "install", env.Install( env.destdir + env['dbus_service_dir'], servicefile ) )
75
76 # static versions
77 if static_env['BUILD_STATIC_TOOLS']:
78     static_env.Append(LIBS=File('#/src/libffado.a'))
79     for app in apps.keys():
80         static_app = app + "-static"
81         static_env.Program( target=static_app, source = static_env.Split( apps[app] ) )
82
83 # vim: et
Note: See TracBrowser for help on using the browser.