@@ -23,6 +23,16 @@ def configure(self, build, conf):
2323
2424 def sources (self , build ):
2525 return ['soundio/sounddeviceportaudio.cpp' ]
26+
27+ class OSXFilePathUrlBackport (Dependence ):
28+
29+ def configure (self , build , conf ):
30+ return
31+
32+ def sources (self , build ):
33+ if build .platform_is_osx :
34+ return ['util/filepathurl.mm' ]
35+ return []
2636
2737
2838class PortMIDI (Dependence ):
@@ -94,6 +104,13 @@ def configure(self, build, conf):
94104 build .env .Append (CPPPATH = '/System/Library/Frameworks/CoreServices.framework/Headers/' )
95105 build .env .Append (LINKFLAGS = '-framework CoreServices' )
96106
107+ class Foundation (Dependence ):
108+ def configure (self , build , conf ):
109+ if not build .platform_is_osx :
110+ return
111+ build .env .Append (CPPPATH = '/System/Library/Frameworks/Foundation.framework/Headers/' )
112+ build .env .Append (LINKFLAGS = '-framework Foundation' )
113+
97114class IOKit (Dependence ):
98115 """Used for battery measurements and controlling the screensaver on OS X and iOS."""
99116 def configure (self , build , conf ):
@@ -1519,8 +1536,8 @@ def configure(self, build, conf):
15191536 def depends (self , build ):
15201537 return [SoundTouch , ReplayGain , Ebur128Mit , PortAudio , PortMIDI , Qt , TestHeaders ,
15211538 FidLib , SndFile , FLAC , OggVorbis , OpenGL , TagLib , ProtoBuf ,
1522- Chromaprint , RubberBand , SecurityFramework , CoreServices , IOKit ,
1523- QtScriptByteArray , Reverb , FpClassify , PortAudioRingBuffer ]
1539+ Chromaprint , RubberBand , SecurityFramework , CoreServices , Foundation , IOKit ,
1540+ QtScriptByteArray , Reverb , FpClassify , PortAudioRingBuffer , OSXFilePathUrlBackport ]
15241541
15251542 def post_dependency_check_configure (self , build , conf ):
15261543 """Sets up additional things in the Environment that must happen
0 commit comments