Show
Ignore:
Timestamp:
02/21/08 15:42:43 (10 months ago)
Author:
jpgrayson
Message:

Modify scons build system to now work on MacOSX (darwin). Thanks Jorge Maciá.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • portaudio/branches/v19-devel/SConstruct

    r1278 r1354  
    3737# Determine parameters to build tools 
    3838if Platform in Posix: 
    39     baseLinkFlags = threadCFlags = "-pthread" 
     39    threadCFlags = '' 
     40    if Platform != 'darwin': 
     41        threadCFlags = "-pthread " 
     42    baseLinkFlags = threadCFlags 
    4043    baseCxxFlags = baseCFlags = "-Wall -pedantic -pipe " + threadCFlags 
    4144    debugCxxFlags = debugCFlags = "-g" 
    4245    optCxxFlags = optCFlags  = "-O2" 
    43 env["CCFLAGS"] = baseCFlags.split() 
    44 env["CXXFLAGS"] = baseCxxFlags.split() 
    45 env["LINKFLAGS"] = baseLinkFlags.split() 
     46env.Append(CCFLAGS = baseCFlags) 
     47env.Append(CXXFLAGS = baseCxxFlags) 
     48env.Append(LINKFLAGS = baseLinkFlags) 
    4649if env["enableDebug"]: 
    4750    env.AppendUnique(CCFLAGS=debugCFlags.split()) 
     
    181184 
    182185# Define the builder for the config header 
    183 env.Append(BUILDERS={"portaudioConfig": env.Builder(action=Action(buildConfigH, 
    184         "generating '$TARGET'"), target_factory=env.fs.File,)}) 
     186env.Append(BUILDERS={"portaudioConfig": env.Builder( 
     187            action=Action(buildConfigH), target_factory=env.fs.File)}) 
    185188 
    186189confH = env.portaudioConfig(File("portaudio_config.h", "include"),