1 |
#! /usr/bin/env python |
---|
2 |
|
---|
3 |
Import( 'env' ) |
---|
4 |
|
---|
5 |
env = env.Copy() |
---|
6 |
|
---|
7 |
env.PrependUnique( CPPPATH=["#/src", "#/external/dbus/include"] ) |
---|
8 |
env.PrependUnique( LIBPATH=[env['build_base']+"src", env['build_base']+"external/dbus"] ) |
---|
9 |
env.PrependUnique( LIBS=["ffado", "dbus-c++"] ) |
---|
10 |
|
---|
11 |
if not env.GetOption( "clean" ): |
---|
12 |
env.MergeFlags( env["DBUS1_FLAGS"] ) |
---|
13 |
env.MergeFlags( env['LIBRAW1394_FLAGS'] ) |
---|
14 |
env.MergeFlags( env['LIBXML26_FLAGS'] ) |
---|
15 |
|
---|
16 |
env.Xml2Cpp_Proxy('controlclient-glue.h', 'control-interface.xml') |
---|
17 |
env.Xml2Cpp_Adaptor('controlserver-glue.h', 'control-interface.xml') |
---|
18 |
|
---|
19 |
# |
---|
20 |
# deactivate as they don't seem ported to the new api: test-extplugcmd, |
---|
21 |
# test-mixer, test-volume |
---|
22 |
# |
---|
23 |
apps = { |
---|
24 |
"test-ffado" : "test-ffado.cpp controlserver.cpp", |
---|
25 |
"test-fw410" : "test-fw410.cpp", |
---|
26 |
"test-avccmd" : "test-avccmd.cpp", |
---|
27 |
"test-focusrite" : "test-focusrite.cpp", |
---|
28 |
#"test-extplugcmd" : "test-extplugcmd.cpp", |
---|
29 |
#"test-volume" : "test-volume.cpp", |
---|
30 |
#"test-mixer" : "test-mixer.cpp", |
---|
31 |
"test-cycletimer" : "test-cycletimer.cpp", |
---|
32 |
"test-timestampedbuffer" : "test-timestampedbuffer.cpp", |
---|
33 |
"test-ieee1394service" : "test-ieee1394service.cpp", |
---|
34 |
"test-streamdump" : "test-streamdump.cpp", |
---|
35 |
"test-sytmonitor" : "test-sytmonitor.cpp SytMonitor.cpp", |
---|
36 |
"test-dbus" : "test-dbus.cpp controlclient.cpp", |
---|
37 |
"test-dbus-server" : "test-dbus-server.cpp controlserver.cpp", |
---|
38 |
} |
---|
39 |
|
---|
40 |
for app in apps.keys(): |
---|
41 |
env.Program( target=app, source = env.Split( apps[app] ) ) |
---|
42 |
|
---|
43 |
env.SConscript( dirs="streaming", exports="env" ) |
---|
44 |
|
---|