comparison SConstruct @ 232:af531fc3f280

- Massive refactoring to make module tree stuff work. In theory we now support configuration files again. The graphics stuff is untested as yet.
author tomwalters
date Mon, 18 Oct 2010 04:42:28 +0000
parents 73c6d61440ad
children d21844facd3a
comparison
equal deleted inserted replaced
231:763576f63761 232:af531fc3f280
36 'Support/FileList.cc', 36 'Support/FileList.cc',
37 'Support/SignalBank.cc', 37 'Support/SignalBank.cc',
38 'Support/Parameters.cc', 38 'Support/Parameters.cc',
39 'Support/Module.cc', 39 'Support/Module.cc',
40 'Support/ModuleFactory.cc', 40 'Support/ModuleFactory.cc',
41 'Support/ModuleTree.cc',
41 'Modules/Input/ModuleFileInput.cc', 42 'Modules/Input/ModuleFileInput.cc',
42 'Modules/BMM/ModuleGammatone.cc', 43 'Modules/BMM/ModuleGammatone.cc',
43 'Modules/BMM/ModulePZFC.cc', 44 'Modules/BMM/ModulePZFC.cc',
44 'Modules/NAP/ModuleHCL.cc', 45 'Modules/NAP/ModuleHCL.cc',
45 'Modules/Strobes/ModuleParabola.cc', 46 'Modules/Strobes/ModuleParabola.cc',
48 'Modules/SSI/ModuleSSI.cc', 49 'Modules/SSI/ModuleSSI.cc',
49 'Modules/Profile/ModuleSlice.cc', 50 'Modules/Profile/ModuleSlice.cc',
50 'Modules/Profile/ModuleScaler.cc', 51 'Modules/Profile/ModuleScaler.cc',
51 'Modules/Output/FileOutputHTK.cc', 52 'Modules/Output/FileOutputHTK.cc',
52 'Modules/Output/FileOutputAIMC.cc', 53 'Modules/Output/FileOutputAIMC.cc',
53 'Modules/Features/ModuleGaussians.cc'] 54 'Modules/Features/ModuleGaussians.cc',
55 'Modules/Features/ModuleDCT.cc' ]
54 56
55 graphics_sources = [ 'Modules/Output/Graphics/GraphAxisSpec.cc', 57 graphics_sources = [ 'Modules/Output/Graphics/GraphAxisSpec.cc',
56 'Modules/Output/Graphics/GraphicsView.cc', 58 'Modules/Output/Graphics/GraphicsView.cc',
57 'Modules/Output/Graphics/GraphicsViewTime.cc', 59 'Modules/Output/Graphics/GraphicsViewTime.cc',
60 'Modules/Output/Graphics/Scale/Scale.cc',
58 'Modules/Output/Graphics/Devices/GraphicsOutputDevice.cc', 61 'Modules/Output/Graphics/Devices/GraphicsOutputDevice.cc',
59 'Modules/Output/Graphics/Devices/GraphicsOutputDeviceCairo.cc', 62 'Modules/Output/Graphics/Devices/GraphicsOutputDeviceCairo.cc',
60 'Modules/Output/Graphics/Devices/GraphicsOutputDeviceMovie.cc', 63 'Modules/Output/Graphics/Devices/GraphicsOutputDeviceMovie.cc',]
61 'Modules/Output/Graphics/Devices/GraphicsOutputDeviceMovieDirect.cc' ] 64 #'Modules/Output/Graphics/Devices/GraphicsOutputDeviceMovieDirect.cc' ]
62 graphics_libraries = [ 'cairo', 65 graphics_libraries = [ 'cairo',
63 '' ] 66 ]
64 67
65 # List of currently incative source files which we may want to add back in 68 # List of currently incative source files which we may want to add back in
66 sources_disabled = ['Modules/SNR/ModuleNoise.cc', 69 sources_disabled = ['Modules/SNR/ModuleNoise.cc',
67 ] 70 ]
68 71
69 # File which contains main() 72 # File which contains main()
70 sources = common_sources + ['Main/AIMCopy_SSI_Features_v3.cc'] 73 #sources = common_sources + graphics_sources + ['Main/AIMCopy_SSI_Features_v3.cc']
71 #sources = common_sources + ['Main/AIMCopy_SSI_Features_v4_PZFC.cc'] 74 #sources = common_sources + ['Main/AIMCopy_SSI_Features_v4_PZFC.cc']
72 #sources = common_sources + ['Main/AIMCopy_SSI_Features_v5_smooth_nap.cc'] 75 sources = common_sources + graphics_sources + ['Main/AIMCopy.cc']
73 #sources = common_sources + ['Main/aimc.cc'] 76 #sources = common_sources + ['Main/aimc.cc']
74 77
75 # Test sources 78 # Test sources
76 test_sources = ['Modules/Profile/ModuleSlice_unittest.cc'] 79 test_sources = ['Modules/Profile/ModuleSlice_unittest.cc']
77 test_sources += common_sources 80 test_sources += common_sources
132 135
133 # GNU compiler collection 136 # GNU compiler collection
134 elif compiler == 'gcc': 137 elif compiler == 'gcc':
135 env['STRIP'] = 'strip' 138 env['STRIP'] = 'strip'
136 env.AppendUnique(CPPFLAGS = ['-Wall']) 139 env.AppendUnique(CPPFLAGS = ['-Wall'])
137 env.AppendUnique(CPPFLAGS = ['-O3', '-fomit-frame-pointer']) 140 env.AppendUnique(CPPFLAGS = ['-O2',])# '-fomit-frame-pointer'])
138 if env['symbols']: 141 if env['symbols']:
139 env.AppendUnique(CPPFLAGS = ['-g']) 142 env.AppendUnique(CPPFLAGS = ['-g'])
140 if env['mingw']: 143 if env['mingw']:
141 if not env['PLATFORM'] == 'win32': 144 if not env['PLATFORM'] == 'win32':
142 print('Cross-compilation for Windows is not supported') 145 print('Cross-compilation for Windows is not supported')
168 # Look for the sources in the correct place 171 # Look for the sources in the correct place
169 env.Append(CPPPATH = ['#src']) 172 env.Append(CPPPATH = ['#src'])
170 173
171 # Dependencies 174 # Dependencies
172 deplibs = ['sndfile'] 175 deplibs = ['sndfile']
176 deplibs += graphics_libraries
173 177
174 if target_platform != 'win32': 178 if target_platform != 'win32':
175 for depname in deplibs: 179 for depname in deplibs:
176 env.ParseConfig('pkg-config --cflags --libs ' + depname) 180 env.ParseConfig('pkg-config --cflags --libs ' + depname)
177 else: 181 else: