Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:5118] Re: custom.py for begginers

Date2004-07-29 04:17
From"Michael Gogins"
Subject[CSOUND-DEV:5118] Re: custom.py for begginers
I have committed both files from Andres Cabrera -- custom.py and SConstruct.
They dropped in and built everything on Windows with mingw. I will try a
Linux build shortly.

----- Original Message ----- 
From: "Andres Cabrera" 
To: "Csound Developers Discussion List" 
Sent: Wednesday, July 28, 2004 8:13 PM
Subject: [CSOUND-DEV:5117] custom.py for begginers


> I've made a commented version of custom.py to ease the building of
> csound5. Can someone have a look and commit it?
> Andres
>


----------------------------------------------------------------------------
----


> '''
> Modify this file, by platform, to handle nonstandard options for
third-party
> dependencies. If you do modify this file, you should make it read-only
> (or otherwise protect it) so that CVS will not overwrite it.
> '''
> import sys
>
> customCPPPATH = []
> customCCFLAGS = []
> customCXXFLAGS = []
> customLIBS = []
> customLIBPATH = []
> customSHLINKFLAGS = []
>
> if sys.platform[:5] == 'linux':
>     platform = 'linux'
> elif sys.platform == 'cygwin':
>     platform = 'cygwin'
>     customCPPPATH.append('c:/tools/Python23/include')
>     customLIBPATH.append('cygwin_import_libs')
> elif sys.platform[:3] == 'win':
>     #for the basic build use: (modify paths to your system)
>     #the location of the mingw compiler:
>     customLIBPATH.append('c:/tools/mingw/lib')
>     customCPPPATH.append('c:/tools/Python23/include')
>     customCPPPATH.append('c:/tools/msys/1.0/local/include')
>     customLIBPATH.append('c:/tools/msys/1.0/local/lib')
>     customLIBPATH.append('c:/projects/csound5/windows_dlls')
>     customCPPPATH.append('C:/tools/libsndfile-1.0.10pre8/src')
>     #inside the windows_dlls directory should be libsndfile.dll
>     #if you don't have it or have built it yourself use: (and change
accordingly)
>     #customLIBPATH.append('C:/tools/libsndfile-1.0.10pre8')
>     ################################################################
>     #if you want to build with PORTAUDIO include: (you must to build
portaudio first)
>     #customCPPPATH.append('C:/tools/portaudio/pa_common')
>     #customLIBPATH.append('C:/tools/portaudio/lib')
>     ################################################################
>     #if you want to build with FLTK include: (you must to build portaudio
first)
>     #customCPPPATH.append('C:/tools/fltk-1.1.5rc1')
>     #customLIBPATH.append('C:/tools/fltk-1.1.5rc1/lib')
>     ################################################################
>     #if you want to build CsoundVST include:
>     #customCPPPATH.append('c:/tools/boost')
>     ################################################################
>     #if you want to build FLUIDSYNTH include:
>     #customLIBPATH.append('c:/tools/fluidsynth')
>     #customCPPPATH.append('c:/tools/fluidsynth/include')
>     ################################################################
>
>     #customLIBPATH.append('cygwin_import_libs')
>     platform = 'windows'
> else:
>     platform = 'unsupported platform'
>
>
>