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:
parent
3d6677fe6d
commit
ff7d634fa4
@ -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
|
||||
|
@ -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
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user