root/branches/ppalmers-streaming/support/dbus/SConscript

Revision 730, 1.0 kB (checked in by ppalmers, 13 years ago)

- Remove OSC related code
- create DBus server application
- add "scons debian" target that builds a debian package

Line 
1 #! /usr/bin/env python
2
3 Import( 'env' )
4
5 env = env.Copy()
6
7 #
8 # For the debugging apps
9 #
10
11 env.AppendUnique( CPPPATH=["#/", "#/src", "#/external/dbus/include"] )
12 env.PrependUnique( LIBPATH=[env['build_base']+"src", env['build_base']+"external/dbus"] )
13 env.PrependUnique( LIBS=["ffado", "dbus-c++"] )
14
15 if not env.GetOption( "clean" ):
16     env.MergeFlags( env["DBUS1_FLAGS"] )
17     env.MergeFlags( env['LIBRAW1394_FLAGS'] )
18     env.MergeFlags( env['LIBXML26_FLAGS'] )
19
20 env.Xml2Cpp_Proxy('controlclient-glue.h', 'control-interface.xml')
21 env.Xml2Cpp_Adaptor('controlserver-glue.h', 'control-interface.xml')
22
23 apps = {
24 }
25
26 installapps = []
27
28 apps = {
29     "ffado-dbus-server":"ffado-dbus-server.cpp controlserver.cpp",
30     "test-dbus" : "test-dbus.cpp controlclient.cpp",
31     "test-dbus-server" : "test-dbus-server.cpp controlserver.cpp",
32 }
33
34 installapps += [ "ffado-dbus-server" ]
35
36 for app in apps.keys():
37     env.Program( target=app, source = env.Split( apps[app] ) )
38     if app.find( "test" ) == -1:
39         env.Install( "$bindir", app )
Note: See TracBrowser for help on using the browser.