1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-15 18:58:55 +01:00

Spotify on mac.

This commit is contained in:
John Maguire 2011-04-26 22:20:11 +00:00
parent 3d6677fe6d
commit ff7d634fa4
3 changed files with 20 additions and 0 deletions

View File

@ -112,6 +112,13 @@ if (APPLE)
set(HAVE_SPARKLE ON)
endif (ENABLE_SPARKLE AND SPARKLE)
find_library(SPOTIFY libspotify)
if (SPOTIFY)
set (SPOTIFY_FOUND ON)
set (SPOTIFY_INCLUDE_DIRS ${SPOTIFY})
set (SPOTIFY_LIBRARIES ${SPOTIFY})
endif (SPOTIFY)
# Uses Darwin kernel version.
# 9.8.0 -> 10.5/Leopard
# 10.4.0 -> 10.6/Snow Leopard

View File

@ -1129,6 +1129,14 @@ if (APPLE)
WORLD_READ WORLD_EXECUTE)
endif (HAVE_BREAKPAD)
if (HAVE_SPOTIFY)
install(FILES ${CMAKE_BINARY_DIR}/clementine-spotifyblob
DESTINATION "${CMAKE_BINARY_DIR}/clementine.app/Contents/Resources"
PERMISSIONS OWNER_EXECUTE OWNER_READ
GROUP_EXECUTE GROUP_READ
WORLD_EXECUTE WORLD_READ)
endif (HAVE_SPOTIFY)
add_custom_command(TARGET clementine
POST_BUILD
COMMAND

View File

@ -21,7 +21,12 @@ SpotifyService::SpotifyService(RadioModel* parent)
starred_(NULL),
inbox_(NULL),
login_task_id_(0) {
#ifdef Q_OS_DARWIN
blob_path_ = QCoreApplication::applicationDirPath() + "/../Resources/clementine-spotifyblob";
#else
blob_path_ = QCoreApplication::applicationFilePath() + "-spotifyblob";
#endif
qLog(Debug) << "Loading spotify blob from:" << blob_path_;
}
SpotifyService::~SpotifyService() {