Changeset 693 for trunk/Sconstruct
- Timestamp:
- 12/18/08 20:17:20 (4 years ago)
- Files:
-
- 1 modified
-
trunk/Sconstruct (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Sconstruct
r692 r693 54 54 cppflags += ['-O3', '-fomit-frame-pointer', '-funroll-loops'] 55 55 #cppflags += " %s" % get_optimized_flags( target_cpu ) 56 57 #add support for C ++0X standard56 57 #add support for C0X standard 58 58 cppflags += ['-std=c++0x'] 59 60 59 61 60 if str(env['oss']) == "1": cppflags.append('-DOSS_SUPPORT') … … 66 65 if str(env['portaudio']) == "1": cppflags.append('-DPORTAUDIO_SUPPORT') 67 66 if str(env['portmidi']) == "1": cppflags.append('-DPORTMIDI_SUPPORT') 68 67 68 if sys.platform == "darwin" and str(env['coreaudio']) == "1": cppflags.append('-DCOREAUDIO_SUPPORT') 69 69 70 70 cppflags.append('-DFLAC_SUPPORT') … … 84 84 85 85 elif sys.platform == 'darwin': 86 pass 86 includes.append( [ '/sw/include', '/usr/local/include' ] ) 87 ldflags.append( [ '-L/sw/lib', '-F/sw/lib', '-F/sw/lib/qt4-mac/lib', '-L/usr/local/lib' ] ) 88 87 89 elif sys.platform == "win32": 88 90 includes.append( '3rdparty\libsndfile-1_0_17' ) … … 241 243 env.Append( LIBS = [ "portmidi" ] ) 242 244 env.Append( LIBS = [ "porttime" ] ) 245 246 if sys.platform == "darwin" and str(env['coreaudio']) == "1": 247 env.Append( LINKFLAGS = ['-framework','ApplicationServices']) 248 env.Append( LINKFLAGS = ['-framework','AudioUnit']) 249 env.Append( LINKFLAGS = ['-framework','Coreaudio']) 250 251 252 243 253 env.Append( LIBPATH = '3rdparty\libsndfile-1_0_17' ) 244 254 env.Append( LIBPATH = 'build\pthreads\lib' ) … … 286 296 287 297 #platform dependent settings 298 if sys.platform == "darwin": 299 opts.Add('coreaudio', 'Set to 1 to enable Coreaudio',1) 300 288 301 if sys.platform != "win32": 289 302 opts.Add('oss', 'Set to 1 to enable oss',1) … … 433 446 print " portaudio: " + printStatus( env["portaudio"] ) 434 447 print " portmidi: " + printStatus( env["portmidi"] ) 448 if sys.platform == "darwin": 449 print " coreaudio: " + printStatus( env["coreaudio"] ) 435 450 436 451 print "\n================================================================="