Skip to content

Commit

Permalink
Add Last.fm dependence (liblastfm)
Browse files Browse the repository at this point in the history
  • Loading branch information
cardinot committed Jul 25, 2014
1 parent 8a5b684 commit 814aa98
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion build/depends.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']):
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 814aa98

Please sign in to comment.