# Just Launched: You can now import projects and releases from Google Code onto SourceForge

We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps.

## [752a70]: custom-msvc.py Maximize Restore History

Parent: [58f150] (diff)

Child: [1675d8] (diff)

  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 ''' S C O N S C U S T O M I Z A T I O N F I L E F O R M I C R O S O F T V I S U A L C + + Michael Gogins In general, the purpose of a customization file for SCons is to specify build options for third-party dependencies that are not installed in 'standard locations' (e.g. /usr or /usr/local or /opt or /pkg on Linux). Order is important: place local paths ahead of system paths. The purpose of this particular customization file is enable the use of Microsoft Visual Studio 2005, free edition, to build Csound for the Windows installers. Usage (for example): scons withMSVC=1 custom=custom-msvc.py useDouble=1 etc... This file assumes that all of Csound's third-party dependencies have been installed, or built, in "U:\". On my computer, this is a network mapping to the actual directory. If you also have installed or built all your open source libraries in one directory, you also can map that directory to "U:\" and use this customization file without modification. This file was developing using Visual C++ 2008, Express Edition. ''' import sys customCPPPATH = [] customCCFLAGS = [] customCXXFLAGS = [] customLIBS = [] customLIBPATH = [] customSHLINKFLAGS = [] customSWIGFLAGS = [] if sys.platform[:3] == 'win': ################################################################ # The Visual C++ include path is IMPLICIT: # customCPPPATH.append(r'U:\msvc2008\VC\INCLUDE') ################################################################ # If you want to build Csound, # libsndfile is REQUIRED. customCPPPATH.append(r'U:\libsndfile-1_0_17') customLIBPATH.append(r'U:\libsndfile-1_0_17') ################################################################ # You need dirent.h, put its path here. # You can get it from http://www.softagalleria.net/dirent.php. customCPPPATH.append(r'U:\dirent') ################################################################ # If you want to build PortAudio, # for real-time audio performance. customCPPPATH.append(r'U:\portaudio\include') customLIBPATH.append(r'U:\portaudio\build\msvc\Win32\Release') ################################################################ # If you want to build PortMidi, # for real-time MIDI performance., # you need both portmidi and porttime. customCPPPATH.append(r'U:\portmidi\pm_common') customCPPPATH.append(r'U:\portmidi\pm_win') customCPPPATH.append(r'U:\portmidi\porttime') customLIBPATH.append(r'U:\portmidi\pm_win') customLIBPATH.append(r'U:\portmidi\porttime\Release') customLIBPATH.append(r'U:\portmidi\pm_win\Release') ################################################################ # If you want to build the FLTK widgets, csound5gui, cseditor, # CsoundAC, or CsoundVST, FLTK 1.1x is required. customCPPPATH.append(r'U:\fltk') customLIBPATH.append(r'U:\fltk\lib') ################################################################ # If you want to build the image opcodes, # libpng and libz are required. customCPPPATH.append(r'U:\zlib') customCPPPATH.append(r'U:\libpng-1.2.24') customLIBPATH.append(r'U:\libpng-1.2.24\projects\visualc71\Win32_DLL_Release') ################################################################ # If you want to build the Python opcodes, the Python interfaces # to Csound, or CsoundAC, Python 2.5 is required. customCPPPATH.append(r'U:\Python25\include') customLIBPATH.append(r'U:\Python25\libs') ################################################################ # If you want to build CsoundVST, you need the # Steinberg VST SDK. customCPPPATH.append(r'U:\vstsdk2.4') ################################################################ # If you want to build CsoundAC, you need the # boost C++ libraries. customCPPPATH.append(r'U:\boost') ################################################################ # If you want to build scoregen, you need the include # path to VST MIDI plugin SDK header files. customCPPPATH.append(r'U:\VSTModuleArchitectureSDK\pluginterfaces\base') ################################################################ # If you want to build Lua interfaces, you need Lua. customCPPPATH.append(r'U:\\') customCPPPATH.append(r'U:\Lua5.1') customLIBPATH.append(r'U:\\') customLIBPATH.append(r'U:\Lua5.1') ################################################################ # If you want to build Tcl\Tk interfaces # or Tclcsound, you need Tcl\Tk. # Add it here: customCPPPATH.append(r'U:\Tcl\include') customLIBPATH.append(r'U:\Tcl\lib') ################################################################ # If you want to build the FluidSynth opcodes, # you need FluidSynth. customLIBPATH.append(r'U:\fluidsynth\winbuild') customCPPPATH.append(r'U:\fluidsynth\include') # And the dsound library from the Microsoft DirectX SDK. customLIBPATH.append(r'U:\dxsdk\Lib\x86') ################################################################ # If you want to build the Java wrapper for CsoundVST # you need Java. customCPPPATH.append(r'U:\jdk1.5.0\include') customCPPPATH.append(r'U:\jdk1.5.0\include\win32') ################################################################ # If you want to build the Pure Data external csoundapi~, # you need Pure Data. # add it here (you do NOT need to build it first): customCPPPATH.append(r'U:\pure-data\trunk\pd\src') customLIBPATH.append(r'U:\pd-0.38-4-devel-2\bin') ################################################################ # If you want to build the Loris opcodes, # then copy Loris to csound5\Opcodes\Loris. Loris also # requires FFTW, if it is not in a standard location, # add it here (you do need to build it first): customCPPPATH.append(r'U:\fftw-3.0.1\api') customLIBPATH.append(r'U:\fftw-3.0.1\.libs') ################################################################ # If you want to build the OSC opcodes, # you need liblo. customCPPPATH.append(r'D:\utah\home\mkg\projects\liblo\lo') customCPPPATH.append(r'D:\utah\home\mkg\projects\liblo\src') customLIBPATH.append(r'D:\utah\home\mkg\projects\liblo\src\.libs') # For OSC on Windows, you will also need a Windows pthread library. customCPPPATH.append(r'U:\pthreads\Pre-built.2\include') customLIBPATH.append(r'U:\pthreads\Pre-build.2\lib') ################################################################ # print "Adding custom path" else: platform = 'unsupported platform'