root/branches/libffado-scons_porting_work/src/SConscript

Revision 519, 3.3 kB (checked in by arnonym, 15 years ago)

Add the first version of scons-support to ffado.

Everything seems to build correctly. Installing and library-versioning is not implemented yet.

[Hopefully this gets into the right branch.]

Line 
1 #! /usr/bin/env python
2
3 Import( 'env' )
4
5 env = env.Copy()
6
7 env.AppendUnique( CPPPATH=["#/src"] )
8
9 ffado_source = env.Split( '\
10         devicemanager.cpp \
11         ffado.cpp \
12         ffado_streaming.cpp \
13         iavdevice.cpp \
14         debugmodule/debugmodule.cpp \
15         libavc/avc_connect.cpp \
16         libavc/avc_definitions.cpp \
17         libavc/avc_extended_cmd_generic.cpp \
18         libavc/avc_extended_plug_info.cpp \
19         libavc/avc_extended_stream_format.cpp \
20         libavc/avc_extended_subunit_info.cpp \
21         libavc/avc_function_block.cpp \
22         libavc/avc_generic.cpp \
23         libavc/avc_plug_info.cpp \
24         libavc/avc_serialize.cpp \
25         libavc/avc_signal_source.cpp \
26         libavc/avc_subunit_info.cpp \
27         libavc/avc_unit_info.cpp \
28         libieee1394/ARMHandler.cpp \
29         libieee1394/configrom.cpp \
30         libieee1394/csr1212.c \
31         libieee1394/ieee1394service.cpp \
32         libieee1394/IEC61883.cpp \
33         libosc/OscArgument.cpp \
34         libosc/OscClient.cpp \
35         libosc/OscMessage.cpp \
36         libosc/OscNode.cpp \
37         libosc/OscResponse.cpp \
38         libosc/OscServer.cpp \
39         libstreaming/cip.c \
40         libstreaming/IsoHandler.cpp \
41         libstreaming/IsoHandlerManager.cpp \
42         libstreaming/IsoStream.cpp \
43         libstreaming/Port.cpp \
44         libstreaming/PortManager.cpp \
45         libstreaming/StreamProcessor.cpp \
46         libstreaming/StreamProcessorManager.cpp \
47         libutil/DelayLockedLoop.cpp \
48         libutil/PacketBuffer.cpp \
49         libutil/OptionContainer.cpp \
50         libutil/PosixThread.cpp \
51         libutil/ringbuffer.c \
52         libutil/serialize.cpp \
53         libutil/StreamStatistics.cpp \
54         libutil/SystemTimeSource.cpp \
55         libutil/Time.c \
56         libutil/TimeSource.cpp \
57         libutil/TimestampedBuffer.cpp \
58 ' )
59
60 bebob_source = env.Split( '\
61         bebob/bebob_avdevice.cpp \
62         bebob/bebob_avdevice_subunit.cpp \
63         bebob/bebob_avplug.cpp \
64         bebob/bebob_dl_bcd.cpp \
65         bebob/bebob_dl_codes.cpp \
66         bebob/bebob_dl_mgr.cpp \
67         bebob/bebob_functionblock.cpp \
68         bebob/GenericMixer.cpp \
69         maudio/maudio_avdevice.cpp \
70 ' )
71
72 motu_source = env.Split( '\
73         motu/motu_avdevice.cpp \
74         libstreaming/MotuPort.cpp \
75         libstreaming/MotuPortInfo.cpp \
76         libstreaming/MotuStreamProcessor.cpp \
77 ' )
78
79 dice_source = env.Split( '\
80         dice/dice_avdevice.cpp \
81 ' )
82
83 bounce_source = env.Split( '\
84         bounce/bounce_avdevice.cpp \
85         bounce/bounce_slave_avdevice.cpp \
86         libstreaming/AmdtpSlaveStreamProcessor.cpp \
87 ' )
88
89 metric_halo_source = env.Split( '\
90         metrichalo/mh_avdevice.cpp \
91 ' )
92
93 rme_source = env.Split( '\
94         rme/rme_avdevice.cpp \
95 ' )
96
97 amdtp_source = env.Split( '\
98         libstreaming/AmdtpPort.cpp \
99         libstreaming/AmdtpPortInfo.cpp \
100         libstreaming/AmdtpStreamProcessor.cpp \
101 ' )
102
103 source = ffado_source
104 if env['ENABLE_BEBOB']:
105         source += bebob_source + amdtp_source
106 if env['ENABLE_MOTU']:
107         source += motu_source
108 if env['ENABLE_DICE']:
109         source += dice_source
110 if env['ENABLE_METRIC_HALO']:
111         source += metric_halo_source
112 if env['ENABLE_RME']:
113         source += rme_source
114 if env['ENABLE_BOUNCE']:
115         source += bounce_source
116
117
118 #source += dice_source + bounce_source + metric_halo_source + rme_source + amdtp_source
119
120 env.SharedLibrary( target="ffado", source=source )
121
122 #
123 # For the debugging apps
124 #
125 env.AppendUnique( LIBPATH="#/src" )
126 env.AppendUnique( LIBS="ffado" )
127
128 apps = { \
129         "bridgeco-downloader": "bridgeco-downloader.cpp", \
130         "bebob-sync" : "bebob-sync.cpp", \
131         "test-debugmodule" : "debugmodule/test_debugmodule.cpp", \
132         "test-dll" : "libutil/test-dll.cpp", \
133         "test-unittests-util" : "libutil/unittests.cpp", \
134         "test-unittests-osc" : "libosc/unittests.cpp" \
135 }
136
137 for app in apps.keys():
138         env.Program( target=app, source = env.Split( apps[app] ) )
139
Note: See TracBrowser for help on using the browser.