diff --git a/build/depends.py b/build/depends.py index 016f74be014..b5ad7dc6a71 100644 --- a/build/depends.py +++ b/build/depends.py @@ -487,6 +487,16 @@ def configure(self, build, conf): build.env.Append(CPPDEFINES='TAGLIB_STATIC') +class LastFM(Dependence): + def configure(self, build, conf): + if not conf.CheckLib(['liblastfm']): + raise Exception( + "Could not find liblastfm or its development headers.") + + if build.platform_is_windows and build.static_dependencies: + build.env.Append(CPPDEFINES='LASTFM') + + class Chromaprint(Dependence): def configure(self, build, conf): if not conf.CheckLib(['chromaprint', 'libchromaprint', 'chromaprint_p', 'libchromaprint_p']): @@ -1128,7 +1138,7 @@ def configure(self, build, conf): def depends(self, build): return [SoundTouch, ReplayGain, PortAudio, PortMIDI, Qt, TestHeaders, - FidLib, SndFile, FLAC, OggVorbis, OpenGL, TagLib, ProtoBuf, + FidLib, SndFile, FLAC, OggVorbis, OpenGL, TagLib, LastFM, ProtoBuf, Chromaprint, RubberBand, SecurityFramework, CoreServices] def post_dependency_check_configure(self, build, conf):