[Audacity-devel] Eliminating duplicates of include files
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
|
From: Dominic M. <do...@mi...> - 2002-08-14 07:37:08
|
I just got rid of the .h files we were keeping in src/include. Keeping these files around was a big headache because it was too easy for them to be out of sync with the library in lib-src or your system library. We all know that code duplication is bad. I think that file duplication was becoming worse. On Windows and Mac OS 9, that means we'll need to add a couple more directories to the include file search path. I tried to do this in Windows by editing the .dsp file manually from Unix. Brian, can you let me know if it worked? I also checked in a new configure script which I think will be a major improvement on Unix. Now it checks for the presence of the lib-src directories and uses those if they're there. If not, it looks for the system library but automatically disables that library if it can't find either. What this means is that 99% of both developers and users will be able to type: ./configure make without having to worry about any of the --with options. For developers, the default will always do the right thing when you get all of the audacity module from CVS. For end users, they might receive a tarball of audacity that doesn't contain libraries such as libmad or vorbis; it will also do the right thing for them by using the system library if it's present and not complaining otherwise. The new configure script automatically adds the appropriate -I options to the CXXFLAGS, so that the header files can be found in lib-src instead of in our include directory. Let me know if you find any problems. Unix users should either make clean or make dep, and then reconfigure, the next time they CVS update, otherwise the compile will probably fail. - Dominic |