diff --git a/CMakeLists.txt b/CMakeLists.txt index dec797ddb5..3b4535db78 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,270 +1,268 @@ cmake_minimum_required(VERSION 3.1) project(Amarok) # Remove all warnings, ease the porting to cmake 3.x if (POLICY CMP0028) cmake_policy(SET CMP0028 NEW) endif() ############### find_package(PkgConfig REQUIRED) find_package(ECM 1.7.0 REQUIRED CONFIG) set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH}) include(KDEInstallDirs) include(KDECMakeSettings) include(KDECompilerSettings NO_POLICY_SCOPE) include(FeatureSummary) include(ECMInstallIcons) include(ECMSetupVersion) include(ECMAddTests) include(ECMAddAppIcon) include(FindPkgConfig) find_package( Qt5 5.8.0 REQUIRED COMPONENTS Core DBus Gui QuickWidgets Qml Script ScriptTools Sql Svg Test Widgets Xml ) find_package( Qt5 5.8.0 COMPONENTS QuickControls2 ) set_package_properties( Qt5QuickControls2 PROPERTIES TYPE RUNTIME PURPOSE "Needed by the player's context area" ) find_package( KF5 REQUIRED COMPONENTS Archive Codecs CoreAddons DBusAddons Declarative DNSSD GlobalAccel GuiAddons I18n IconThemes KCMUtils KIO NewStuff Notifications NotifyConfig Package Solid TextEditor ThreadWeaver WindowSystem ) find_package( KF5 COMPONENTS Kirigami2 ) set_package_properties( KF5Kirigami2 PROPERTIES TYPE RUNTIME PURPOSE "Needed by the player's context area" ) ############### option(WITH_UTILITIES "Enable building of utilities" ON) option(WITH_PLAYER "Enable building of main Amarok player" ON) option(WITH_MP3Tunes "Enable mp3tunes in the Amarok player, requires multiple extra dependencies" ON) option(WITH_IPOD "Enable iPod support in Amarok" ON) option(WITH_MYSQL_EMBEDDED "Build the embedded database library -- highly recommended" ON) option(WITH_PLAYGROUND "Enable building of playground scripts and applets (WARNING: some of them might have legal issues!)" OFF) ############### Taglib set(TAGLIB_MIN_VERSION "1.7") find_package(Taglib REQUIRED) set_package_properties( Taglib PROPERTIES DESCRIPTION "Support for Audio metadata." URL "http://developer.kde.org/~wheeler/taglib.html" TYPE REQUIRED PURPOSE "Required for tag reading" ) # Check if TagLib is built with ASF and MP4 support include(CheckCXXSourceCompiles) set(CMAKE_REQUIRED_INCLUDES "${TAGLIB_INCLUDES}") set(CMAKE_REQUIRED_LIBRARIES "${TAGLIB_LIBRARIES}") check_cxx_source_compiles("#include int main() { TagLib::ASF::Tag tag; return 0;}" TAGLIB_ASF_FOUND) if( NOT TAGLIB_ASF_FOUND ) message(FATAL_ERROR "TagLib does not have ASF support compiled in.") endif() check_cxx_source_compiles("#include int main() { TagLib::MP4::Tag tag(0, 0); return 0;}" TAGLIB_MP4_FOUND) if( NOT TAGLIB_MP4_FOUND ) message(FATAL_ERROR "TagLib does not have MP4 support compiled in.") endif() check_cxx_source_compiles("#include #include #include #include #include using namespace TagLib; int main() { char *s; Mod::Tag tag; Mod::File modfile(s); S3M::File s3mfile(s); IT::File itfile(s); XM::File xmfile(s); return 0; }" TAGLIB_MOD_FOUND) check_cxx_source_compiles("#include int main() { char *s; TagLib::Ogg::Opus::File opusfile(s); return 0;}" TAGLIB_OPUS_FOUND) set(CMAKE_REQUIRED_INCLUDES) set(CMAKE_REQUIRED_LIBRARIES) set(TAGLIB-EXTRAS_MIN_VERSION "1.0") find_package(Taglib-Extras) set(TAGLIB_EXTRAS_FOUND ${TAGLIB-EXTRAS_FOUND}) # we need a c-compatible name for the include file include(CheckTagLibFileName) check_taglib_filename(COMPLEX_TAGLIB_FILENAME) ############### #Needed to conditionally build tests and gui if(BUILD_TESTING) add_definitions(-DDEBUG) endif() if(WITH_DESKTOP_UI) add_definitions(-DDESKTOP_UI) endif() set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fmessage-length=0") if (CMAKE_COMPILER_IS_GNUCXX) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fmessage-length=0") if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,--as-needed") endif() endif () include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/shared ${CMAKE_CURRENT_BINARY_DIR}/shared ) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") # Require C++11 # WORKAROUND for Clang bug: http://llvm.org/bugs/show_bug.cgi?id=15651 if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND WIN32) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-delayed-template-parsing") endif () add_definitions(-DQT_NO_URL_CAST_FROM_STRING) find_package(Phonon4Qt5 4.6.60 REQUIRED NO_MODULE) find_package( LibLastFm ) set( LIBLASTFM_MIN_VERSION "1.0.0" ) if( LIBLASTFM_FOUND ) if ( ${LIBLASTFM_MIN_VERSION} VERSION_LESS ${LIBLASTFM_VERSION} ) set( LIBLASTFM_FOUND TRUE ) endif() endif() string( TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_TOLOWER ) if( CMAKE_BUILD_TYPE_TOLOWER MATCHES debug ) set( DEBUG_BUILD_TYPE ON ) add_definitions(-Wall -Wextra) endif() # this needs to be here because also code in shared/ needs config.h. This is also the # reason why various checks are above why they belong under if( WITH_PLAYER ) configure_file( shared/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/shared/config.h ) add_subdirectory( data ) add_subdirectory( images ) add_subdirectory( shared ) if( WITH_PLAYER ) find_package(X11) find_package(MySQLAmarok REQUIRED) if( WITH_MYSQL_EMBEDDED ) set( BUILD_MYSQLE_COLLECTION TRUE ) set_package_properties( MYSQLD PROPERTIES DESCRIPTION "Embedded MySQL Libraries" URL "http://www.mysql.com" TYPE REQUIRED ) else() add_definitions( "-DNO_MYSQL_EMBEDDED" ) endif() set_package_properties( MYSQL PROPERTIES DESCRIPTION "MySQL Server Libraries" URL "http://www.mysql.com" TYPE REQUIRED ) # zlib is required for mysql embedded find_package(ZLIB REQUIRED) set_package_properties( ZLIB PROPERTIES DESCRIPTION "zlib" TYPE REQUIRED ) # QJson is required for the PlaydarCollection find_package(QJSON) set_package_properties( QJSON PROPERTIES DESCRIPTION "Qt JSON Parser used for the Playdar Collection" URL "http://qjson.sourceforge.net/" TYPE OPTIONAL ) # We tell users that we need 1.0.3, but we really check just >= 1.0.0. This is because # upstream forgot to update version in lastfm/global.h, so it looks like 1.0.2. :-( # will be fixed in liblastfm-1.0.4 set( LIBLASTFM_MIN_VERSION "1.0.3" ) set_package_properties( LibLastFm PROPERTIES DESCRIPTION "Enable Last.Fm service, including scrobbling, song submissions, and suggested song dynamic playlists" URL "http://cdn.last.fm/client/liblastfm-${LIBLASTFM_MIN_VERSION}.tar.gz" TYPE OPTIONAL ) find_package(FFmpeg) set_package_properties(FFmpeg PROPERTIES DESCRIPTION "Libraries and tools for handling multimedia data" URL "https://www.ffmpeg.org/" TYPE OPTIONAL PURPOSE "Enable MusicDNS service" ) find_package(LibOFA) set_package_properties(LibOFA PROPERTIES DESCRIPTION "Open-source audio fingerprint by MusicIP" URL "http://code.google.com/p/musicip-libofa/" TYPE OPTIONAL PURPOSE "Enable MusicDNS service" ) ## gpodder Service find_package( Mygpo-qt5 ) set_package_properties( Mygpo-qt5 PROPERTIES DESCRIPTION "Enable gpodder.net service" URL "http://wiki.gpodder.org/wiki/Libmygpo-qt" TYPE OPTIONAL ) if( WITH_IPOD ) find_package(Ipod) set(IPOD_MIN_VERSION "0.8.2") if( IPOD_FOUND AND NOT WIN32 ) if ( ${IPOD_MIN_VERSION} VERSION_LESS ${IPOD_VERSION} ) set( IPOD_FOUND TRUE ) endif() endif() set_package_properties( Ipod PROPERTIES DESCRIPTION "Support Apple iPod/iPad/iPhone audio devices" URL "http://sourceforge.net/projects/gtkpod/" TYPE OPTIONAL ) find_package(GDKPixBuf) set_package_properties( GDKPixBuf PROPERTIES DESCRIPTION "Support for artwork on iPod audio devices via GDK-PixBuf" URL "http://developer.gnome.org/arch/imaging/gdkpixbuf.html" TYPE OPTIONAL ) endif() find_package(Mtp) set_package_properties( Mtp PROPERTIES DESCRIPTION "Enable Support for portable media devices that use the media transfer protocol" URL "http://libmtp.sourceforge.net/" TYPE OPTIONAL ) if( WITH_MP3Tunes ) find_package(CURL) set_package_properties( CURL PROPERTIES DESCRIPTION "Used to transfer data with URLs" URL "https://curl.haxx.se/" TYPE OPTIONAL ) find_package(LibXml2) set_package_properties( LibXml2 PROPERTIES DESCRIPTION "LibXML2 is an XML parser required by mp3tunes." URL "http://www.xmlsoft.org" TYPE OPTIONAL ) find_package(OpenSSL) find_package(Libgcrypt) if ( OPENSSL_FOUND OR LIBGCRYPT_FOUND ) set (_mp3tunes_crypto TRUE ) else () message( SEND_ERROR "Building with mp3tunes support REQUIRES either OpenSSL or GNU Libgcrypt" ) endif () set_package_properties( OpenSSL PROPERTIES DESCRIPTION "OpenSSL or GNU Libgcrypt provides cryptographic functions required by mp3tunes." URL "http://www.openssl.org/ or http://www.gnupg.org/download/#libgcrypt" TYPE OPTIONAL ) set_package_properties( Libgcrypt PROPERTIES DESCRIPTION "OpenSSL or GNU Libgcrypt provides cryptographic functions required by mp3tunes." URL "http://www.openssl.org/ or http://www.gnupg.org/download/#libgcrypt" TYPE OPTIONAL ) find_package(Loudmouth) set_package_properties( Loudmouth PROPERTIES DESCRIPTION "Loudmouth is the communication backend needed by mp3tunes for syncing." URL "http://www.loudmouth-project.org" TYPE OPTIONAL ) include(CheckQtGlib) set_package_properties( QT5_GLIB PROPERTIES DESCRIPTION "Qt5 must be compiled with glib support for mp3tunes" URL "http://www.trolltech.com" TYPE OPTIONAL ) endif() if( WITH_IPOD OR WITH_MP3Tunes ) pkg_search_module( GOBJECT REQUIRED gobject-2.0 ) set_package_properties( GOBJECT PROPERTIES DESCRIPTION "Required by libgpod and mp3tunes." URL "http://www.gtk.org" TYPE OPTIONAL ) pkg_search_module( GLIB2 glib-2.0 ) set_package_properties( GLIB2 PROPERTIES DESCRIPTION "Required by libgpod and mp3tunes" URL "http://www.gtk.org" TYPE OPTIONAL ) endif() find_program( CLAMZ_FOUND clamz PATH ) set_package_properties( CLAMZ PROPERTIES DESCRIPTION "Optional requirement to download songs from the Amazon MP3 store. Highly recommended on Linux, as the official downloader from Amazon is quite broken on many systems." URL "https://code.google.com/p/clamz/" TYPE OPTIONAL ) find_package(PythonInterp) set_package_properties( PYTHON PROPERTIES DESCRIPTION "Required for generating the autocompletion file for the script console" URL "https://www.python.org" TYPE OPTIONAL ) find_package(FFTW3 REQUIRED) if( BUILD_TESTING AND NOT WIN32 ) enable_testing() add_subdirectory( tests ) endif() add_subdirectory( src ) feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) #Do not remove or modify these. The release script substitutes in for these #comments with appropriate doc and translation directories. #PO_SUBDIR #DOC_SUBDIR endif() if( WITH_UTILITIES ) - set(EXEC_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX} CACHE PATH "Base directory for executables and libraries" FORCE) - set(BIN_INSTALL_DIR "${EXEC_INSTALL_PREFIX}/bin" CACHE PATH "The subdirectory to the binaries prefix (default prefix/bin)" FORCE) add_subdirectory( utilities ) endif() if( WITH_PLAYGROUND ) add_subdirectory( playground ) message(STATUS "Included playground subdirectory in configuration") endif() include(CTest) diff --git a/cmake/modules/CMakeLists.txt b/cmake/modules/CMakeLists.txt index c91c62ccd5..bc4f4cc5bd 100644 --- a/cmake/modules/CMakeLists.txt +++ b/cmake/modules/CMakeLists.txt @@ -1,8 +1,8 @@ # install the cmake files file(GLOB cmakeFiles "${CMAKE_CURRENT_SOURCE_DIR}/*.cmake") -set(module_install_dir ${DATA_INSTALL_DIR}/cmake/modules ) +set(module_install_dir ${KDE_INSTALL_DATADIR}/cmake/modules ) install( FILES ${cmakeFiles} DESTINATION ${module_install_dir} ) diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 51d1307ee5..bfdc5dff74 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -1,7 +1,7 @@ -install( FILES amarok_homerc DESTINATION ${CONFIG_INSTALL_DIR} ) -install( FILES amarok.notifyrc DESTINATION ${KNOTIFYRC_INSTALL_DIR} ) +install( FILES amarok_homerc DESTINATION ${KDE_INSTALL_CONFDIR} ) +install( FILES amarok.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFY5RCDIR} ) install(FILES DefaultPlaylistLayouts.xml first_run_jingle.ogg - DESTINATION ${DATA_INSTALL_DIR}/amarok/data) + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/data) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 39c1c95445..cfd3c510e5 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -1 +1 @@ -kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR amarok) +kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${KDE_INSTALL_DOCBUNDLEDIR}/en SUBDIR amarok) diff --git a/images/CMakeLists.txt b/images/CMakeLists.txt index e7188b27e6..4fcbfd5512 100644 --- a/images/CMakeLists.txt +++ b/images/CMakeLists.txt @@ -1,90 +1,90 @@ add_subdirectory( icons ) ########### install files ############### install(FILES amarok_icon.svg ball.png default-theme-clean.svg dot.png emblem-amazon.png emblem-default.png emblem-jamendo.png emblem-jamendo-scalable.svgz emblem-lastfm.png emblem-lastfm-scalable.svg emblem-gpodder.png emblem-gpodder-scalable.svgz emblem-magnatune.png emblem-mp3tunes.png emblem-ampache.png emblem-ampache-scalable.svgz emblem-scripted.png emblem-scripted-scalable.svgz grid.png lastfm-default-cover.png echonest.png lastfm.png loading1.png loading2.png mb_aicon.png mb_licon.png mb_ticon.png navigation_arrows.svg nocover.png playlist-bookmark-16.png playlist-layouts-22.png playlist-sorting-16.png pud_items.svg smallstar.png star.png volume_icon.png volume_muted_icon.png wirl1.png wirl2.png service_info_loading1.png service_info_loading2.png service_info_loading3.png service_info_loading4.png service_info_loading5.png service_info_loading6.png service_info_loading7.png service_info_loading8.png service_info_loading9.png service_info_loading10.png service_info_loading11.png service_info_loading12.png hover_info_collections.png hover_info_dynamic_playlists.png hover_info_files.png hover_info_internet.png hover_info_playlists.png hover_info_user_playlists.png hover_info_podcasts.png opendesktop-22.png emblem-delicious.png emblem-digg.png emblem-facebook.png emblem-identica.png emblem-linkedin.png emblem-myspace.png emblem-reddit.png emblem-stackoverflow.png emblem-twitter.png emblem-wikipedia.png emblem-xing.png - DESTINATION ${DATA_INSTALL_DIR}/amarok/images + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/images ) ecm_install_icons(ICONS 128-apps-amarok.png 16-apps-amarok.png 22-apps-amarok.png 32-apps-amarok.png 48-apps-amarok.png 64-apps-amarok.png - DESTINATION ${ICON_INSTALL_DIR} + DESTINATION ${KDE_INSTALL_ICONDIR} THEME hicolor ) diff --git a/images/icons/CMakeLists.txt b/images/icons/CMakeLists.txt index ea8a421a97..34d58200f9 100644 --- a/images/icons/CMakeLists.txt +++ b/images/icons/CMakeLists.txt @@ -1,278 +1,278 @@ ########### install files ############### ecm_install_icons(ICONS 128-status-audio-volume-high-amarok.png 128-status-audio-volume-low-amarok.png 128-status-audio-volume-medium-amarok.png 128-status-audio-volume-muted-amarok.png 16-actions-amarok_artist.png 16-actions-amarok_cart_add.png 16-actions-amarok_cart_remove.png 16-actions-amarok_cart_view.png 16-actions-amarok_change_language.png 16-actions-amarok_clock.png 16-actions-amarok_lyrics.png 16-actions-amarok_playcount.png 16-actions-amarok_playlist.png 16-actions-amarok_playlist_refresh.png 16-actions-amarok_scripts.png 16-actions-amarok_track.png 16-actions-collection-rescan-amarok.png 16-actions-download-amarok.png 16-actions-dynamic-amarok.png 16-actions-favorite-genres-amarok.png 16-actions-filename-album-amarok.png 16-actions-filename-artist-amarok.png 16-actions-filename-bpm-amarok.png 16-actions-filename-comment-amarok.png 16-actions-filename-composer-amarok.png 16-actions-filename-dash-amarok.png 16-actions-filename-discnumber-amarok.png 16-actions-filename-dot-amarok.png 16-actions-filename-filetype-amarok.png 16-actions-filename-genre-amarok.png 16-actions-filename-ignore-amarok.png 16-actions-filename-initial-amarok.png 16-actions-filename-last-played.png 16-actions-filename-slash-amarok.png 16-actions-filename-space-amarok.png 16-actions-filename-title-amarok.png 16-actions-filename-track-amarok.png 16-actions-filename-underscore-amarok.png 16-actions-filename-year-amarok.png 16-actions-label-amarok.png 16-actions-lastfm-mix-radio-amarok.png 16-actions-lastfm-neighbour-radio-amarok.png 16-actions-lastfm-personal-radio-amarok.png 16-actions-lastfm-recommended-radio-amarok.png 16-actions-lastfm-tag-amarok.png 16-actions-love-amarok.png 16-actions-media-album-cover-manager-amarok.png 16-actions-media-album-repeat-amarok.png 16-actions-media-playlist-repeat-amarok.png 16-actions-media-random-albums-amarok.png 16-actions-media-random-tracks-amarok.png 16-actions-media-repeat-album-amarok.png 16-actions-media-repeat-playlist-amarok.png 16-actions-media-repeat-track-amarok.png 16-actions-media-show-active-track-amarok.png 16-actions-media-standard-track-progression-amarok.png 16-actions-media-track-add-amarok.png 16-actions-media-track-edit-amarok.png 16-actions-media-track-queue-amarok.png 16-actions-media-track-remove-amarok.png 16-actions-music-amarok.png 16-actions-playlist-generator.png 16-actions-podcast-amarok.png 16-actions-preferences-indicator-amarok.png 16-actions-preferences-media-playback-amarok.png 16-actions-preferences-multimedia-player-amarok.png 16-actions-preferences-view-amarok.png 16-actions-remove-amarok.png 16-actions-view-importers-banshee-amarok.png 16-actions-view-importers-clementine-amarok.png 16-actions-view-importers-rhythmbox-amarok.png 16-actions-view-services-amazon-amarok.png 16-actions-view-services-ampache-amarok.png 16-actions-view-services-gpodder-amarok.png 16-actions-view-services-jamendo-amarok.png 16-actions-view-services-lastfm-amarok.png 16-actions-view-services-librivox-amarok.png 16-actions-view-services-magnatune-amarok.png 16-actions-view-services-mp3tunes-amarok.png 16-actions-view-services-opml-amarok.png 16-actions-view-services-scripted-amarok.png 22-actions-amarok_artist.png 22-actions-amarok_cart_add.png 22-actions-amarok_cart_remove.png 22-actions-amarok_cart_view.png 22-actions-amarok_change_language.png 22-actions-amarok_clock.png 22-actions-amarok_lyrics.png 22-actions-amarok_playcount.png 22-actions-amarok_playlist.png 22-actions-amarok_playlist_refresh.png 22-actions-amarok_scripts.png 22-actions-amarok_track.png 22-actions-collection-rescan-amarok.png 22-actions-download-amarok.png 22-actions-dynamic-amarok.png 22-actions-filename-bpm-amarok.png 22-actions-internet-amarok.png 22-actions-love-amarok.png 22-actions-media-album-cover-manager-amarok.png 22-actions-media-album-repeat-amarok.png 22-actions-media-playlist-repeat-amarok.png 22-actions-media-random-albums-amarok.png 22-actions-media-random-tracks-amarok.png 22-actions-media-repeat-album-amarok.png 22-actions-media-repeat-playlist-amarok.png 22-actions-media-repeat-track-amarok.png 22-actions-media-show-active-track-amarok.png 22-actions-media-standard-track-progression-amarok.png 22-actions-media-track-add-amarok.png 22-actions-media-track-edit-amarok.png 22-actions-media-track-queue-amarok.png 22-actions-media-track-remove-amarok.png 22-actions-music-amarok.png 22-actions-playlist-generator.png 22-actions-podcast-amarok.png 22-actions-preferences-indicator-amarok.png 22-actions-preferences-media-playback-amarok.png 22-actions-preferences-multimedia-player-amarok.png 22-actions-preferences-view-amarok.png 22-actions-remove-amarok.png 22-actions-view-importers-banshee-amarok.png 22-actions-view-importers-clementine-amarok.png 22-actions-view-importers-rhythmbox-amarok.png 22-actions-view-services-amazon-amarok.png 22-actions-view-services-gpodder-amarok.png 22-actions-view-services-jamendo-amarok.png 22-actions-view-services-lastfm-amarok.png 22-actions-view-services-librivox-amarok.png 22-actions-view-services-magnatune-amarok.png 22-actions-view-services-mp3tunes-amarok.png 22-actions-view-services-opml-amarok.png 22-actions-view-services-scripted-amarok.png 24-actions-lastfm-my-friends-amarok.png 24-actions-lastfm-my-neighbours-amarok.png 24-actions-lastfm-my-tags-amarok.png 32-actions-amarok_artist.png 32-actions-amarok_cart_add.png 32-actions-amarok_cart_remove.png 32-actions-amarok_cart_view.png 32-actions-amarok_change_language.png 32-actions-amarok_clock.png 32-actions-amarok_lyrics.png 32-actions-amarok_playcount.png 32-actions-amarok_playlist.png 32-actions-amarok_playlist_refresh.png 32-actions-amarok_scripts.png 32-actions-amarok_track.png 32-actions-audioscrobbler.png 32-actions-collection-rescan-amarok.png 32-actions-download-amarok.png 32-actions-dynamic-amarok.png 32-actions-filename-bpm-amarok.png 32-actions-love-amarok.png 32-actions-media-album-cover-manager-amarok.png 32-actions-media-album-cover.png 32-actions-media-album-repeat-amarok.png 32-actions-media-album-track.png 32-actions-media-playlist-repeat-amarok.png 32-actions-media-random-albums-amarok.png 32-actions-media-random-tracks-amarok.png 32-actions-media-repeat-album-amarok.png 32-actions-media-repeat-playlist-amarok.png 32-actions-media-repeat-track-amarok.png 32-actions-media-show-active-track-amarok.png 32-actions-media-standard-track-progression-amarok.png 32-actions-media-track-add-amarok.png 32-actions-media-track-edit-amarok.png 32-actions-media-track-queue-amarok.png 32-actions-media-track-remove-amarok.png 32-actions-music-amarok.png 32-actions-playlist-generator.png 32-actions-podcast-amarok.png 32-actions-preferences-indicator-amarok.png 32-actions-preferences-media-playback-amarok.png 32-actions-preferences-multimedia-player-amarok.png 32-actions-preferences-view-amarok.png 32-actions-remove-amarok.png 32-actions-view-importers-banshee-amarok.png 32-actions-view-importers-clementine-amarok.png 32-actions-view-importers-rhythmbox-amarok.png 32-actions-view-services-amazon-amarok.png 32-actions-view-services-ampache-amarok.png 32-actions-view-services-gpodder-amarok.png 32-actions-view-services-jamendo-amarok.png 32-actions-view-services-lastfm-amarok.png 32-actions-view-services-magnatune-amarok.png 32-actions-view-services-mp3tunes-amarok.png 32-actions-view-services-opml-amarok.png 32-actions-view-services-scripted-amarok.png 48-actions-amarok_artist.png 48-actions-amarok_cart_add.png 48-actions-amarok_cart_remove.png 48-actions-amarok_cart_view.png 48-actions-amarok_change_language.png 48-actions-amarok_clock.png 48-actions-amarok_lyrics.png 48-actions-amarok_playcount.png 48-actions-amarok_playlist.png 48-actions-amarok_playlist_refresh.png 48-actions-amarok_scripts.png 48-actions-amarok_track.png 48-actions-collection-rescan-amarok.png 48-actions-current-track-amarok.png 48-actions-download-amarok.png 48-actions-dynamic-amarok.png 48-actions-filename-album-amarok.png 48-actions-filename-and-amarok.png 48-actions-filename-artist-amarok.png 48-actions-filename-bpm-amarok.png 48-actions-filename-comment-amarok.png 48-actions-filename-composer-amarok.png 48-actions-filename-dash-amarok.png 48-actions-filename-discnumber-amarok.png 48-actions-filename-divider.png 48-actions-filename-dot-amarok.png 48-actions-filename-filetype-amarok.png 48-actions-filename-genre-amarok.png 48-actions-filename-group-length.png 48-actions-filename-group-tracks.png 48-actions-filename-ignore-amarok.png 48-actions-filename-initial-amarok.png 48-actions-filename-last-played.png 48-actions-filename-moodbar.png 48-actions-filename-sample-rate.png 48-actions-filename-slash-amarok.png 48-actions-filename-space-amarok.png 48-actions-filename-title-amarok.png 48-actions-filename-track-amarok.png 48-actions-filename-underscore-amarok.png 48-actions-filename-year-amarok.png 48-actions-info-amarok.png 48-actions-label-amarok.png 48-actions-love-amarok.png 48-actions-media-album-cover-manager-amarok.png 48-actions-media-album-repeat-amarok.png 48-actions-media-playlist-repeat-amarok.png 48-actions-media-random-albums-amarok.png 48-actions-media-random-tracks-amarok.png 48-actions-media-repeat-album-amarok.png 48-actions-media-repeat-playlist-amarok.png 48-actions-media-repeat-track-amarok.png 48-actions-media-show-active-track-amarok.png 48-actions-media-standard-track-progression-amarok.png 48-actions-media-track-add-amarok.png 48-actions-media-track-edit-amarok.png 48-actions-media-track-queue-amarok.png 48-actions-media-track-remove-amarok.png 48-actions-music-amarok.png 48-actions-photos-amarok.png 48-actions-playlist-generator.png 48-actions-podcast-amarok.png 48-actions-preferences-indicator-amarok.png 48-actions-preferences-media-playback-amarok.png 48-actions-preferences-multimedia-player-amarok.png 48-actions-preferences-view-amarok.png 48-actions-remove-amarok.png 48-actions-similarartists-amarok.png 48-actions-upcomingevents-amarok.png 48-actions-videoclip-amarok.png 48-actions-view-importers-banshee-amarok.png 48-actions-view-importers-clementine-amarok.png 48-actions-view-importers-rhythmbox-amarok.png 48-actions-view-media-analyzer-amarok.png 48-actions-view-services-amazon-amarok.png 48-actions-view-services-ampache-amarok.png 48-actions-view-services-gpodder-amarok.png 48-actions-view-services-jamendo-amarok.png 48-actions-view-services-lastfm-amarok.png 48-actions-view-services-magnatune-amarok.png 48-actions-view-services-mp3tunes-amarok.png - DESTINATION ${DATA_INSTALL_DIR}/amarok/icons + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/icons THEME hicolor ) diff --git a/playground/src/context/applets/coverbling/CMakeLists.txt b/playground/src/context/applets/coverbling/CMakeLists.txt index 9a800865b8..3c1d9313b0 100644 --- a/playground/src/context/applets/coverbling/CMakeLists.txt +++ b/playground/src/context/applets/coverbling/CMakeLists.txt @@ -1,36 +1,36 @@ project(context-coverbling) set(coverbling_SRCS pictureflow.cpp CoverBlingApplet.cpp ImageLoader.cpp PhotoBrowser.cpp SearchBarTextItem.cpp ) #include_directories( ../../.. # ../.. # ${KDE4_INCLUDE_DIR}/amarok ) # this way we don't need to prefix it with amarok/ (and it compiles this way too :) ki18n_wrap_ui( coverbling_SRCS coverblingSettings.ui ) add_library(amarok_context_applet_coverbling MODULE ${coverbling_SRCS}) target_link_libraries(amarok_context_applet_coverbling amarokcore amaroklib KF5::Plasma KF5::KIOCore ) -install(TARGETS amarok_context_applet_coverbling DESTINATION ${PLUGIN_INSTALL_DIR}) -install(FILES amarok-context-applet-coverbling.desktop DESTINATION ${SERVICES_INSTALL_DIR}) -install(FILES blingfastback.png DESTINATION ${DATA_INSTALL_DIR}/amarok/images/ ) -install(FILES blingtofirst.png DESTINATION ${DATA_INSTALL_DIR}/amarok/images/ ) -install(FILES blingfastforward.png DESTINATION ${DATA_INSTALL_DIR}/amarok/images/ ) -install(FILES blingtolast.png DESTINATION ${DATA_INSTALL_DIR}/amarok/images/ ) -install(FILES blingdefaultcover.png DESTINATION ${DATA_INSTALL_DIR}/amarok/images/ ) -install(FILES blingfullscreen.png DESTINATION ${DATA_INSTALL_DIR}/amarok/images/ ) -install(FILES blingjumptoplaying.png DESTINATION ${DATA_INSTALL_DIR}/amarok/images/ ) -install(FILES blingsearchalbum.png DESTINATION ${DATA_INSTALL_DIR}/amarok/images/ ) -install(FILES blingsearchartist.png DESTINATION ${DATA_INSTALL_DIR}/amarok/images/ ) +install(TARGETS amarok_context_applet_coverbling DESTINATION ${KDE_INSTALL_PLUGINDIR}) +install(FILES amarok-context-applet-coverbling.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) +install(FILES blingfastback.png DESTINATION ${KDE_INSTALL_DATADIR}/amarok/images/ ) +install(FILES blingtofirst.png DESTINATION ${KDE_INSTALL_DATADIR}/amarok/images/ ) +install(FILES blingfastforward.png DESTINATION ${KDE_INSTALL_DATADIR}/amarok/images/ ) +install(FILES blingtolast.png DESTINATION ${KDE_INSTALL_DATADIR}/amarok/images/ ) +install(FILES blingdefaultcover.png DESTINATION ${KDE_INSTALL_DATADIR}/amarok/images/ ) +install(FILES blingfullscreen.png DESTINATION ${KDE_INSTALL_DATADIR}/amarok/images/ ) +install(FILES blingjumptoplaying.png DESTINATION ${KDE_INSTALL_DATADIR}/amarok/images/ ) +install(FILES blingsearchalbum.png DESTINATION ${KDE_INSTALL_DATADIR}/amarok/images/ ) +install(FILES blingsearchartist.png DESTINATION ${KDE_INSTALL_DATADIR}/amarok/images/ ) diff --git a/playground/src/context/applets/covergrid/CMakeLists.txt b/playground/src/context/applets/covergrid/CMakeLists.txt index dfadf19582..7c427d9bce 100644 --- a/playground/src/context/applets/covergrid/CMakeLists.txt +++ b/playground/src/context/applets/covergrid/CMakeLists.txt @@ -1,25 +1,25 @@ project(context-covergrid) set(covergrid_SRCS CoverGridApplet.cpp AlbumItem.cpp ) #include_directories( ../../.. # ../.. # ${KDE4_INCLUDE_DIR}/amarok # this way we don't need to prefix it with amarok/ (and it compiles this way too :) #) ki18n_wrap_ui( covergrid_SRCS CoverGridSettings.ui ) add_library(amarok_context_applet_covergrid MODULE ${covergrid_SRCS}) target_link_libraries(amarok_context_applet_covergrid amarokcore amaroklib KF5::Plasma KF5::KIOCore ) -install(TARGETS amarok_context_applet_covergrid DESTINATION ${PLUGIN_INSTALL_DIR}) -install(FILES amarok-context-applet-covergrid.desktop DESTINATION ${SERVICES_INSTALL_DIR}) +install(TARGETS amarok_context_applet_covergrid DESTINATION ${KDE_INSTALL_PLUGINDIR}) +install(FILES amarok-context-applet-covergrid.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) diff --git a/playground/src/scripts/bbc_service/CMakeLists.txt b/playground/src/scripts/bbc_service/CMakeLists.txt index 300556712e..a9b30930cd 100644 --- a/playground/src/scripts/bbc_service/CMakeLists.txt +++ b/playground/src/scripts/bbc_service/CMakeLists.txt @@ -1,8 +1,8 @@ install( FILES COPYING README main.js script.spec - DESTINATION ${DATA_INSTALL_DIR}/amarok/scripts/bbc_service + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/scripts/bbc_service ) diff --git a/playground/src/scripts/copycover/CMakeLists.txt b/playground/src/scripts/copycover/CMakeLists.txt index 5263c23bd5..4db65c5a11 100644 --- a/playground/src/scripts/copycover/CMakeLists.txt +++ b/playground/src/scripts/copycover/CMakeLists.txt @@ -1,7 +1,7 @@ install( FILES main.js script.spec copycover.ui - DESTINATION ${DATA_INSTALL_DIR}/amarok/scripts/copycover + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/scripts/copycover ) diff --git a/playground/src/scripts/danish_streams_service/CMakeLists.txt b/playground/src/scripts/danish_streams_service/CMakeLists.txt index cd7c24ae5a..e4e088825a 100644 --- a/playground/src/scripts/danish_streams_service/CMakeLists.txt +++ b/playground/src/scripts/danish_streams_service/CMakeLists.txt @@ -1,7 +1,7 @@ install( FILES script.spec main.js - DESTINATION ${DATA_INSTALL_DIR}/amarok/scripts/danish_streams_service + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/scripts/danish_streams_service ) diff --git a/playground/src/scripts/encoding_fixer/CMakeLists.txt b/playground/src/scripts/encoding_fixer/CMakeLists.txt index cd7a17d3d3..a9546beb44 100644 --- a/playground/src/scripts/encoding_fixer/CMakeLists.txt +++ b/playground/src/scripts/encoding_fixer/CMakeLists.txt @@ -1,7 +1,7 @@ install( FILES script.spec main.js main.ui - DESTINATION ${DATA_INSTALL_DIR}/amarok/scripts/encoding_fixer + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/scripts/encoding_fixer ) diff --git a/playground/src/scripts/npr_service/CMakeLists.txt b/playground/src/scripts/npr_service/CMakeLists.txt index 3edd3bf08e..899fb77497 100644 --- a/playground/src/scripts/npr_service/CMakeLists.txt +++ b/playground/src/scripts/npr_service/CMakeLists.txt @@ -1,8 +1,8 @@ install( FILES COPYING README main.js script.spec - DESTINATION ${DATA_INSTALL_DIR}/amarok/scripts/npr_service + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/scripts/npr_service ) -#ecm_install_icons( ${DATA_INSTALL_DIR}/amarok/icons ) +#ecm_install_icons( ${KDE_INSTALL_DATADIR}/amarok/icons ) diff --git a/playground/src/scripts/seeqpod_service/CMakeLists.txt b/playground/src/scripts/seeqpod_service/CMakeLists.txt index 05804781ed..d9b8a57bb9 100644 --- a/playground/src/scripts/seeqpod_service/CMakeLists.txt +++ b/playground/src/scripts/seeqpod_service/CMakeLists.txt @@ -1,9 +1,9 @@ install( FILES script.spec main.js COPYING README SeeqpodService.html - DESTINATION ${DATA_INSTALL_DIR}/amarok/scripts/seeqpod_service + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/scripts/seeqpod_service ) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ffa8703c07..2bf8a5a560 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,978 +1,978 @@ # Improves speed of string concatenation add_definitions(-DQT_USE_FAST_CONCATENATION) add_definitions(-DQT_USE_FAST_OPERATOR_PLUS) if(NOT MSVC) add_definitions(-DQT_STRICT_ITERATORS) endif() if(APPLE) set(mac_SRCS app_mac.cpp mac/GrowlInterface.cpp ) # Notification Center Appeared in 10.8, or Darwin 12 if( CMAKE_SYSTEM_VERSION VERSION_GREATER "11.9.9") list(APPEND mac_SRCS mac/MacSystemNotify.mm) add_definitions(-DHAVE_NOTIFICATION_CENTER) endif() include_directories ( services/lastfm/ ) set( MAC_FILES_DIR ${CMAKE_SOURCE_DIR}/src/mac ) endif() include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ) add_subdirectory( core ) add_subdirectory( core-impl/collections ) add_subdirectory( core-impl/storage/sql ) add_subdirectory( context ) add_subdirectory( services ) add_subdirectory( scripting/scripts ) add_subdirectory( aboutdialog/libattica-ocsclient ) add_subdirectory( transcoding ) add_subdirectory( kconf_update ) add_subdirectory( importers ) ##################################################################### # PROXYCOLLECTION ##################################################################### set(aggregatecollection_SRCS core-impl/collections/aggregate/AggregateCollection.cpp core-impl/collections/aggregate/AggregateMeta.cpp core-impl/collections/aggregate/AggregateQueryMaker.cpp ) ##################################################################### # MEDIADEVICEFRAMEWORK ##################################################################### set(libmediadeviceframework_SRCS core-impl/collections/mediadevicecollection/MediaDeviceCollection.cpp core-impl/collections/mediadevicecollection/MediaDeviceCollectionLocation.cpp core-impl/collections/mediadevicecollection/MediaDeviceMeta.cpp core-impl/collections/mediadevicecollection/MediaDeviceTrackEditor.cpp core-impl/collections/mediadevicecollection/handler/MediaDeviceHandler.cpp core-impl/collections/mediadevicecollection/handler/MediaDeviceHandlerCapability.cpp core-impl/collections/mediadevicecollection/handler/capabilities/ArtworkCapability.cpp core-impl/collections/mediadevicecollection/handler/capabilities/PlaylistCapability.cpp core-impl/collections/mediadevicecollection/handler/capabilities/PodcastCapability.cpp core-impl/collections/mediadevicecollection/handler/capabilities/ReadCapability.cpp core-impl/collections/mediadevicecollection/handler/capabilities/WriteCapability.cpp core-impl/collections/mediadevicecollection/playlist/MediaDevicePlaylist.cpp core-impl/collections/mediadevicecollection/playlist/MediaDeviceUserPlaylistProvider.cpp core-impl/collections/mediadevicecollection/podcast/MediaDevicePodcastProvider.cpp core-impl/collections/mediadevicecollection/support/ConnectionAssistant.cpp core-impl/collections/mediadevicecollection/support/MediaDeviceInfo.cpp ) ##################################################################### # SERVICEFRAMEWORK ##################################################################### set(libserviceframework_SRCS services/DynamicServiceQueryMaker.cpp services/InfoParserBase.cpp services/ServiceAlbumCoverDownloader.cpp services/ServiceBase.cpp services/ServiceCapabilities.cpp services/ServiceCollection.cpp services/ServiceCollectionLocation.cpp services/ServiceCollectionTreeView.cpp services/ServiceMetaBase.cpp services/ServicePluginManager.cpp services/ServiceSqlCollection.cpp services/ServiceSqlQueryMaker.cpp services/ServiceSqlRegistry.cpp ) ##################################################################### # SERVICEBROWSER ##################################################################### set(libservicebrowser_SRCS browsers/servicebrowser/ServiceBrowser.cpp ) ##################################################################### # AMAROKURL ##################################################################### set(libamarokurl_SRCS amarokurls/AmarokUrl.cpp amarokurls/AmarokUrlAction.cpp amarokurls/AmarokUrlHandler.cpp amarokurls/BookmarkCurrentButton.cpp amarokurls/ContextUrlGenerator.cpp amarokurls/ContextUrlRunner.cpp amarokurls/NavigationUrlRunner.cpp amarokurls/NavigationUrlGenerator.cpp amarokurls/PlayUrlRunner.cpp amarokurls/PlayUrlGenerator.cpp amarokurls/BookmarkManager.cpp amarokurls/BookmarkManagerWidget.cpp amarokurls/BookmarkGroup.cpp amarokurls/BookmarkModel.cpp amarokurls/BookmarkTreeView.cpp amarokurls/BookmarkMetaActions.cpp ) ##################################################################### # SCRIPTABLESERVICE ##################################################################### set(libscriptableservice_SRCS services/scriptable/ScriptableService.cpp services/scriptable/ScriptableServiceCollection.cpp services/scriptable/ScriptableServiceCollectionTreeModel.cpp services/scriptable/ScriptableServiceInfoParser.cpp services/scriptable/ScriptableServiceManager.cpp services/scriptable/ScriptableServiceMeta.cpp services/scriptable/ScriptableServiceQueryMaker.cpp ) ##################################################################### # CONFIGDIALOG ##################################################################### set(libconfigdialog_SRCS configdialog/ConfigDialog.cpp configdialog/ConfigDialogBase.cpp configdialog/dialogs/CollectionConfig.cpp configdialog/dialogs/ExcludedLabelsDialog.cpp configdialog/dialogs/GeneralConfig.cpp configdialog/dialogs/MetadataConfig.cpp configdialog/dialogs/NotificationsConfig.cpp configdialog/dialogs/PlaybackConfig.cpp configdialog/dialogs/PluginsConfig.cpp configdialog/dialogs/ScriptsConfig.cpp configdialog/dialogs/ScriptSelector.cpp configdialog/dialogs/DatabaseConfig.cpp ) ki18n_wrap_ui(libconfigdialog_SRCS configdialog/dialogs/CollectionConfig.ui configdialog/dialogs/GeneralConfig.ui configdialog/dialogs/MetadataConfig.ui configdialog/dialogs/ExcludedLabelsDialog.ui configdialog/dialogs/NotificationsConfig.ui configdialog/dialogs/PlaybackConfig.ui configdialog/dialogs/DatabaseConfig.ui configdialog/dialogs/ScriptsConfig.ui ) set(libbrowserframework_SRCS browsers/BrowserBreadcrumbItem.cpp browsers/BrowserBreadcrumbWidget.cpp browsers/BrowserCategory.cpp browsers/BrowserCategoryList.cpp browsers/BrowserCategoryListModel.cpp browsers/BrowserCategoryListSortFilterProxyModel.cpp browsers/BrowserDock.cpp browsers/BrowserMessageArea.cpp browsers/CollectionSortFilterProxyModel.cpp browsers/CollectionTreeItem.cpp browsers/CollectionTreeItemModel.cpp browsers/CollectionTreeItemModelBase.cpp browsers/CollectionTreeView.cpp browsers/InfoProxy.cpp browsers/SingleCollectionTreeItemModel.cpp ) ##################################################################### # COLLECTIONBROWSER ##################################################################### set(libcollectionbrowser_SRCS browsers/collectionbrowser/CollectionBrowserTreeView.cpp browsers/collectionbrowser/CollectionWidget.cpp ) ##################################################################### # SYNCHRONIZATION ##################################################################### set(libsynchronization_SRCS synchronization/MasterSlaveSynchronizationJob.cpp synchronization/OneWaySynchronizationJob.cpp synchronization/SynchronizationBaseJob.cpp synchronization/UnionJob.cpp ) ##################################################################### # STATUSBAR ##################################################################### set(libstatusbar_SRCS statusbar/ProgressBar.cpp statusbar/KJobProgressBar.cpp statusbar/NetworkProgressBar.cpp statusbar/CompoundProgressBar.cpp statusbar/PopupWidget.cpp statusbar/LongMessageWidget.cpp ) ##################################################################### # META ##################################################################### set(libmetaimpl_SRCS core-impl/playlists/providers/user/UserPlaylistProvider.cpp core-impl/playlists/types/file/asx/ASXPlaylist.cpp core-impl/playlists/types/file/m3u/M3UPlaylist.cpp core-impl/playlists/types/file/pls/PLSPlaylist.cpp core-impl/playlists/types/file/PlaylistFileLoaderJob.cpp core-impl/playlists/types/file/PlaylistFileSupport.cpp core-impl/playlists/types/file/xspf/XSPFPlaylist.cpp core-impl/capabilities/AlbumActionsCapability.cpp core-impl/capabilities/timecode/TimecodeBoundedPlaybackCapability.cpp core-impl/capabilities/timecode/TimecodeLoadCapability.cpp core-impl/capabilities/timecode/TimecodeWriteCapability.cpp core-impl/capabilities/multisource/MultiSourceCapabilityImpl.cpp core-impl/meta/file/File.cpp core-impl/meta/file/FileTrackProvider.cpp core-impl/meta/multi/MultiTrack.cpp core-impl/meta/cue/CueFileSupport.cpp core-impl/meta/proxy/MetaProxy.cpp core-impl/meta/proxy/MetaProxyWorker.cpp core-impl/meta/stream/Stream.cpp core-impl/playlists/types/file/PlaylistFile.cpp core-impl/support/PersistentStatisticsStore.cpp core-impl/support/TagStatisticsStore.cpp core-impl/support/UrlStatisticsStore.cpp ) ##################################################################### # COLLECTION ##################################################################### set(collection_SRCS core-impl/collections/support/jobs/WriteTagsJob.cpp core-impl/collections/support/ArtistHelper.cpp core-impl/collections/support/CollectionManager.cpp core-impl/collections/support/CollectionLocationDelegateImpl.cpp core-impl/collections/support/MemoryCustomValue.cpp core-impl/collections/support/MemoryFilter.cpp core-impl/collections/support/MemoryMatcher.cpp core-impl/collections/support/MemoryMeta.cpp core-impl/collections/support/MemoryQueryMaker.cpp core-impl/collections/support/MemoryQueryMakerInternal.cpp core-impl/collections/support/MemoryQueryMakerHelper.cpp core-impl/collections/support/TrashCollectionLocation.cpp core-impl/collections/support/XmlQueryReader.cpp core-impl/collections/support/FileCollectionLocation.cpp core-impl/collections/support/Expression.cpp core-impl/collections/support/TextualQueryFilter.cpp ) ##################################################################### # STORAGE ##################################################################### set(storage_SRCS core-impl/storage/StorageManager.cpp ) ##################################################################### # SCANNER ##################################################################### set( scanner_SRCS scanner/GenericScanManager.cpp scanner/GenericScannerJob.cpp scanner/AbstractDirectoryWatcher.cpp scanner/AbstractScanResultProcessor.cpp ) ##################################################################### # CONTEXT ##################################################################### set( libcontextview_SRCS context/AmarokContextPackageStructure.cpp context/AppletLoader.cpp context/AppletModel.cpp context/ContextDock.cpp context/ContextView.cpp context/LyricsManager.cpp ) ##################################################################### # PODCASTS ##################################################################### set(libpodcasts_SRCS core-impl/podcasts/sql/SqlPodcastMeta.cpp core-impl/podcasts/sql/SqlPodcastProvider.cpp core-impl/podcasts/sql/PodcastSettingsDialog.cpp core-impl/podcasts/sql/PodcastFilenameLayoutConfigDialog.cpp ) ##################################################################### # PLAYLISTBROWSER ##################################################################### set(libplaylistbrowser_SRCS browsers/playlistbrowser/APGCategory.cpp browsers/playlistbrowser/DynamicCategory.cpp browsers/playlistbrowser/DynamicBiasDelegate.cpp browsers/playlistbrowser/DynamicBiasDialog.cpp browsers/playlistbrowser/DynamicView.cpp browsers/playlistbrowser/PlaylistBrowserFilterProxy.cpp browsers/playlistbrowser/PlaylistBrowserModel.cpp browsers/playlistbrowser/PlaylistBrowserCategory.cpp browsers/playlistbrowser/QtGroupingProxy.cpp browsers/playlistbrowser/PlaylistBrowser.cpp browsers/playlistbrowser/PlaylistBrowserView.cpp browsers/playlistbrowser/UserPlaylistCategory.cpp browsers/playlistbrowser/PlaylistsInFoldersProxy.cpp browsers/playlistbrowser/PlaylistsByProviderProxy.cpp browsers/playlistbrowser/PodcastModel.cpp browsers/playlistbrowser/PodcastCategory.cpp browsers/playlistbrowser/UserPlaylistModel.cpp ) ##################################################################### # PLAYLISTMANAGER ##################################################################### set(libplaylistmanager_SRCS playlistmanager/PlaylistManager.cpp playlistmanager/file/PlaylistFileProvider.cpp playlistmanager/file/KConfigSyncRelStore.cpp playlistmanager/sql/SqlUserPlaylistProvider.cpp playlistmanager/sql/SqlPlaylist.cpp playlistmanager/sql/SqlPlaylistGroup.cpp playlistmanager/SyncedPlaylist.cpp playlistmanager/SyncedPodcast.cpp playlistmanager/SyncRelationStorage.cpp ) ##################################################################### # PLAYLIST ##################################################################### set(libplaylist_SRCS playlist/PlaylistActions.cpp playlist/PlaylistBreadcrumbItem.cpp playlist/PlaylistBreadcrumbItemSortButton.cpp playlist/PlaylistBreadcrumbLevel.cpp playlist/PlaylistDefines.cpp playlist/PlaylistController.cpp playlist/PlaylistInfoWidget.cpp playlist/PlaylistItem.cpp playlist/PlaylistModel.cpp playlist/PlaylistModelStack.cpp playlist/PlaylistRestorer.cpp playlist/PlaylistQueueEditor.cpp playlist/PlaylistSortWidget.cpp playlist/PlaylistViewUrlGenerator.cpp playlist/PlaylistViewUrlRunner.cpp playlist/PlaylistDock.cpp playlist/PlaylistToolBar.cpp playlist/ProgressiveSearchWidget.cpp playlist/UndoCommands.cpp playlist/layouts/LayoutEditDialog.cpp playlist/layouts/LayoutEditWidget.cpp playlist/layouts/LayoutConfigAction.cpp playlist/layouts/LayoutItemConfig.cpp playlist/layouts/LayoutManager.cpp playlist/layouts/PlaylistLayoutEditDialog.cpp playlist/navigators/AlbumNavigator.cpp playlist/navigators/DynamicTrackNavigator.cpp playlist/navigators/FavoredRandomTrackNavigator.cpp playlist/navigators/NavigatorConfigAction.cpp playlist/navigators/NonlinearTrackNavigator.cpp playlist/navigators/RandomAlbumNavigator.cpp playlist/navigators/RandomTrackNavigator.cpp playlist/navigators/RepeatAlbumNavigator.cpp playlist/navigators/RepeatTrackNavigator.cpp playlist/navigators/StandardTrackNavigator.cpp playlist/navigators/TrackNavigator.cpp playlist/view/PlaylistViewCommon.cpp playlist/view/listview/InlineEditorWidget.cpp playlist/view/listview/PrettyItemDelegate.cpp playlist/view/listview/PrettyListView.cpp playlist/view/listview/SourceSelectionPopup.cpp playlist/proxymodels/GroupingProxy.cpp playlist/proxymodels/ProxyBase.cpp playlist/proxymodels/SortAlgorithms.cpp playlist/proxymodels/SortFilterProxy.cpp playlist/proxymodels/SortScheme.cpp playlist/proxymodels/SearchProxy.cpp ) ki18n_wrap_ui(libplaylist_SRCS playlist/PlaylistQueueEditor.ui ) ##################################################################### # DYNAMIC ##################################################################### set(libdynamic_SRCS dynamic/TrackSet.cpp dynamic/BiasFactory.cpp dynamic/BiasedPlaylist.cpp dynamic/BiasSolver.cpp dynamic/DynamicPlaylist.cpp dynamic/DynamicModel.cpp # biases dynamic/Bias.cpp dynamic/biases/AlbumPlayBias.cpp dynamic/biases/EchoNestBias.cpp dynamic/biases/IfElseBias.cpp dynamic/biases/PartBias.cpp dynamic/biases/QuizPlayBias.cpp dynamic/biases/TagMatchBias.cpp dynamic/biases/SearchQueryBias.cpp ) ##################################################################### # DBUS ##################################################################### set(dbus_SRCS dbus/mpris1/RootHandler.cpp dbus/mpris1/PlayerHandler.cpp dbus/mpris1/TrackListHandler.cpp dbus/mpris2/DBusAbstractAdaptor.cpp dbus/mpris2/Mpris2.cpp dbus/mpris2/MediaPlayer2.cpp dbus/mpris2/MediaPlayer2Player.cpp dbus/mpris2/MediaPlayer2AmarokExtensions.cpp dbus/mpris2/DBusAmarokApp.cpp dbus/CollectionDBusHandler.cpp dbus/DBusQueryHelper.cpp ) ##################################################################### # SCRIPTING INTERFACE ##################################################################### set(scriptengine_SRCS scripting/scriptengine/AmarokBookmarkScript.cpp scripting/scriptengine/AmarokCollectionScript.cpp scripting/scriptengine/AmarokCollectionViewScript.cpp scripting/scriptengine/AmarokEngineScript.cpp scripting/scriptengine/AmarokEqualizerScript.cpp scripting/scriptengine/AmarokInfoScript.cpp scripting/scriptengine/AmarokKNotifyScript.cpp scripting/scriptengine/AmarokLyricsScript.cpp scripting/scriptengine/AmarokNetworkScript.cpp scripting/scriptengine/AmarokOSDScript.cpp scripting/scriptengine/AmarokPlaylistManagerScript.cpp scripting/scriptengine/AmarokPlaylistScript.cpp scripting/scriptengine/AmarokScript.cpp scripting/scriptengine/AmarokScriptConfig.cpp scripting/scriptengine/AmarokScriptableServiceScript.cpp scripting/scriptengine/AmarokServicePluginManagerScript.cpp scripting/scriptengine/AmarokStatusbarScript.cpp scripting/scriptengine/AmarokStreamItemScript.cpp scripting/scriptengine/AmarokWindowScript.cpp scripting/scriptengine/AmarokScriptXml.cpp scripting/scriptengine/ScriptImporter.cpp scripting/scriptengine/ScriptingDefines.cpp scripting/scriptengine/exporters/CollectionTypeExporter.cpp scripting/scriptengine/exporters/MetaTypeExporter.cpp scripting/scriptengine/exporters/PlaylistExporter.cpp scripting/scriptengine/exporters/PlaylistProviderExporter.cpp scripting/scriptengine/exporters/QueryMakerExporter.cpp scripting/scriptengine/exporters/ScriptableBiasExporter.cpp ) set(scriptconsole_SRCS scripting/scriptconsole/CompletionModel.cpp scripting/scriptconsole/ScriptConsole.cpp scripting/scriptconsole/ScriptEditorDocument.cpp scripting/scriptconsole/ScriptConsoleItem.cpp ) if (PYTHONINTERP_FOUND) execute_process(COMMAND "${PYTHON_EXECUTABLE}" ${CMAKE_SOURCE_DIR}/src/scripting/scriptengine/PHAACG2.py ${CMAKE_SOURCE_DIR}/src/scripting/scriptengine ${CMAKE_BINARY_DIR}/scriptconsole) install(FILES ${CMAKE_BINARY_DIR}/scriptconsole/AutoComplete.txt - DESTINATION ${DATA_INSTALL_DIR}/amarok/scriptconsole) + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/scriptconsole) endif() ##################################################################### # PLAYLIST GENERATOR ##################################################################### set(apg_SRCS playlistgenerator/Constraint.cpp playlistgenerator/ConstraintGroup.cpp playlistgenerator/ConstraintFactory.cpp playlistgenerator/ConstraintNode.cpp playlistgenerator/ConstraintSolver.cpp playlistgenerator/Preset.cpp playlistgenerator/PresetEditDialog.cpp playlistgenerator/PresetModel.cpp playlistgenerator/TreeController.cpp playlistgenerator/TreeModel.cpp playlistgenerator/constraints/Checkpoint.cpp playlistgenerator/constraints/Matching.cpp playlistgenerator/constraints/PlaylistDuration.cpp playlistgenerator/constraints/PlaylistFileSize.cpp playlistgenerator/constraints/PlaylistLength.cpp playlistgenerator/constraints/PreventDuplicates.cpp playlistgenerator/constraints/TagMatch.cpp playlistgenerator/constraints/TagMatchSupport.cpp playlistgenerator/constraints/TrackSpreader.cpp ) ki18n_wrap_ui(apg_SRCS playlistgenerator/ConstraintGroupEditWidget.ui playlistgenerator/PresetEditDialog.ui playlistgenerator/constraints/CheckpointEditWidget.ui playlistgenerator/constraints/PlaylistDurationEditWidget.ui playlistgenerator/constraints/PlaylistFileSizeEditWidget.ui playlistgenerator/constraints/PlaylistLengthEditWidget.ui playlistgenerator/constraints/PreventDuplicatesEditWidget.ui playlistgenerator/constraints/TagMatchEditWidget.ui ) ##################################################################### # NETWORK ACCESS ##################################################################### set(network_access_SRCS network/NetworkAccessManagerProxy.cpp ) if( CMAKE_BUILD_TYPE_TOLOWER MATCHES debug ) set(network_access_SRCS ${network_access_SRCS} network/NetworkAccessViewer.cpp ) ki18n_wrap_ui(network_access_SRCS network/NetworkRequests.ui ) endif() ##################################################################### # STATISTICS SYNCHRONIZATION ##################################################################### set( statsyncing_SRCS statsyncing/Config.cpp statsyncing/Controller.cpp statsyncing/Options.cpp statsyncing/Process.cpp statsyncing/Provider.cpp statsyncing/ProviderFactory.cpp statsyncing/ScrobblingService.cpp statsyncing/SimpleTrack.cpp statsyncing/SimpleWritableTrack.cpp statsyncing/Track.cpp statsyncing/TrackTuple.cpp statsyncing/collection/CollectionProvider.cpp statsyncing/collection/CollectionTrack.cpp statsyncing/jobs/MatchTracksJob.cpp statsyncing/jobs/SynchronizeTracksJob.cpp statsyncing/models/CommonModel.cpp statsyncing/models/MatchedTracksModel.cpp statsyncing/models/ProvidersModel.cpp statsyncing/models/SingleTracksModel.cpp statsyncing/ui/ChooseProvidersPage.cpp statsyncing/ui/CreateProviderDialog.cpp statsyncing/ui/ConfigureProviderDialog.cpp statsyncing/ui/MatchedTracksPage.cpp statsyncing/ui/TrackDelegate.cpp ) ki18n_wrap_ui( statsyncing_SRCS statsyncing/ui/ChooseProvidersPage.ui statsyncing/ui/MatchedTracksPage.ui ) ##################################################################### # STATISTICS IMPORTERS ##################################################################### set( importers_SRCS importers/ImporterManager.cpp importers/ImporterProvider.cpp importers/ImporterSqlConnection.cpp importers/SimpleImporterConfigWidget.cpp ) ##################################################################### # LIBAMAROK ##################################################################### set(amaroklib_LIB_SRCS ${libscriptableservice_SRCS} ${libbrowserframework_SRCS} ${libcontextview_SRCS} ${libcollectionbrowser_SRCS} ${libconfigdialog_SRCS} ${libplaylist_SRCS} ${aggregatecollection_SRCS} ${libpodcasts_SRCS} ${libmediadeviceframework_SRCS} ${libserviceframework_SRCS} ${libservicebrowser_SRCS} ${libdynamic_SRCS} ${libmetaimpl_SRCS} ${apg_SRCS} ${collection_SRCS} ${storage_SRCS} ${scanner_SRCS} ${mac_SRCS} ${network_access_SRCS} ${libplaylistbrowser_SRCS} ${libplaylistmanager_SRCS} ${dbus_SRCS} ${scriptengine_SRCS} ${scriptconsole_SRCS} ${libstatusbar_SRCS} ${libamarokurl_SRCS} ${libsynchronization_SRCS} ${statsyncing_SRCS} ${importers_SRCS} core-impl/logger/ProxyLogger.cpp aboutdialog/AnimatedBarWidget.cpp aboutdialog/AnimatedWidget.cpp aboutdialog/ExtendedAboutDialog.cpp aboutdialog/FramedLabel.cpp aboutdialog/OcsData.cpp aboutdialog/OcsPersonItem.cpp aboutdialog/OcsPersonListWidget.cpp ActionClasses.cpp AmarokMimeData.cpp AmarokProcess.cpp App.cpp CaseConverter.cpp EngineController.cpp KNotificationBackend.cpp MainWindow.cpp MediaDeviceCache.cpp MediaDeviceMonitor.cpp PluginManager.cpp QStringx.cpp scripting/scriptmanager/ScriptManager.cpp scripting/scriptmanager/ScriptItem.cpp scripting/scriptmanager/ScriptUpdater.cpp SvgHandler.cpp SvgTinter.cpp TrayIcon.cpp core-impl/meta/timecode/TimecodeObserver.cpp core-impl/meta/timecode/TimecodeMeta.cpp core-impl/meta/timecode/TimecodeTrackProvider.cpp core-impl/support/TrackLoader.cpp covermanager/CoverCache.cpp covermanager/CoverFetcher.cpp covermanager/CoverFetchingActions.cpp covermanager/CoverFetchQueue.cpp covermanager/CoverFetchUnit.cpp covermanager/CoverFoundDialog.cpp covermanager/CoverManager.cpp covermanager/CoverViewDialog.cpp databaseimporter/SqlBatchImporter.cpp databaseimporter/SqlBatchImporterConfig.cpp dialogs/CollectionSetup.cpp dialogs/DatabaseImporterDialog.cpp dialogs/DiagnosticDialog.cpp dialogs/EditFilterDialog.cpp dialogs/EqualizerDialog.cpp dialogs/MusicBrainzTagger.cpp dialogs/OrganizeCollectionDialog.cpp dialogs/TrackOrganizer.cpp dialogs/TagDialog.cpp dialogs/TagGuesser.cpp dialogs/TagGuesserDialog.cpp dialogs/LabelListModel.cpp equalizer/EqualizerPresets.cpp browsers/filebrowser/DirPlaylistTrackFilterProxyModel.cpp browsers/filebrowser/FileBrowser.cpp browsers/filebrowser/FileView.cpp musicbrainz/MusicBrainzFinder.cpp musicbrainz/MusicBrainzTagsItem.cpp musicbrainz/MusicBrainzTagsModel.cpp musicbrainz/MusicBrainzTagsModelDelegate.cpp musicbrainz/MusicBrainzTagsView.cpp musicbrainz/MusicBrainzXmlParser.cpp OpmlOutline.cpp OpmlParser.cpp OpmlWriter.cpp PaletteHandler.cpp PopupDropperFactory.cpp playback/DelayedDoers.cpp playback/EqualizerController.cpp playback/Fadeouter.cpp playback/PowerManager.cpp statemanagement/ApplicationController.cpp statemanagement/DefaultApplicationController.cpp toolbar/CurrentTrackToolbar.cpp toolbar/SlimToolbar.cpp toolbar/VolumePopupButton.cpp toolbar/MainToolbar.cpp widgets/AlbumBreadcrumbWidget.cpp widgets/AmarokDockWidget.cpp widgets/AnimatedLabelStack.cpp widgets/BoxWidget.cpp widgets/BreadcrumbItemButton.cpp widgets/ClearSpinBox.cpp widgets/CoverLabel.cpp widgets/HintLineEdit.cpp widgets/kdatecombo.cpp widgets/TokenDropTarget.cpp widgets/EditDeleteComboBoxView.cpp widgets/EditDeleteDelegate.cpp widgets/ElidingButton.cpp widgets/FilenameLayoutWidget.cpp widgets/FlowLayout.cpp widgets/HorizontalDivider.cpp widgets/IconButton.cpp widgets/ComboBox.cpp widgets/LineEdit.cpp widgets/Osd.cpp widgets/TimeLabel.cpp widgets/PixmapViewer.cpp widgets/PlayPauseButton.cpp widgets/PrettyTreeView.cpp widgets/PrettyTreeDelegate.cpp widgets/ProgressWidget.cpp widgets/SearchWidget.cpp widgets/SliderWidget.cpp widgets/StarManager.cpp widgets/TokenPool.cpp widgets/Token.cpp widgets/TokenWithLayout.cpp widgets/VolumeDial.cpp widgets/TrackActionButton.cpp widgets/BookmarkTriangle.cpp widgets/BookmarkPopup.cpp widgets/TrackSelectWidget.cpp widgets/MetaQueryWidget.cpp GlobalCollectionActions.cpp GlobalCurrentTrackActions.cpp moodbar/MoodbarManager.cpp ) if( LIBMYGPO_QT_FOUND ) set( EXTRA_LIBS ${LIBMYGPO_QT_LIBRARIES} ) include_directories( ${LIBMYGPO_QT_INCLUDE_DIRS} ${LIBMYGPO_QT_INCLUDE_DIRS}/../ ) endif() if( LIBLASTFM_FOUND ) set(amaroklib_LIB_SRCS ${amaroklib_LIB_SRCS} LastfmReadLabelCapability.cpp ) include_directories( ${LIBLASTFM_INCLUDE_DIR}/.. ${LIBLASTFM_INCLUDE_DIR}) set( EXTRA_LIBS ${LIBLASTFM_LIBRARY} ) endif() if( LIBOFA_FOUND AND AVCODEC_FOUND AND AVFORMAT_FOUND AND AVUTIL_FOUND ) add_definitions( ${AVCODEC_DEFINITIONS} ${AVFORMAT_DEFINITIONS} ${AVUTIL_DEFINITIONS} ) include_directories( ${AVCODEC_INCLUDE_DIRS} ${AVFORMAT_INCLUDE_DIRS} ${AVUTIL_INCLUDE_DIRS} ) set( EXTRA_LIBS ${EXTRA_LIBS} ${LIBOFA_LIBRARY} ${AVFORMAT_LIBRARIES} ${AVCODEC_LIBRARIES} ${AVUTIL_LIBRARIES} ) set( amaroklib_LIB_SRCS ${amaroklib_LIB_SRCS} musicbrainz/MusicDNSAudioDecoder.cpp musicbrainz/MusicDNSFinder.cpp musicbrainz/MusicDNSXmlParser.cpp ) endif() qt5_add_dbus_adaptor( AMAROK_MPRIS1_ADAPTOR_SRCS dbus/mpris1/org.freedesktop.MediaPlayer.root.xml dbus/mpris1/RootHandler.h Mpris1::RootHandler Mpris1RootAdaptor Mpris1RootAdaptor ) qt5_add_dbus_adaptor( AMAROK_MPRIS1_ADAPTOR_SRCS dbus/mpris1/org.freedesktop.MediaPlayer.player.xml dbus/mpris1/PlayerHandler.h Mpris1::PlayerHandler Mpris1PlayerAdaptor Mpris1PlayerAdaptor ) qt5_add_dbus_adaptor( AMAROK_MPRIS1_ADAPTOR_SRCS dbus/mpris1/org.freedesktop.MediaPlayer.tracklist.xml dbus/mpris1/TrackListHandler.h Mpris1::TrackListHandler Mpris1TrackListAdaptor Mpris1TrackListAdaptor ) qt5_add_dbus_adaptor( AMAROK_MPRIS1_ADAPTOR_SRCS dbus/org.kde.amarok.App.xml dbus/mpris1/RootHandler.h Mpris1::RootHandler Mpris1AmarokAppAdaptor Mpris1AmarokAppAdaptor ) qt5_add_dbus_adaptor( AMAROK_MPRIS1_ADAPTOR_SRCS dbus/mpris1/org.kde.amarok.Mpris1Extensions.Player.xml dbus/mpris1/PlayerHandler.h Mpris1::PlayerHandler Mpris1AmarokPlayerAdaptor Mpris1AmarokPlayerAdaptor ) qt5_add_dbus_adaptor( AMAROK_MPRIS1_ADAPTOR_SRCS dbus/org.kde.amarok.Collection.xml dbus/CollectionDBusHandler.h CollectionDBusHandler CollectionAdaptor CollectionAdaptor ) # suppress deprecated methods warnings if(NOT WIN32) set_source_files_properties(${AMAROK_MPRIS1_ADAPTOR_SRCS} PROPERTIES COMPILE_FLAGS -Wno-deprecated-declarations) endif() set( amaroklib_DEPENDS "amarokpud" ) set( amaroklib_DEPENDS "amarokcore" ) set( amaroklib_DEPENDS "amarok-transcoding" ) # depends on generated ui_*.h file kconfig_add_kcfg_files(amaroklib_LIB_SRCS amarokconfig.kcfgc) add_custom_target(amarokconfig_h DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/amarokconfig.h) ki18n_wrap_ui(amaroklib_LIB_SRCS aboutdialog/OcsPersonItem.ui dialogs/EditFilterDialog.ui dialogs/EqualizerDialog.ui dialogs/MusicBrainzTagger.ui dialogs/TagDialogBase.ui dialogs/TagGuessOptions.ui dialogs/OrganizeCollectionOptions.ui dialogs/OrganizeCollectionDialogBase.ui playlist/layouts/PlaylistLayoutEditDialog.ui core-impl/podcasts/sql/PodcastSettingsBase.ui core-impl/podcasts/sql/SqlPodcastProviderSettingsWidget.ui core-impl/podcasts/sql/PodcastFilenameLayoutConfigWidget.ui browsers/playlistbrowser/PodcastCategoryBase.ui ) add_library(amaroklib SHARED ${amaroklib_LIB_SRCS} ${AMAROK_MPRIS1_ADAPTOR_SRCS}) target_link_libraries(amaroklib Phonon::phonon4qt5 KF5::Archive KF5::CoreAddons KF5::Declarative KF5::GlobalAccel KF5::GuiAddons KF5::I18n KF5::IconThemes KF5::KCMUtils KF5::KIOCore KF5::KIOFileWidgets KF5::KIOWidgets KF5::KIONTLM KF5::NewStuff KF5::Notifications KF5::NotifyConfig KF5::Package KF5::TextEditor KF5::ThreadWeaver KF5::WindowSystem ${QT_QTSCRIPTTOOLS_LIBRARY} Qt5::Gui Qt5::Quick Qt5::QuickWidgets Qt5::Script Qt5::ScriptTools Qt5::Sql Qt5::Svg ${CMAKE_DL_LIBS} Threads::Threads ${EXTRA_LIBS} amarokpud amarokcore amarokocsclient amarok-transcoding amarokshared ) include_directories(${TAGLIB_INCLUDES}) add_definitions(${TAGLIB_CFLAGS}) target_link_libraries(amaroklib ${TAGLIB_LIBRARIES}) if( TAGLIB-EXTRAS_FOUND ) include_directories(${TAGLIB-EXTRAS_INCLUDES}) add_definitions(${TAGLIB-EXTRAS_CFLAGS}) target_link_libraries(amaroklib ${TAGLIB-EXTRAS_LIBRARIES}) endif() if(WIN32) target_link_libraries(amaroklib Qt5::WebKitWidgets) endif() if(APPLE) target_link_libraries(amaroklib "/System/Library/Frameworks/Foundation.framework") set_target_properties(amaroklib PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") endif() set_target_properties(amaroklib PROPERTIES VERSION 1.0.0 SOVERSION 1 ) install(TARGETS amaroklib ${INSTALL_TARGETS_DEFAULT_ARGS} ) ##################################################################### # AMAROK ##################################################################### set( amarok_SRCS main.cpp ) file(GLOB ICONS_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/../images/*-apps-amarok.png) ecm_add_app_icon(amarok_SRCS ICONS ${ICONS_SRCS}) add_executable(amarok ${amarok_SRCS}) if(APPLE) set_target_properties(amarok PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") set(MACOSX_BUNDLE_BUNDLE_NAME "Amarok 2") set(MACOSX_BUNDLE_BUNDLE_VERSION "2.8.0-git") set(MACOSX_BUNDLE_COPYRIGHT "Amarok Team") set_target_properties(amarok PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${MAC_FILES_DIR}/Info.plist.template) set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/amarok.icns PROPERTIES MACOSX_PACKAGE_LOCATION Resources) endif() target_link_libraries(amarok KF5::CoreAddons KF5::DBusAddons KF5::I18n amarokcore amaroklib ${X11_LIBRARIES} ) install(TARGETS amarok ${INSTALL_TARGETS_DEFAULT_ARGS}) ########### install files ############### -install(PROGRAMS org.kde.amarok.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) -install(PROGRAMS org.kde.amarok_containers.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) +install(PROGRAMS org.kde.amarok.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) +install(PROGRAMS org.kde.amarok_containers.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) install(FILES org.kde.amarok.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR}) -install(FILES amarok-plugin.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR}) -install(FILES amarok-contextapplet.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR}) -install(FILES amarok_codecinstall.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR}) -install(FILES amarok_append.desktop DESTINATION ${SERVICES_INSTALL_DIR}/ServiceMenus) -install(FILES amarok-play-audiocd.desktop DESTINATION ${DATA_INSTALL_DIR}/solid/actions) +install(FILES amarok-plugin.desktop DESTINATION ${KDE_INSTALL_KSERVICETYPES5DIR}) +install(FILES amarok-contextapplet.desktop DESTINATION ${KDE_INSTALL_KSERVICETYPES5DIR}) +install(FILES amarok_codecinstall.desktop DESTINATION ${KDE_INSTALL_KSERVICETYPES5DIR}) +install(FILES amarok_append.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}/ServiceMenus) +install(FILES amarok-play-audiocd.desktop DESTINATION ${KDE_INSTALL_DATADIR}/solid/actions) -install(FILES amarok.knsrc DESTINATION ${CONFIG_INSTALL_DIR}) +install(FILES amarok.knsrc DESTINATION ${KDE_INSTALL_CONFDIR}) # protocol handlers -install(FILES amarokurls/amarok.protocol DESTINATION ${SERVICES_INSTALL_DIR}) -install(FILES amarokitpc.protocol DESTINATION ${SERVICES_INSTALL_DIR}) -#install(FILES amarokpcast.protocol DESTINATION ${SERVICES_INSTALL_DIR}) +install(FILES amarokurls/amarok.protocol DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) +install(FILES amarokitpc.protocol DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) +#install(FILES amarokpcast.protocol DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) -install(FILES amarokconfig.kcfg DESTINATION ${KCFG_INSTALL_DIR} ) +install(FILES amarokconfig.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR} ) install(FILES dbus/mpris1/org.freedesktop.MediaPlayer.root.xml dbus/mpris1/org.freedesktop.MediaPlayer.player.xml dbus/mpris1/org.freedesktop.MediaPlayer.tracklist.xml dbus/org.kde.amarok.App.xml dbus/org.kde.amarok.Collection.xml dbus/mpris1/org.kde.amarok.Mpris1Extensions.Player.xml dbus/mpris2/org.kde.amarok.Mpris2Extensions.Player.xml - DESTINATION ${DBUS_INTERFACES_INSTALL_DIR}) + DESTINATION ${KDE_INSTALL_DBUSINTERFACEDIR}) install(FILES services/InfoParserLoading.html browsers/hover_info_template.html - DESTINATION ${DATA_INSTALL_DIR}/amarok/data) + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/data) ecm_install_icons(ICONS - DESTINATION ${ICON_INSTALL_DIR} + DESTINATION ${KDE_INSTALL_ICONDIR} THEME hicolor ) diff --git a/src/context/applets/labels/CMakeLists.txt b/src/context/applets/labels/CMakeLists.txt index 18724916b9..3ce9f8dce7 100644 --- a/src/context/applets/labels/CMakeLists.txt +++ b/src/context/applets/labels/CMakeLists.txt @@ -1,20 +1,20 @@ project(context-labels) set(labels_SRCS LabelsApplet.cpp LabelGraphicsItem.cpp LabelOverlayButton.cpp) include_directories( ../.. ../../.. ) ki18n_wrap_ui( labels_SRCS labelsGeneralSettings.ui labelsBlacklistSettings.ui labelsReplacementSettings.ui ) add_library(amarok_context_applet_labels MODULE ${labels_SRCS}) if(APPLE) set_target_properties(amarok_context_applet_labels PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") endif() target_link_libraries(amarok_context_applet_labels amarokcore amaroklib KF5::Plasma ) -install(TARGETS amarok_context_applet_labels DESTINATION ${PLUGIN_INSTALL_DIR}) -install(FILES amarok-context-applet-labels.desktop DESTINATION ${SERVICES_INSTALL_DIR}) +install(TARGETS amarok_context_applet_labels DESTINATION ${KDE_INSTALL_PLUGINDIR}) +install(FILES amarok-context-applet-labels.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) diff --git a/src/context/applets/playlistinfo/CMakeLists.txt b/src/context/applets/playlistinfo/CMakeLists.txt index c60fe1d4d7..0d88529ab5 100644 --- a/src/context/applets/playlistinfo/CMakeLists.txt +++ b/src/context/applets/playlistinfo/CMakeLists.txt @@ -1,17 +1,17 @@ project(context-currenttrack) set(currenttrack_SRCS CurrentTrack.cpp ) include_directories( ../../ ../../.. ) add_library(amarok_context_applet_currenttrack MODULE ${currenttrack_SRCS}) target_link_libraries(amarok_context_applet_currenttrack amarokcore amaroklib KF5::Plasma ) -install(TARGETS amarok_context_applet_currenttrack DESTINATION ${PLUGIN_INSTALL_DIR}) -install(FILES amarok-context-applet-currenttrack.desktop DESTINATION ${SERVICES_INSTALL_DIR}) -install(FILES amarok-currenttrack.svg DESTINATION ${DATA_INSTALL_DIR}/desktoptheme/default/widgets/ ) +install(TARGETS amarok_context_applet_currenttrack DESTINATION ${KDE_INSTALL_PLUGINDIR}) +install(FILES amarok-context-applet-currenttrack.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) +install(FILES amarok-currenttrack.svg DESTINATION ${KDE_INSTALL_DATADIR}/desktoptheme/default/widgets/ ) diff --git a/src/context/applets/similarartists/CMakeLists.txt b/src/context/applets/similarartists/CMakeLists.txt index f5ea582fd6..7d544927e1 100644 --- a/src/context/applets/similarartists/CMakeLists.txt +++ b/src/context/applets/similarartists/CMakeLists.txt @@ -1,24 +1,24 @@ # project(context-similarartists) include_directories( ../.. ../../.. ${CMAKE_SOURCE_DIR}/src ) set( similarArtists_SRCS SimilarArtist.cpp ArtistWidget.cpp SimilarArtistsApplet.cpp) ki18n_wrap_ui( similarArtists_SRCS similarArtistsSettings.ui) add_library(amarok_context_applet_similarArtists MODULE ${similarArtists_SRCS}) if(APPLE) set_target_properties(amarok_context_applet_similarArtists PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") endif() target_link_libraries(amarok_context_applet_similarArtists amarokcore amaroklib KF5::Plasma ) -install(TARGETS amarok_context_applet_similarArtists DESTINATION ${PLUGIN_INSTALL_DIR}) -install(FILES amarok-context-applet-similarArtists.desktop DESTINATION ${SERVICES_INSTALL_DIR}) +install(TARGETS amarok_context_applet_similarArtists DESTINATION ${KDE_INSTALL_PLUGINDIR}) +install(FILES amarok-context-applet-similarArtists.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) diff --git a/src/context/applets/songkick/CMakeLists.txt b/src/context/applets/songkick/CMakeLists.txt index 515790c80a..900bfdc0cb 100644 --- a/src/context/applets/songkick/CMakeLists.txt +++ b/src/context/applets/songkick/CMakeLists.txt @@ -1,15 +1,15 @@ project(context-currenttrack) set(songkick_SRCS SongkickApplet.cpp ) include_directories( ../.. ../../.. ) add_library(amarok_context_applet_songkick MODULE ${songkick_SRCS}) if(APPLE) set_target_properties(amarok_context_applet_songkick PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") endif() target_link_libraries(amarok_context_applet_songkick amarokcore amaroklib KF5::Plasma KF5::KIOCore) -install(TARGETS amarok_context_applet_songkick DESTINATION ${PLUGIN_INSTALL_DIR}) -install(FILES amarok-context-applet-songkick.desktop DESTINATION ${SERVICES_INSTALL_DIR}) +install(TARGETS amarok_context_applet_songkick DESTINATION ${KDE_INSTALL_PLUGINDIR}) +install(FILES amarok-context-applet-songkick.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) diff --git a/src/context/applets/tabs/CMakeLists.txt b/src/context/applets/tabs/CMakeLists.txt index 0ef58e6e9a..ce082d7c85 100644 --- a/src/context/applets/tabs/CMakeLists.txt +++ b/src/context/applets/tabs/CMakeLists.txt @@ -1,20 +1,20 @@ include_directories( ../.. ../../..) set( tabs_applet_SRCS TabsApplet.cpp TabsView.cpp TabsItem.cpp ) ki18n_wrap_ui( tabs_applet_SRCS TabsSettings.ui ReloadEditDialog.ui ) add_library(amarok_context_applet_tabs MODULE ${tabs_applet_SRCS} ) target_link_libraries( amarok_context_applet_tabs amarokcore amaroklib KF5::Plasma KF5::KIOCore ) -install( TARGETS amarok_context_applet_tabs DESTINATION ${PLUGIN_INSTALL_DIR} ) -install( FILES amarok-context-applet-tabs.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) -install( FILES amarok-tabs-guitar.png DESTINATION ${DATA_INSTALL_DIR}/amarok/images/ ) -install( FILES amarok-tabs-bass.png DESTINATION ${DATA_INSTALL_DIR}/amarok/images/ ) -install( FILES amarok-tabs-drum.png DESTINATION ${DATA_INSTALL_DIR}/amarok/images/ ) -install( FILES amarok-tabs-piano.png DESTINATION ${DATA_INSTALL_DIR}/amarok/images/ ) +install( TARGETS amarok_context_applet_tabs DESTINATION ${KDE_INSTALL_PLUGINDIR} ) +install( FILES amarok-context-applet-tabs.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) +install( FILES amarok-tabs-guitar.png DESTINATION ${KDE_INSTALL_DATADIR}/amarok/images/ ) +install( FILES amarok-tabs-bass.png DESTINATION ${KDE_INSTALL_DATADIR}/amarok/images/ ) +install( FILES amarok-tabs-drum.png DESTINATION ${KDE_INSTALL_DATADIR}/amarok/images/ ) +install( FILES amarok-tabs-piano.png DESTINATION ${KDE_INSTALL_DATADIR}/amarok/images/ ) diff --git a/src/context/applets/upcomingevents/CMakeLists.txt b/src/context/applets/upcomingevents/CMakeLists.txt index fe6fec1e46..5db55bfb7b 100644 --- a/src/context/applets/upcomingevents/CMakeLists.txt +++ b/src/context/applets/upcomingevents/CMakeLists.txt @@ -1,41 +1,41 @@ project(context-upcomingevents) include_directories( ${Amarok_SOURCE_DIR}/src/context/widgets ${Amarok_SOURCE_DIR}/src/network ${Amarok_SOURCE_DIR}/src ) set( upcomingEvents_SRCS LastFmEvent.cpp LastFmEventXmlParser.cpp UpcomingEventsApplet.cpp UpcomingEventsWidget.cpp UpcomingEventsStack.cpp UpcomingEventsStackItem.cpp UpcomingEventsMapWidget.cpp UpcomingEventsCalendarWidget.cpp ) ki18n_wrap_ui( upcomingEvents_SRCS upcomingEventsGeneralSettings.ui upcomingEventsVenueSettings.ui ) add_library(amarok_context_applet_upcomingEvents MODULE ${upcomingEvents_SRCS}) if(APPLE) set_target_properties(amarok_context_applet_upcomingEvents PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") endif() target_link_libraries(amarok_context_applet_upcomingEvents amarokcore amaroklib KF5::Plasma ${KDE4_KDEWEBKIT_LIBS} Qt5::Network Qt5::WebKitWidgets ) -install(TARGETS amarok_context_applet_upcomingEvents DESTINATION ${PLUGIN_INSTALL_DIR}) -install(FILES amarok-context-applet-upcomingEvents.desktop DESTINATION ${SERVICES_INSTALL_DIR}) -install(FILES upcoming-events-map.html DESTINATION ${DATA_INSTALL_DIR}/amarok/data) +install(TARGETS amarok_context_applet_upcomingEvents DESTINATION ${KDE_INSTALL_PLUGINDIR}) +install(FILES amarok-context-applet-upcomingEvents.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) +install(FILES upcoming-events-map.html DESTINATION ${KDE_INSTALL_DATADIR}/amarok/data) diff --git a/src/context/applets/wikipedia/CMakeLists.txt b/src/context/applets/wikipedia/CMakeLists.txt index 181e359d97..539ae592a4 100644 --- a/src/context/applets/wikipedia/CMakeLists.txt +++ b/src/context/applets/wikipedia/CMakeLists.txt @@ -1,19 +1,19 @@ set(wikipedia_SRCS plugin/WikipediaPlugin.cpp plugin/WikipediaEngine.cpp ) add_library(amarok_context_applet_wikipedia SHARED ${wikipedia_SRCS}) target_link_libraries(amarok_context_applet_wikipedia amarokcore amaroklib Qt5::Qml ) install(TARGETS amarok_context_applet_wikipedia DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/amarok/wikipedia) install(FILES plugin/qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/amarok/wikipedia) -install(FILES WikipediaCustomStyle.css bullet.gif DESTINATION ${DATA_INSTALL_DIR}/amarok/data ) +install(FILES WikipediaCustomStyle.css bullet.gif DESTINATION ${KDE_INSTALL_DATADIR}/amarok/data ) kpackage_install_package(package org.kde.amarok.wikipedia amarok) diff --git a/src/context/engines/labels/CMakeLists.txt b/src/context/engines/labels/CMakeLists.txt index 9d2937a1bd..5987cfbf5b 100644 --- a/src/context/engines/labels/CMakeLists.txt +++ b/src/context/engines/labels/CMakeLists.txt @@ -1,14 +1,14 @@ include_directories( ../.. ../../.. ${CMAKE_CURRENT_BINARY_DIR} # for amarok_config.h ) set( labels_engine_SRCS LabelsEngine.cpp ) add_library(amarok_data_engine_labels MODULE ${labels_engine_SRCS}) target_link_libraries( amarok_data_engine_labels amarokcore amaroklib KF5::Plasma KF5::KIOCore) -install( TARGETS amarok_data_engine_labels DESTINATION ${PLUGIN_INSTALL_DIR} ) -install( FILES amarok-data-engine-labels.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( TARGETS amarok_data_engine_labels DESTINATION ${KDE_INSTALL_PLUGINDIR} ) +install( FILES amarok-data-engine-labels.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) diff --git a/src/context/engines/similarartists/CMakeLists.txt b/src/context/engines/similarartists/CMakeLists.txt index 5b2aa7c2ae..a31b5b08e4 100644 --- a/src/context/engines/similarartists/CMakeLists.txt +++ b/src/context/engines/similarartists/CMakeLists.txt @@ -1,19 +1,19 @@ include_directories( ${Amarok_SOURCE_DIR}/src ${Amarok_SOURCE_DIR}/src/context ${Amarok_SOURCE_DIR}/src/network ${LIBLASTFM_INCLUDE_DIR} ${LIBLASTFM_INCLUDE_DIR}/.. ${CMAKE_CURRENT_BINARY_DIR} # for amarok_config.h ) set( similarArtists_engine_SRCS SimilarArtistsEngine.cpp ../../applets/similarartists/SimilarArtist.cpp ) add_library(amarok_data_engine_similarArtists MODULE ${similarArtists_engine_SRCS}) target_link_libraries( amarok_data_engine_similarArtists amarokcore amaroklib KF5::Plasma KF5::KIOCore ${LIBLASTFM_LIBRARY} ) -install( TARGETS amarok_data_engine_similarArtists DESTINATION ${PLUGIN_INSTALL_DIR} ) -install( FILES amarok-data-engine-similarArtists.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( TARGETS amarok_data_engine_similarArtists DESTINATION ${KDE_INSTALL_PLUGINDIR} ) +install( FILES amarok-data-engine-similarArtists.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) diff --git a/src/context/engines/songkick/CMakeLists.txt b/src/context/engines/songkick/CMakeLists.txt index 14468456dd..21f1a4b3ab 100644 --- a/src/context/engines/songkick/CMakeLists.txt +++ b/src/context/engines/songkick/CMakeLists.txt @@ -1,16 +1,16 @@ include_directories( ../../.. ../../../context ../../../dialogs ../../../../external ) set( songkick_engine_SRCS SongkickEngine.cpp ) add_library(amarok_data_engine_songkick MODULE ${songkick_engine_SRCS}) target_link_libraries( amarok_data_engine_songkick amarokcore amaroklib KF5::Plasma amarokqtjson KF5::KIOCore) -install( TARGETS amarok_data_engine_songkick DESTINATION ${PLUGIN_INSTALL_DIR} ) -install( FILES amarok-data-engine-songkick.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( TARGETS amarok_data_engine_songkick DESTINATION ${KDE_INSTALL_PLUGINDIR} ) +install( FILES amarok-data-engine-songkick.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) diff --git a/src/context/engines/tabs/CMakeLists.txt b/src/context/engines/tabs/CMakeLists.txt index 65b2f6da45..dafad7991b 100644 --- a/src/context/engines/tabs/CMakeLists.txt +++ b/src/context/engines/tabs/CMakeLists.txt @@ -1,13 +1,13 @@ include_directories( ../../.. ../../../context ${Amarok_SOURCE_DIR}/src/network ${CMAKE_CURRENT_BINARY_DIR}/../../.. # for amarok_config.h ) set( tabs_engine_SRCS TabsEngine.cpp TabsInfo.h ) add_library(amarok_data_engine_tabs MODULE ${tabs_engine_SRCS}) target_link_libraries( amarok_data_engine_tabs amarokcore amaroklib KF5::Plasma KF5::KIOCore) -install( TARGETS amarok_data_engine_tabs DESTINATION ${PLUGIN_INSTALL_DIR} ) -install( FILES amarok-data-engine-tabs.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( TARGETS amarok_data_engine_tabs DESTINATION ${KDE_INSTALL_PLUGINDIR} ) +install( FILES amarok-data-engine-tabs.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) diff --git a/src/context/engines/upcomingevents/CMakeLists.txt b/src/context/engines/upcomingevents/CMakeLists.txt index d61c20d0e4..75bb7095f6 100644 --- a/src/context/engines/upcomingevents/CMakeLists.txt +++ b/src/context/engines/upcomingevents/CMakeLists.txt @@ -1,19 +1,19 @@ include_directories( ${Amarok_SOURCE_DIR}/src ${Amarok_SOURCE_DIR}/src/context ${Amarok_SOURCE_DIR}/src/context/applets/upcomingevents ${LIBLASTFM_INCLUDE_DIR} ${LIBLASTFM_INCLUDE_DIR}/.. ${CMAKE_CURRENT_BINARY_DIR}/../../.. # for amarok_config.h ) set( upcomingEvents_engine_SRCS UpcomingEventsEngine.cpp ${Amarok_SOURCE_DIR}/src/context/applets/upcomingevents/LastFmEvent.cpp ${Amarok_SOURCE_DIR}/src/context/applets/upcomingevents/LastFmEventXmlParser.cpp ) add_library(amarok_data_engine_upcomingEvents MODULE ${upcomingEvents_engine_SRCS}) target_link_libraries( amarok_data_engine_upcomingEvents amarokcore amaroklib KF5::Plasma KF5::KIOCore ${LIBLASTFM_LIBRARY} ) -install( TARGETS amarok_data_engine_upcomingEvents DESTINATION ${PLUGIN_INSTALL_DIR} ) -install( FILES amarok-data-engine-upcomingEvents.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( TARGETS amarok_data_engine_upcomingEvents DESTINATION ${KDE_INSTALL_PLUGINDIR} ) +install( FILES amarok-data-engine-upcomingEvents.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) diff --git a/src/context/popupdropper/libpud/CMakeLists.txt b/src/context/popupdropper/libpud/CMakeLists.txt index ea94f32723..08873341d1 100644 --- a/src/context/popupdropper/libpud/CMakeLists.txt +++ b/src/context/popupdropper/libpud/CMakeLists.txt @@ -1,35 +1,35 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON) include_directories( ${CMAKE_CURRENT_BINARY_DIR}/popupdropper ${CMAKE_CURRENT_BINARY_DIR}/.. ) ########### next target ############### set(pud_LIB_SRCS PopupDropper.cpp PopupDropperItem.cpp PopupDropperView.cpp ) add_library(pud SHARED ${pud_LIB_SRCS}) target_link_libraries(pud Qt5::Core Qt5::Gui Qt5::Svg) set_target_properties(pud PROPERTIES VERSION ${POPUPDROPPER_LIB_MAJOR_VERSION}.${POPUPDROPPER_LIB_MINOR_VERSION}.${POPUPDROPPER_LIB_PATCH_VERSION} SOVERSION ${POPUPDROPPER_LIB_MAJOR_VERSION} - INSTALL_NAME_DIR ${LIB_INSTALL_DIR} + INSTALL_NAME_DIR ${KDE_INSTALL_LIBDIR} ) install(TARGETS pud - LIBRARY DESTINATION ${LIB_INSTALL_DIR} + LIBRARY DESTINATION ${KDE_INSTALL_LIBDIR} RUNTIME DESTINATION bin - ARCHIVE DESTINATION ${LIB_INSTALL_DIR} + ARCHIVE DESTINATION ${KDE_INSTALL_LIBDIR} ) install( FILES PopupDropper.h PopupDropperItem.h PopupDropperView.h PopupDropper_Export.h DESTINATION - ${INCLUDE_INSTALL_DIR}/popupdropper COMPONENT Devel) + ${KDE_INSTALL_INCLUDEDIR}/popupdropper COMPONENT Devel) diff --git a/src/core-impl/collections/audiocd/CMakeLists.txt b/src/core-impl/collections/audiocd/CMakeLists.txt index 58f360586c..0b6d5bf475 100644 --- a/src/core-impl/collections/audiocd/CMakeLists.txt +++ b/src/core-impl/collections/audiocd/CMakeLists.txt @@ -1,44 +1,44 @@ include_directories( ../.. ../../collections ../mediadevicecollection ../mediadevicecollection/support ../mediadevicecollection/handler ../mediadevicecollection/podcast ${CMAKE_BINARY_DIR}/src ${AMAROK_COLLECTION_SUPPORT_DIR} ) ########### next target ############### set(amarok_collection-audiocdcollection_PART_SRCS AudioCdCollection.cpp AudioCdMeta.cpp AudioCdCollectionLocation.cpp FormatSelectionDialog.cpp handler/AudioCdHandler.cpp support/AudioCdDeviceInfo.cpp support/AudioCdConnectionAssistant.cpp ) ki18n_wrap_ui(amarok_collection-audiocdcollection_PART_SRCS FormatSelectionDialog.ui) add_library(amarok_collection-audiocdcollection MODULE ${amarok_collection-audiocdcollection_PART_SRCS}) target_link_libraries( amarok_collection-audiocdcollection amarokcore amaroklib KF5::ThreadWeaver KF5::KIOCore ) if(APPLE) set_target_properties(amarok_collection-audiocdcollection PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") endif() -install(TARGETS amarok_collection-audiocdcollection DESTINATION ${PLUGIN_INSTALL_DIR} ) +install(TARGETS amarok_collection-audiocdcollection DESTINATION ${KDE_INSTALL_PLUGINDIR} ) kcoreaddons_desktop_to_json(amarok_collection-audiocdcollection amarok_collection-audiocdcollection.desktop SERVICE_TYPES ${CMAKE_SOURCE_DIR}/src/amarok-plugin.desktop) diff --git a/src/core-impl/collections/daap/CMakeLists.txt b/src/core-impl/collections/daap/CMakeLists.txt index a1306f1bb8..ef34132a2c 100644 --- a/src/core-impl/collections/daap/CMakeLists.txt +++ b/src/core-impl/collections/daap/CMakeLists.txt @@ -1,35 +1,35 @@ include_directories( ../.. ${CMAKE_BINARY_DIR}/src ${AMAROK_COLLECTION_SUPPORT_DIR} daapreader ) remove_definitions(-DQT_NO_HTTP) ########### next target ############### set(amarok_collection-daapcollection_PART_SRCS DaapMeta.cpp DaapCollection.cpp daapreader/Reader.cpp daapreader/authentication/contentfetcher.cpp daapreader/authentication/hasher.c daapreader/authentication/md5.c ) add_library(amarok_collection-daapcollection MODULE ${amarok_collection-daapcollection_PART_SRCS}) target_link_libraries(amarok_collection-daapcollection amarokcore amaroklib KF5::ThreadWeaver KF5::DNSSD Qt5::Network ) if(APPLE) set_target_properties(amarok_collection-daapcollection PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") endif() -install(TARGETS amarok_collection-daapcollection DESTINATION ${PLUGIN_INSTALL_DIR} ) +install(TARGETS amarok_collection-daapcollection DESTINATION ${KDE_INSTALL_PLUGINDIR} ) kcoreaddons_desktop_to_json(amarok_collection-daapcollection amarok_collection-daapcollection.desktop SERVICE_TYPES ${CMAKE_SOURCE_DIR}/src/amarok-plugin.desktop) diff --git a/src/core-impl/collections/db/sql/mysqlcollection/CMakeLists.txt b/src/core-impl/collections/db/sql/mysqlcollection/CMakeLists.txt index e045544048..c66b78391e 100644 --- a/src/core-impl/collections/db/sql/mysqlcollection/CMakeLists.txt +++ b/src/core-impl/collections/db/sql/mysqlcollection/CMakeLists.txt @@ -1,43 +1,43 @@ ########### mysql ############### set( amarok_collection-mysqlcollection_PART_SRCS MySqlCollectionFactory.cpp MySqlQueryMaker.cpp ) add_library(amarok_collection-mysqlcollection MODULE ${amarok_collection-mysqlcollection_PART_SRCS}) string(REPLACE "-Wl,--fatal-warnings" "" CMAKE_SHARED_LINKER_FLAGS_NOFATALWARN "${CMAKE_SHARED_LINKER_FLAGS}") set(CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS_NOFATALWARN} ) string(REPLACE "-Wl,--fatal-warnings" "" CMAKE_MODULE_LINKER_FLAGS_NOFATALWARN "${CMAKE_MODULE_LINKER_FLAGS}") set(CMAKE_MODULE_LINKER_FLAGS ${CMAKE_MODULE_LINKER_FLAGS_NOFATALWARN} ) target_link_libraries(amarok_collection-mysqlcollection amarok-sqlcollection amarokcore amaroklib Qt5::Core Qt5::Gui ${CMAKE_DL_LIBS} ${ZLIB_LIBRARIES} ) if(WITH_MYSQL_EMBEDDED) target_link_libraries( amarok_collection-mysqlcollection ${MYSQL_EMBEDDED_LIBRARIES} ) endif(WITH_MYSQL_EMBEDDED) if(NOT WIN32 AND NOT APPLE) target_link_libraries( amarok_collection-mysqlcollection crypt pthread ) endif() if(APPLE) SET_TARGET_PROPERTIES(amarok_collection-mysqlcollection PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") endif() -install(TARGETS amarok_collection-mysqlcollection DESTINATION ${PLUGIN_INSTALL_DIR} ) +install(TARGETS amarok_collection-mysqlcollection DESTINATION ${KDE_INSTALL_PLUGINDIR} ) -install(FILES amarok_collection-mysqlcollection.desktop DESTINATION ${SERVICES_INSTALL_DIR}) +install(FILES amarok_collection-mysqlcollection.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) kcoreaddons_desktop_to_json(amarok_collection-mysqlcollection amarok_collection-mysqlcollection.desktop SERVICE_TYPES ${CMAKE_SOURCE_DIR}/src/amarok-plugin.desktop) diff --git a/src/core-impl/collections/ipodcollection/CMakeLists.txt b/src/core-impl/collections/ipodcollection/CMakeLists.txt index c776e193d8..e47b702a48 100644 --- a/src/core-impl/collections/ipodcollection/CMakeLists.txt +++ b/src/core-impl/collections/ipodcollection/CMakeLists.txt @@ -1,74 +1,74 @@ if(NOT GDKPIXBUF_FOUND) set(GDKPIXBUF_INCLUDE_DIR "") set(GDKPIXBUF_LIBRARY "") endif() if(IPOD_FOUND AND WITH_IPOD) include_directories( ${CMAKE_BINARY_DIR}/src ${GLIB2_INCLUDE_DIR} ${GDKPIXBUF_INCLUDE_DIR} ${GOBJECT_INCLUDE_DIR} ${IPOD_INCLUDE_DIRS} ) ########### set macros for the ipod collection plugin ########## # Generate config-ipodcollection.h configure_file(config-ipodcollection.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-ipodcollection.h ) ########### next target ################ set(amarok_collection-ipodcollection_PART_SRCS IpodCollection.cpp IpodCollectionFactory.cpp IpodCollectionLocation.cpp IpodMeta.cpp IpodPlaylist.cpp IpodPlaylistProvider.cpp jobs/IpodCopyTracksJob.cpp jobs/IpodDeleteTracksJob.cpp jobs/IpodParseTracksJob.cpp jobs/IpodWriteDatabaseJob.cpp support/IphoneMountPoint.cpp support/IpodDeviceHelper.cpp support/IpodTranscodeCapability.cpp ) ki18n_wrap_ui(amarok_collection-ipodcollection_PART_SRCS support/IpodConfiguration.ui ) link_directories(${IPOD_LIBRARY_DIRS}) add_library(amarok_collection-ipodcollection MODULE ${amarok_collection-ipodcollection_PART_SRCS}) target_link_libraries(amarok_collection-ipodcollection amarokshared amarokcore amaroklib amarok-transcoding KF5::KIOCore KF5::ThreadWeaver Qt5::Gui ${GLIB2_LIBRARIES} ${GDKPIXBUF_LIBRARY} ${GOBJECT_LIBRARIES} ${IPOD_LIBRARIES} ) install(TARGETS amarok_collection-ipodcollection DESTINATION - ${PLUGIN_INSTALL_DIR} + ${KDE_INSTALL_PLUGINDIR} ) kcoreaddons_desktop_to_json(amarok_collection-ipodcollection amarok_collection-ipodcollection.desktop SERVICE_TYPES ${CMAKE_SOURCE_DIR}/src/amarok-plugin.desktop) endif() diff --git a/src/core-impl/collections/mtpcollection/CMakeLists.txt b/src/core-impl/collections/mtpcollection/CMakeLists.txt index 857d271296..78ccdc3e53 100644 --- a/src/core-impl/collections/mtpcollection/CMakeLists.txt +++ b/src/core-impl/collections/mtpcollection/CMakeLists.txt @@ -1,51 +1,51 @@ find_package(Mtp) if (MTP_FOUND) include_directories( ${Amarok_SOURCE_DIR}/src ${Amarok_SOURCE_DIR}/src/core-impl/collections ${Amarok_SOURCE_DIR}/src/core-impl/collections/mediadevicecollection ${Amarok_SOURCE_DIR}/src/core-impl/collections/mediadevicecollection/support ${Amarok_SOURCE_DIR}/src/core-impl/collections/mediadevicecollection/handler ${Amarok_SOURCE_DIR}/src/core-impl/collections/mediadevicecollection/handler/capabilities ${Amarok_SOURCE_DIR}/src/core-impl/collections/mtpcollection/handler ${Amarok_SOURCE_DIR}/src/core-impl/collections/mtpcollection/handler/capabilities ${Amarok_SOURCE_DIR}/src/core-impl/collections/mtpcollection/support ${GLIB2_INCLUDE_DIR} ${MTP_INCLUDE_DIR} ${CMAKE_BINARY_DIR}/src ${AMAROK_COLLECTION_SUPPORT_DIR} ) ########### next target ############### set(amarok_collection-mtpcollection_PART_SRCS MtpCollection.cpp handler/MtpHandler.cpp handler/capabilities/MtpPlaylistCapability.cpp handler/capabilities/MtpReadCapability.cpp handler/capabilities/MtpWriteCapability.cpp support/MtpDeviceInfo.cpp support/MtpConnectionAssistant.cpp ) add_library(amarok_collection-mtpcollection MODULE ${amarok_collection-mtpcollection_PART_SRCS}) target_link_libraries(amarok_collection-mtpcollection amarokcore amaroklib KF5::KIOCore KF5::ThreadWeaver Qt5::Gui ${MTP_LIBRARIES} ) -install(TARGETS amarok_collection-mtpcollection DESTINATION ${PLUGIN_INSTALL_DIR} ) +install(TARGETS amarok_collection-mtpcollection DESTINATION ${KDE_INSTALL_PLUGINDIR} ) kcoreaddons_desktop_to_json(amarok_collection-mtpcollection amarok_collection-mtpcollection.desktop SERVICE_TYPES ${CMAKE_SOURCE_DIR}/src/amarok-plugin.desktop) endif () diff --git a/src/core-impl/collections/nepomukcollection/CMakeLists.txt b/src/core-impl/collections/nepomukcollection/CMakeLists.txt index df54ca3cd1..2c01f64bf4 100644 --- a/src/core-impl/collections/nepomukcollection/CMakeLists.txt +++ b/src/core-impl/collections/nepomukcollection/CMakeLists.txt @@ -1,50 +1,50 @@ find_package(NepomukCore QUIET) set_package_properties(NEPOMUK-CORE PROPERTIES DESCRIPTION "NepomukCore Libraries required by Nepomuk Collection" URL "http://kde.org/download/#v4.9" TYPE OPTIONAL) find_package(Soprano QUIET) set_package_properties(SOPRANO PROPERTIES DESCRIPTION "Soprano libraries required by Nepomuk Collection" URL "http://soprano.sourceforge.net/" TYPE OPTIONAL) if(NepomukCore_FOUND AND Soprano_FOUND) include(NepomukAddOntologyClasses) include_directories( ../.. ${SOPRANO_INCLUDE_DIR} ${NEPOMUK_CORE_INCLUDE_DIR} ) ########### next target ############### set(amarok_collection-nepomukcollection_PART_SRCS NepomukCache.cpp NepomukCollection.cpp NepomukCollectionFactory.cpp NepomukInquirer.cpp NepomukParser.cpp NepomukQueryMaker.cpp meta/NepomukAlbum.cpp meta/NepomukArtist.cpp meta/NepomukComposer.cpp meta/NepomukGenre.cpp meta/NepomukTrack.cpp meta/NepomukLabel.cpp meta/NepomukYear.cpp ) add_library(amarok_collection-nepomukcollection MODULE ${amarok_collection-nepomukcollection_PART_SRCS}) target_link_libraries(amarok_collection-nepomukcollection amarokcore amaroklib KF5::ThreadWeaver ${NEPOMUK_CORE_LIBRARY} ${SOPRANO_LIBRARIES} ) - install(TARGETS amarok_collection-nepomukcollection DESTINATION ${PLUGIN_INSTALL_DIR}) + install(TARGETS amarok_collection-nepomukcollection DESTINATION ${KDE_INSTALL_PLUGINDIR}) ########### install files ############### - install(FILES amarok_collection-nepomukcollection.desktop DESTINATION ${SERVICES_INSTALL_DIR}) + install(FILES amarok_collection-nepomukcollection.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) endif() diff --git a/src/core-impl/collections/playdarcollection/CMakeLists.txt b/src/core-impl/collections/playdarcollection/CMakeLists.txt index 7dbc57c4c3..6bbd79babb 100644 --- a/src/core-impl/collections/playdarcollection/CMakeLists.txt +++ b/src/core-impl/collections/playdarcollection/CMakeLists.txt @@ -1,24 +1,24 @@ include_directories( ${QJSON_INCLUDE_DIR} ) set( amarok_collection-playdarcollection_PART_SRCS PlaydarMeta.cpp PlaydarCollection.cpp PlaydarQueryMaker.cpp support/Controller.cpp support/Query.cpp support/ProxyResolver.cpp support/QMFunctionTypes.h ) add_library(amarok_collection-playdarcollection MODULE ${amarok_collection-playdarcollection_PART_SRCS}) target_link_libraries( amarok_collection-playdarcollection amarokcore amaroklib ${QJSON_LIBRARIES} KF5::ThreadWeaver KF5::KIOCore ) -install(TARGETS amarok_collection-playdarcollection DESTINATION ${PLUGIN_INSTALL_DIR} ) +install(TARGETS amarok_collection-playdarcollection DESTINATION ${KDE_INSTALL_PLUGINDIR} ) kcoreaddons_desktop_to_json(amarok_collection-playdarcollection amarok_collection-playdarcollection.desktop SERVICE_TYPES ${CMAKE_SOURCE_DIR}/src/amarok-plugin.desktop) diff --git a/src/core-impl/collections/umscollection/CMakeLists.txt b/src/core-impl/collections/umscollection/CMakeLists.txt index 8eeb755087..1571f75a8a 100644 --- a/src/core-impl/collections/umscollection/CMakeLists.txt +++ b/src/core-impl/collections/umscollection/CMakeLists.txt @@ -1,42 +1,42 @@ include_directories( ../.. ../../collections podcasts ${CMAKE_BINARY_DIR}/src ${AMAROK_COLLECTION_SUPPORT_DIR} ) ########### next target ################ set(amarok_collection-umscollection_PART_SRCS UmsCollection.cpp UmsCollectionLocation.cpp UmsTranscodeCapability.cpp podcasts/UmsPodcastProvider.cpp podcasts/UmsPodcastMeta.cpp) ki18n_wrap_ui(amarok_collection-umscollection_PART_SRCS UmsConfiguration.ui ) add_library(amarok_collection-umscollection MODULE ${amarok_collection-umscollection_PART_SRCS}) target_link_libraries(amarok_collection-umscollection amarokshared amaroklib amarokcore amarok-transcoding KF5::KIOCore ${KDE4_SOLID_LIBRARY} KF5::ThreadWeaver Qt5::Gui ) install(TARGETS amarok_collection-umscollection DESTINATION - ${PLUGIN_INSTALL_DIR} ) + ${KDE_INSTALL_PLUGINDIR} ) kcoreaddons_desktop_to_json(amarok_collection-umscollection amarok_collection-umscollection.desktop SERVICE_TYPES ${CMAKE_SOURCE_DIR}/src/amarok-plugin.desktop) diff --git a/src/core-impl/collections/upnpcollection/CMakeLists.txt b/src/core-impl/collections/upnpcollection/CMakeLists.txt index 6a3d63deb0..9faa7a7238 100644 --- a/src/core-impl/collections/upnpcollection/CMakeLists.txt +++ b/src/core-impl/collections/upnpcollection/CMakeLists.txt @@ -1,42 +1,42 @@ include_directories( ../.. ${CMAKE_CURRENT_BINARY_DIR}/../.. ${AMAROK_COLLECTION_SUPPORT_DIR} ) ########### next target ############### set(amarok_collection-upnpcollection_PART_SRCS dbuscodec.cpp UpnpCollectionBase.cpp UpnpBrowseCollection.cpp UpnpSearchCollection.cpp UpnpCollectionFactory.cpp UpnpMemoryQueryMaker.cpp UpnpQueryMaker.cpp UpnpQueryMakerInternal.cpp UpnpMeta.cpp UpnpCache.cpp UpnpQuery.cpp ) add_library(amarok_collection-upnpcollection MODULE ${amarok_collection-upnpcollection_PART_SRCS}) target_link_libraries( amarok_collection-upnpcollection amarokcore amaroklib KF5::ThreadWeaver KF5::KIOCore ) if(APPLE) set_target_properties(amarok_collection-upnpcollection PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") endif() -install(TARGETS amarok_collection-upnpcollection DESTINATION ${PLUGIN_INSTALL_DIR} ) +install(TARGETS amarok_collection-upnpcollection DESTINATION ${KDE_INSTALL_PLUGINDIR} ) kcoreaddons_desktop_to_json(amarok_collection-upnpcollection amarok_collection-upnpcollection.desktop SERVICE_TYPES ${CMAKE_SOURCE_DIR}/src/amarok-plugin.desktop) diff --git a/src/core-impl/storage/sql/mysqlestorage/CMakeLists.txt b/src/core-impl/storage/sql/mysqlestorage/CMakeLists.txt index 9ee3b4c1b9..8b9e44a36a 100644 --- a/src/core-impl/storage/sql/mysqlestorage/CMakeLists.txt +++ b/src/core-impl/storage/sql/mysqlestorage/CMakeLists.txt @@ -1,42 +1,42 @@ add_definitions(${MYSQL_EMBEDDED_CFLAGS}) ########### mysqle ############### set( amarok_storage-mysqlestorage_PART_SRCS ../mysql-shared/MySqlStorage.cpp MySqlEmbeddedStorage.cpp MySqlEmbeddedStorageFactory.cpp ) add_library(amarok_storage-mysqlestorage MODULE ${amarok_storage-mysqlestorage_PART_SRCS}) string(REPLACE "-Wl,--fatal-warnings" "" CMAKE_SHARED_LINKER_FLAGS_NOFATALWARN "${CMAKE_SHARED_LINKER_FLAGS}") set(CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS_NOFATALWARN} ) string(REPLACE "-Wl,--fatal-warnings" "" CMAKE_MODULE_LINKER_FLAGS_NOFATALWARN "${CMAKE_MODULE_LINKER_FLAGS}") set(CMAKE_MODULE_LINKER_FLAGS ${CMAKE_MODULE_LINKER_FLAGS_NOFATALWARN} ) target_link_libraries(amarok_storage-mysqlestorage # amarok-sqlstorage amarokcore amaroklib Qt5::Core Qt5::Gui ${MYSQL_EMBEDDED_LIBRARIES} ${CMAKE_DL_LIBS} ${ZLIB_LIBRARIES} ) if(NOT WIN32 AND NOT APPLE) target_link_libraries( amarok_storage-mysqlestorage crypt pthread ) endif() if(APPLE) SET_TARGET_PROPERTIES(amarok_storage-mysqlestorage PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") endif() -install(TARGETS amarok_storage-mysqlestorage DESTINATION ${PLUGIN_INSTALL_DIR} ) +install(TARGETS amarok_storage-mysqlestorage DESTINATION ${KDE_INSTALL_PLUGINDIR} ) -install(FILES amarok_storage-mysqlestorage.desktop DESTINATION ${SERVICES_INSTALL_DIR}) +install(FILES amarok_storage-mysqlestorage.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) kcoreaddons_desktop_to_json(amarok_storage-mysqlestorage amarok_storage-mysqlestorage.desktop SERVICE_TYPES ${CMAKE_SOURCE_DIR}/src/amarok-plugin.desktop) diff --git a/src/core-impl/storage/sql/mysqlserverstorage/CMakeLists.txt b/src/core-impl/storage/sql/mysqlserverstorage/CMakeLists.txt index 12768234c6..8ccc487bd5 100644 --- a/src/core-impl/storage/sql/mysqlserverstorage/CMakeLists.txt +++ b/src/core-impl/storage/sql/mysqlserverstorage/CMakeLists.txt @@ -1,42 +1,42 @@ add_definitions(${MYSQL_CFLAGS}) ########### mysqlserver ############### set( amarok_storage-mysqlserverstorage_PART_SRCS ../mysql-shared/MySqlStorage.cpp MySqlServerStorage.cpp MySqlServerStorageFactory.cpp ) add_library(amarok_storage-mysqlserverstorage MODULE ${amarok_storage-mysqlserverstorage_PART_SRCS}) string(REPLACE "-Wl,--fatal-warnings" "" CMAKE_SHARED_LINKER_FLAGS_NOFATALWARN "${CMAKE_SHARED_LINKER_FLAGS}") set(CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS_NOFATALWARN} ) string(REPLACE "-Wl,--fatal-warnings" "" CMAKE_MODULE_LINKER_FLAGS_NOFATALWARN "${CMAKE_MODULE_LINKER_FLAGS}") set(CMAKE_MODULE_LINKER_FLAGS ${CMAKE_MODULE_LINKER_FLAGS_NOFATALWARN} ) target_link_libraries(amarok_storage-mysqlserverstorage # amarok-sqlstorage amarokcore amaroklib Qt5::Core Qt5::Gui ${MYSQL_LIBRARIES} ${CMAKE_DL_LIBS} ${ZLIB_LIBRARIES} ) if(NOT WIN32 AND NOT APPLE) target_link_libraries( amarok_storage-mysqlserverstorage crypt pthread ) endif() if(APPLE) SET_TARGET_PROPERTIES(amarok_storage-mysqlserverstorage PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") endif() -install(TARGETS amarok_storage-mysqlserverstorage DESTINATION ${PLUGIN_INSTALL_DIR} ) +install(TARGETS amarok_storage-mysqlserverstorage DESTINATION ${KDE_INSTALL_PLUGINDIR} ) -install(FILES amarok_storage-mysqlserverstorage.desktop DESTINATION ${SERVICES_INSTALL_DIR}) +install(FILES amarok_storage-mysqlserverstorage.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) kcoreaddons_desktop_to_json(amarok_storage-mysqlserverstorage amarok_storage-mysqlserverstorage.desktop SERVICE_TYPES ${CMAKE_SOURCE_DIR}/src/amarok-plugin.desktop) diff --git a/src/importers/amarok/CMakeLists.txt b/src/importers/amarok/CMakeLists.txt index 7f3416dfe1..4f5daf3a13 100644 --- a/src/importers/amarok/CMakeLists.txt +++ b/src/importers/amarok/CMakeLists.txt @@ -1,22 +1,22 @@ set( amarok_importer-amarok_PART_SRCS AmarokConfigWidget.cpp AmarokManager.cpp AmarokProvider.cpp AmarokEmbeddedSqlConnection.cpp AmarokTrack.cpp ) ki18n_wrap_ui( amarok_importer-amarok_PART_SRCS AmarokConfigWidget.ui ) add_library(amarok_importer-amarok MODULE ${amarok_importer-amarok_PART_SRCS} ) target_link_libraries( amarok_importer-amarok amarokcore amaroklib KF5::KIOCore Qt5::Sql ) -install( TARGETS amarok_importer-amarok DESTINATION ${PLUGIN_INSTALL_DIR} ) +install( TARGETS amarok_importer-amarok DESTINATION ${KDE_INSTALL_PLUGINDIR} ) kcoreaddons_desktop_to_json(amarok_importer-amarok amarok_importer-amarok.desktop SERVICE_TYPES ${CMAKE_SOURCE_DIR}/src/amarok-plugin.desktop) diff --git a/src/importers/banshee/CMakeLists.txt b/src/importers/banshee/CMakeLists.txt index 19fab98fd7..819f1eae60 100644 --- a/src/importers/banshee/CMakeLists.txt +++ b/src/importers/banshee/CMakeLists.txt @@ -1,19 +1,19 @@ set( amarok_importer-banshee_PART_SRCS BansheeConfigWidget.cpp BansheeManager.cpp BansheeProvider.cpp BansheeTrack.cpp ) add_library(amarok_importer-banshee MODULE ${amarok_importer-banshee_PART_SRCS} ) target_link_libraries( amarok_importer-banshee amarokcore amaroklib KF5::KIOCore Qt5::Sql ) -install( TARGETS amarok_importer-banshee DESTINATION ${PLUGIN_INSTALL_DIR} ) +install( TARGETS amarok_importer-banshee DESTINATION ${KDE_INSTALL_PLUGINDIR} ) kcoreaddons_desktop_to_json(amarok_importer-banshee amarok_importer-banshee.desktop SERVICE_TYPES ${CMAKE_SOURCE_DIR}/src/amarok-plugin.desktop) diff --git a/src/importers/clementine/CMakeLists.txt b/src/importers/clementine/CMakeLists.txt index 687e7971e9..42e87c7485 100644 --- a/src/importers/clementine/CMakeLists.txt +++ b/src/importers/clementine/CMakeLists.txt @@ -1,19 +1,19 @@ set( amarok_importer-clementine_PART_SRCS ClementineConfigWidget.cpp ClementineManager.cpp ClementineProvider.cpp ClementineTrack.cpp ) add_library(amarok_importer-clementine MODULE ${amarok_importer-clementine_PART_SRCS} ) target_link_libraries( amarok_importer-clementine amarokcore amaroklib KF5::KIOCore Qt5::Sql ) -install( TARGETS amarok_importer-clementine DESTINATION ${PLUGIN_INSTALL_DIR} ) +install( TARGETS amarok_importer-clementine DESTINATION ${KDE_INSTALL_PLUGINDIR} ) kcoreaddons_desktop_to_json(amarok_importer-clementine amarok_importer-clementine.desktop SERVICE_TYPES ${CMAKE_SOURCE_DIR}/src/amarok-plugin.desktop) diff --git a/src/importers/fastforward/CMakeLists.txt b/src/importers/fastforward/CMakeLists.txt index 084655cf34..03078ffb74 100644 --- a/src/importers/fastforward/CMakeLists.txt +++ b/src/importers/fastforward/CMakeLists.txt @@ -1,21 +1,21 @@ set( amarok_importer-fastforward_PART_SRCS FastForwardConfigWidget.cpp FastForwardManager.cpp FastForwardProvider.cpp FastForwardTrack.cpp ) ki18n_wrap_ui( amarok_importer-fastforward_PART_SRCS FastForwardConfigWidget.ui ) add_library(amarok_importer-fastforward MODULE ${amarok_importer-fastforward_PART_SRCS} ) target_link_libraries( amarok_importer-fastforward amarokcore amaroklib KF5::KIOCore Qt5::Sql ) -install( TARGETS amarok_importer-fastforward DESTINATION ${PLUGIN_INSTALL_DIR} ) +install( TARGETS amarok_importer-fastforward DESTINATION ${KDE_INSTALL_PLUGINDIR} ) kcoreaddons_desktop_to_json(amarok_importer-fastforward amarok_importer-fastforward.desktop SERVICE_TYPES ${CMAKE_SOURCE_DIR}/src/amarok-plugin.desktop) diff --git a/src/importers/itunes/CMakeLists.txt b/src/importers/itunes/CMakeLists.txt index f9b2a70aaf..b97b3fd6a6 100644 --- a/src/importers/itunes/CMakeLists.txt +++ b/src/importers/itunes/CMakeLists.txt @@ -1,18 +1,18 @@ set( amarok_importer-itunes_PART_SRCS ITunesConfigWidget.cpp ITunesManager.cpp ITunesProvider.cpp ITunesTrack.cpp ) add_library(amarok_importer-itunes MODULE ${amarok_importer-itunes_PART_SRCS} ) target_link_libraries( amarok_importer-itunes amarokcore amaroklib KF5::KIOCore ) -install( TARGETS amarok_importer-itunes DESTINATION ${PLUGIN_INSTALL_DIR} ) +install( TARGETS amarok_importer-itunes DESTINATION ${KDE_INSTALL_PLUGINDIR} ) kcoreaddons_desktop_to_json(amarok_importer-itunes amarok_importer-itunes.desktop SERVICE_TYPES ${CMAKE_SOURCE_DIR}/src/amarok-plugin.desktop) diff --git a/src/importers/rhythmbox/CMakeLists.txt b/src/importers/rhythmbox/CMakeLists.txt index 12d55d755b..6e42dab352 100644 --- a/src/importers/rhythmbox/CMakeLists.txt +++ b/src/importers/rhythmbox/CMakeLists.txt @@ -1,18 +1,18 @@ set( amarok_importer-rhythmbox_PART_SRCS RhythmboxConfigWidget.cpp RhythmboxManager.cpp RhythmboxProvider.cpp RhythmboxTrack.cpp ) add_library(amarok_importer-rhythmbox MODULE ${amarok_importer-rhythmbox_PART_SRCS} ) target_link_libraries( amarok_importer-rhythmbox amarokcore amaroklib KF5::KIOCore ) -install( TARGETS amarok_importer-rhythmbox DESTINATION ${PLUGIN_INSTALL_DIR} ) +install( TARGETS amarok_importer-rhythmbox DESTINATION ${KDE_INSTALL_PLUGINDIR} ) kcoreaddons_desktop_to_json(amarok_importer-rhythmbox amarok_importer-rhythmbox.desktop SERVICE_TYPES ${CMAKE_SOURCE_DIR}/src/amarok-plugin.desktop) diff --git a/src/kconf_update/CMakeLists.txt b/src/kconf_update/CMakeLists.txt index 02cc417919..7ea473fda0 100644 --- a/src/kconf_update/CMakeLists.txt +++ b/src/kconf_update/CMakeLists.txt @@ -1,5 +1,5 @@ -install( FILES amarok.upd DESTINATION ${KCONF_UPDATE_INSTALL_DIR} ) +install( FILES amarok.upd DESTINATION ${KDE_INSTALL_KCONFUPDATEDIR} ) install( PROGRAMS amarok-2.4.1-tokens_syntax_update.pl - DESTINATION ${KCONF_UPDATE_INSTALL_DIR} + DESTINATION ${KDE_INSTALL_KCONFUPDATEDIR} ) diff --git a/src/scripting/scripts/librivox_service/CMakeLists.txt b/src/scripting/scripts/librivox_service/CMakeLists.txt index f1bd338d76..7bd0d29669 100644 --- a/src/scripting/scripts/librivox_service/CMakeLists.txt +++ b/src/scripting/scripts/librivox_service/CMakeLists.txt @@ -1,19 +1,19 @@ install( FILES COPYING README main.js LibrivoxService.html LibrivoxLogo.png LibrivoxIcon.png LibrivoxEmblem.png LibrivoxScalableEmblem.svgz audio_book128.png - DESTINATION ${DATA_INSTALL_DIR}/amarok/scripts/librivox_service + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/scripts/librivox_service ) kcoreaddons_desktop_to_json("" script.desktop) install( FILES ${CMAKE_CURRENT_BINARY_DIR}/script.json - DESTINATION ${DATA_INSTALL_DIR}/amarok/scripts/librivox_service + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/scripts/librivox_service ) diff --git a/src/scripting/scripts/lyrics_lyricwiki/CMakeLists.txt b/src/scripting/scripts/lyrics_lyricwiki/CMakeLists.txt index 8ba8b94f43..30809df8a4 100644 --- a/src/scripting/scripts/lyrics_lyricwiki/CMakeLists.txt +++ b/src/scripting/scripts/lyrics_lyricwiki/CMakeLists.txt @@ -1,10 +1,10 @@ install( FILES main.js - DESTINATION ${DATA_INSTALL_DIR}/amarok/scripts/lyrics_lyricwiki + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/scripts/lyrics_lyricwiki ) kcoreaddons_desktop_to_json("" script.desktop) install( FILES ${CMAKE_CURRENT_BINARY_DIR}/script.json - DESTINATION ${DATA_INSTALL_DIR}/amarok/scripts/lyrics_lyricwiki + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/scripts/lyrics_lyricwiki ) diff --git a/src/scripting/scripts/qtscript_debug/CMakeLists.txt b/src/scripting/scripts/qtscript_debug/CMakeLists.txt index 41be9d725d..c1baf8b323 100644 --- a/src/scripting/scripts/qtscript_debug/CMakeLists.txt +++ b/src/scripting/scripts/qtscript_debug/CMakeLists.txt @@ -1,14 +1,14 @@ install( FILES script.spec - DESTINATION ${DATA_INSTALL_DIR}/amarok/scripts/qtscript_debug + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/scripts/qtscript_debug ) install( PROGRAMS main.js - DESTINATION ${DATA_INSTALL_DIR}/amarok/scripts/qtscript_debug + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/scripts/qtscript_debug ) install( PROGRAMS debug/debug.js - DESTINATION ${DATA_INSTALL_DIR}/amarok/scripts/qtscript_debug/debug + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/scripts/qtscript_debug/debug ) diff --git a/src/scripting/scripts/radio_station_service/CMakeLists.txt b/src/scripting/scripts/radio_station_service/CMakeLists.txt index 8054900563..c33d36af5c 100644 --- a/src/scripting/scripts/radio_station_service/CMakeLists.txt +++ b/src/scripting/scripts/radio_station_service/CMakeLists.txt @@ -1,11 +1,11 @@ install( FILES main.js - DESTINATION ${DATA_INSTALL_DIR}/amarok/scripts/radio_station_service + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/scripts/radio_station_service ) kcoreaddons_desktop_to_json("" script.desktop) install( FILES ${CMAKE_CURRENT_BINARY_DIR}/script.json - DESTINATION ${DATA_INSTALL_DIR}/amarok/scripts/radio_station_service + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/scripts/radio_station_service ) diff --git a/src/scripting/scripts/script_console/CMakeLists.txt b/src/scripting/scripts/script_console/CMakeLists.txt index fb97469ebf..bd9fa7d11c 100644 --- a/src/scripting/scripts/script_console/CMakeLists.txt +++ b/src/scripting/scripts/script_console/CMakeLists.txt @@ -1,10 +1,10 @@ install( FILES main.js - DESTINATION ${DATA_INSTALL_DIR}/amarok/scripts/script_console + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/scripts/script_console ) kcoreaddons_desktop_to_json("" script.desktop) install( FILES ${CMAKE_CURRENT_BINARY_DIR}/script.json - DESTINATION ${DATA_INSTALL_DIR}/amarok/scripts/script_console + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/scripts/script_console ) diff --git a/src/scripting/scripts/templates/CMakeLists.txt b/src/scripting/scripts/templates/CMakeLists.txt index 9291d0169d..139474af36 100644 --- a/src/scripting/scripts/templates/CMakeLists.txt +++ b/src/scripting/scripts/templates/CMakeLists.txt @@ -1,5 +1,5 @@ install( FILES script.spec template.js - DESTINATION ${DATA_INSTALL_DIR}/amarok/scripts/templates + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/scripts/templates ) diff --git a/src/scripting/scripts/webcontrol/CMakeLists.txt b/src/scripting/scripts/webcontrol/CMakeLists.txt index de43d59360..ec900e6c96 100644 --- a/src/scripting/scripts/webcontrol/CMakeLists.txt +++ b/src/scripting/scripts/webcontrol/CMakeLists.txt @@ -1,5 +1,5 @@ install( FILES main.js script.spec - DESTINATION ${DATA_INSTALL_DIR}/amarok/scripts/webcontrol + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/scripts/webcontrol ) diff --git a/src/services/ampache/CMakeLists.txt b/src/services/ampache/CMakeLists.txt index 6e337a599d..7d9b0d28b4 100644 --- a/src/services/ampache/CMakeLists.txt +++ b/src/services/ampache/CMakeLists.txt @@ -1,89 +1,89 @@ include_directories( ../ ${Amarok_SOURCE_DIR}/src/ ${Amarok_SOURCE_DIR}/src/core-impl/collections ${Amarok_SOURCE_DIR}/src/network ${Amarok_SOURCE_DIR}/src/statusbar ${CMAKE_CURRENT_BINARY_DIR}/../../.. ) if( LIBLASTFM_FOUND ) include_directories( ${LIBLASTFM_INCLUDE_DIR} ) endif() add_subdirectory( images ) ########### next target ############### set(libampache_account_login_SRCS AmpacheAccountLogin.cpp) add_library(ampache_account_login SHARED ${libampache_account_login_SRCS}) target_link_libraries(ampache_account_login amaroklib amarokcore KF5::KIOCore ) install(TARGETS ampache_account_login DESTINATION ${INSTALL_TARGETS_DEFAULT_ARGS}) ########### next target ############### set(amarok_service_ampache_PART_SRCS AmpacheService.cpp AmpacheServiceCollection.cpp AmpacheServiceQueryMaker.cpp AmpacheMeta.cpp AmpacheConfig.cpp ) if( LIBLASTFM_FOUND ) set(amarok_service_ampache_PART_SRCS ${amarok_service_ampache_PART_SRCS} LastfmInfoParser.cpp ) endif() add_library(amarok_service_ampache MODULE ${amarok_service_ampache_PART_SRCS}) target_link_libraries(amarok_service_ampache ampache_account_login amarokcore amaroklib KF5::KIOCore KF5::ThreadWeaver Qt5::Xml ) if( LIBLASTFM_FOUND ) target_link_libraries(amarok_service_ampache ${LIBLASTFM_LIBRARY} ) endif() -install(TARGETS amarok_service_ampache DESTINATION ${PLUGIN_INSTALL_DIR} ) +install(TARGETS amarok_service_ampache DESTINATION ${KDE_INSTALL_PLUGINDIR} ) install(FILES amarok_service_ampache.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) kcoreaddons_desktop_to_json(amarok_service_ampache amarok_service_ampache.desktop SERVICE_TYPES ${CMAKE_SOURCE_DIR}/src/amarok-plugin.desktop) ########### next target ############### set(kcm_amarok_service_ampache_PART_SRCSS AddServerDialog.cpp AmpacheSettings.cpp AmpacheConfig.cpp ) ki18n_wrap_ui( kcm_amarok_service_ampache_PART_SRCSS AmpacheConfigWidget.ui NewServerWidget.ui ) add_library(kcm_amarok_service_ampache MODULE ${kcm_amarok_service_ampache_PART_SRCSS} ) target_link_libraries( kcm_amarok_service_ampache ampache_account_login KF5::ConfigWidgets ) -install(TARGETS kcm_amarok_service_ampache DESTINATION ${PLUGIN_INSTALL_DIR}) +install(TARGETS kcm_amarok_service_ampache DESTINATION ${KDE_INSTALL_PLUGINDIR}) install(FILES amarok_service_ampache_config.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) kcoreaddons_desktop_to_json(kcm_amarok_service_ampache amarok_service_ampache_config.desktop SERVICE_TYPES kcmodule.desktop) diff --git a/src/services/ampache/images/CMakeLists.txt b/src/services/ampache/images/CMakeLists.txt index af2e684250..183b11c3d4 100644 --- a/src/services/ampache/images/CMakeLists.txt +++ b/src/services/ampache/images/CMakeLists.txt @@ -1,5 +1,5 @@ install( FILES hover_info_ampache.png - DESTINATION ${DATA_INSTALL_DIR}/amarok/images + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/images ) diff --git a/src/services/gpodder/CMakeLists.txt b/src/services/gpodder/CMakeLists.txt index c2fce1eb8f..331fb1c7e6 100644 --- a/src/services/gpodder/CMakeLists.txt +++ b/src/services/gpodder/CMakeLists.txt @@ -1,88 +1,88 @@ include_directories( ../ ../../ ../../core-impl/collections ../../statusbar ../../widgets ../../context ../../network ../../dynamic # for CustomBias.h ../../browsers/playlistbrowser ${CMAKE_CURRENT_BINARY_DIR}/../.. #for amarokconfig.h ${LIBMYGPO_QT5_INCLUDE_DIRS} ${LIBMYGPO_QT5_INCLUDE_DIRS}/../ ) add_subdirectory( images ) find_package( KF5 COMPONENTS Wallet REQUIRED ) set(libgpodder_service_config_SRCS GpodderServiceConfig.cpp ) add_library(gpodder_service_config SHARED ${libgpodder_service_config_SRCS}) target_link_libraries(gpodder_service_config amaroklib amarokcore KF5::Wallet ) install(TARGETS gpodder_service_config DESTINATION ${INSTALL_TARGETS_DEFAULT_ARGS}) set(amarok_service_gpodder_PART_SRCS GpodderService.cpp GpodderServiceModel.cpp GpodderServiceView.cpp GpodderProvider.cpp GpodderPodcastMeta.cpp GpodderTreeItem.cpp GpodderPodcastTreeItem.cpp GpodderTagTreeItem.cpp GpodderPodcastRequestHandler.cpp GpodderSortFilterProxyModel.cpp ) add_library(amarok_service_gpodder MODULE ${amarok_service_gpodder_PART_SRCS}) target_link_libraries(amarok_service_gpodder amarokcore amaroklib amarokpud gpodder_service_config ${LIBMYGPO_QT_LIBRARIES} KF5::KIOCore KF5::ThreadWeaver Qt5::Network ) -install( TARGETS amarok_service_gpodder DESTINATION ${PLUGIN_INSTALL_DIR} ) +install( TARGETS amarok_service_gpodder DESTINATION ${KDE_INSTALL_PLUGINDIR} ) kcoreaddons_desktop_to_json(amarok_service_gpodder amarok_service_gpodder.desktop SERVICE_TYPES ${CMAKE_SOURCE_DIR}/src/amarok-plugin.desktop) set(kcm_amarok_service_gpodder_PART_SRCS GpodderServiceSettings.cpp ) ki18n_wrap_ui( kcm_amarok_service_gpodder_PART_SRCS GpodderConfigWidget.ui ) add_library(kcm_amarok_service_gpodder MODULE ${kcm_amarok_service_gpodder_PART_SRCS} ) target_link_libraries( kcm_amarok_service_gpodder amarokcore amaroklib gpodder_service_config ${LIBMYGPO_QT_LIBRARIES} KF5::ConfigWidgets KF5::KIOCore Qt5::Network ) -install(TARGETS kcm_amarok_service_gpodder DESTINATION ${PLUGIN_INSTALL_DIR}) +install(TARGETS kcm_amarok_service_gpodder DESTINATION ${KDE_INSTALL_PLUGINDIR}) install(FILES amarok_service_gpodder_config.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) kcoreaddons_desktop_to_json(kcm_amarok_service_gpodder amarok_service_gpodder_config.desktop SERVICE_TYPES kcmodule.desktop) diff --git a/src/services/gpodder/images/CMakeLists.txt b/src/services/gpodder/images/CMakeLists.txt index babfa197a9..697a97057c 100644 --- a/src/services/gpodder/images/CMakeLists.txt +++ b/src/services/gpodder/images/CMakeLists.txt @@ -1,5 +1,5 @@ install( FILES mygpo.png - DESTINATION ${DATA_INSTALL_DIR}/amarok/images + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/images ) diff --git a/src/services/jamendo/CMakeLists.txt b/src/services/jamendo/CMakeLists.txt index 365afac824..013d7c129a 100644 --- a/src/services/jamendo/CMakeLists.txt +++ b/src/services/jamendo/CMakeLists.txt @@ -1,34 +1,34 @@ include_directories( ../ ../../ ../../core-impl/collections ../../statusbar ${CMAKE_CURRENT_BINARY_DIR}/../.. ) add_subdirectory( images ) ########### next target ############### set(amarok_service_jamendo_PART_SRCS JamendoService.cpp JamendoMeta.cpp JamendoDatabaseHandler.cpp JamendoXmlParser.cpp JamendoInfoParser.cpp ) add_library(amarok_service_jamendo MODULE ${amarok_service_jamendo_PART_SRCS}) target_link_libraries(amarok_service_jamendo amarokcore amaroklib amarokpud KF5::KIOCore KF5::ThreadWeaver ) - install(TARGETS amarok_service_jamendo DESTINATION ${PLUGIN_INSTALL_DIR} ) + install(TARGETS amarok_service_jamendo DESTINATION ${KDE_INSTALL_PLUGINDIR} ) kcoreaddons_desktop_to_json(amarok_service_jamendo amarok_service_jamendo.desktop SERVICE_TYPES ${CMAKE_SOURCE_DIR}/src/amarok-plugin.desktop) diff --git a/src/services/jamendo/images/CMakeLists.txt b/src/services/jamendo/images/CMakeLists.txt index d791eacc18..f7842b40f7 100644 --- a/src/services/jamendo/images/CMakeLists.txt +++ b/src/services/jamendo/images/CMakeLists.txt @@ -1,5 +1,5 @@ install( FILES hover_info_jamendo.png - DESTINATION ${DATA_INSTALL_DIR}/amarok/images + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/images ) diff --git a/src/services/lastfm/CMakeLists.txt b/src/services/lastfm/CMakeLists.txt index ece5f206f2..5164f7c3a4 100644 --- a/src/services/lastfm/CMakeLists.txt +++ b/src/services/lastfm/CMakeLists.txt @@ -1,93 +1,93 @@ include_directories( ${LIBLASTFM_INCLUDE_DIR} ) add_subdirectory( images ) ########### next target ############### find_package( KF5 COMPONENTS Wallet REQUIRED ) set( amarok_service_lastfm_config_SRCS LastFmServiceConfig.cpp ) add_library( amarok_service_lastfm_config SHARED ${amarok_service_lastfm_config_SRCS} ) target_link_libraries( amarok_service_lastfm_config amarokcore KF5::Wallet ) install( TARGETS amarok_service_lastfm_config ${INSTALL_TARGETS_DEFAULT_ARGS} ) ########### next target ############### set( amarok_service_lastfm_PART_SRCS LastFmService.cpp LastFmServiceCollection.cpp ScrobblerAdapter.cpp SynchronizationAdapter.cpp SynchronizationTrack.cpp LastFmTreeModel.cpp LastFmTreeView.cpp AvatarDownloader.cpp meta/LastFmMeta.cpp meta/LastFmMultiPlayableCapability.cpp meta/LastFmStreamInfoCapability.cpp biases/LastFmBias.cpp biases/WeeklyTopBias.cpp SimilarArtistsAction.cpp LoveTrackAction.cpp ) add_library(amarok_service_lastfm MODULE ${amarok_service_lastfm_PART_SRCS} ) target_link_libraries( amarok_service_lastfm amarok_service_lastfm_config amarokcore amaroklib amarokpud ${LIBLASTFM_LIBRARY} KF5::KIOCore KF5::ThreadWeaver KF5::Wallet Qt5::Network ) -install( TARGETS amarok_service_lastfm DESTINATION ${PLUGIN_INSTALL_DIR} ) +install( TARGETS amarok_service_lastfm DESTINATION ${KDE_INSTALL_PLUGINDIR} ) kcoreaddons_desktop_to_json( amarok_service_lastfm amarok_service_lastfm.desktop SERVICE_TYPES ${CMAKE_SOURCE_DIR}/src/amarok-plugin.desktop ) ########### next target ############### set(kcm_amarok_service_lastfm_PART_SRCS LastFmServiceSettings.cpp ) ki18n_wrap_ui( kcm_amarok_service_lastfm_PART_SRCS LastFmConfigWidget.ui ) add_library(kcm_amarok_service_lastfm MODULE ${kcm_amarok_service_lastfm_PART_SRCS} ) target_link_libraries( kcm_amarok_service_lastfm amarok_service_lastfm_config amarokcore amaroklib ${LIBLASTFM_LIBRARY} KF5::KIOCore Qt5::Network ) -install( TARGETS kcm_amarok_service_lastfm DESTINATION ${PLUGIN_INSTALL_DIR} ) +install( TARGETS kcm_amarok_service_lastfm DESTINATION ${KDE_INSTALL_PLUGINDIR} ) kcoreaddons_desktop_to_json( kcm_amarok_service_lastfm amarok_service_lastfm_config.desktop SERVICE_TYPES kcmodule.desktop ) ########### install files ############### install( FILES amarok_service_lastfm.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) install( FILES amarok_service_lastfm_config.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) install( FILES amaroklastfm.protocol DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) diff --git a/src/services/lastfm/images/CMakeLists.txt b/src/services/lastfm/images/CMakeLists.txt index 7b358e0d70..667a6010ec 100644 --- a/src/services/lastfm/images/CMakeLists.txt +++ b/src/services/lastfm/images/CMakeLists.txt @@ -1,6 +1,6 @@ install( FILES hover_info_lastfm.png - DESTINATION ${DATA_INSTALL_DIR}/amarok/images + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/images ) diff --git a/src/services/magnatune/CMakeLists.txt b/src/services/magnatune/CMakeLists.txt index 316007478b..fd6d9c85fb 100644 --- a/src/services/magnatune/CMakeLists.txt +++ b/src/services/magnatune/CMakeLists.txt @@ -1,87 +1,87 @@ include_directories( ../ ../../ ../../core-impl/collections ../../statusbar ${CMAKE_CURRENT_BINARY_DIR}/../../.. ) add_subdirectory( images ) ########### next target ############### set(amarok_service_magnatune_PART_SRCS MagnatuneActions.cpp MagnatuneAlbumDownloader.cpp MagnatuneCollectionLocation.cpp MagnatuneConfig.cpp MagnatuneDatabaseHandler.cpp MagnatuneDatabaseWorker.cpp MagnatuneDownloadDialog.cpp MagnatuneDownloadInfo.cpp MagnatuneInfoParser.cpp MagnatuneMeta.cpp MagnatuneNeedUpdateWidget.cpp MagnatuneDownloadHandler.cpp MagnatuneRedownloadDialog.cpp MagnatuneRedownloadHandler.cpp MagnatuneSqlCollection.cpp MagnatuneStore.cpp MagnatuneUrlRunner.cpp MagnatuneXmlParser.cpp ) ki18n_wrap_ui( amarok_service_magnatune_PART_SRCS MagnatuneDownloadDialogBase.ui MagnatuneNeedUpdateWidget.ui MagnatuneRedownloadDialogBase.ui MagnatuneSignupDialogBase.ui ) add_library(amarok_service_magnatunestore MODULE ${amarok_service_magnatune_PART_SRCS}) target_link_libraries(amarok_service_magnatunestore amarokcore amaroklib KF5::ConfigWidgets KF5::KIOCore KF5::ThreadWeaver Qt5::Core Qt5::Widgets ) -install(TARGETS amarok_service_magnatunestore DESTINATION ${PLUGIN_INSTALL_DIR} ) +install(TARGETS amarok_service_magnatunestore DESTINATION ${KDE_INSTALL_PLUGINDIR} ) kcoreaddons_desktop_to_json(amarok_service_magnatunestore amarok_service_magnatunestore.desktop SERVICE_TYPES ${CMAKE_SOURCE_DIR}/src/amarok-plugin.desktop) ########### next target ############### set(kcm_amarok_service_magnatune_PART_SRCSS MagnatuneSettingsModule.cpp MagnatuneConfig.cpp ) ki18n_wrap_ui( kcm_amarok_service_magnatune_PART_SRCSS MagnatuneConfigWidget.ui ) add_library(kcm_amarok_service_magnatunestore MODULE ${kcm_amarok_service_magnatune_PART_SRCSS} ) target_link_libraries( kcm_amarok_service_magnatunestore amarokcore KF5::ConfigWidgets KF5::ThreadWeaver Qt5::Core Qt5::Gui ) -install(TARGETS kcm_amarok_service_magnatunestore DESTINATION ${PLUGIN_INSTALL_DIR}) +install(TARGETS kcm_amarok_service_magnatunestore DESTINATION ${KDE_INSTALL_PLUGINDIR}) kcoreaddons_desktop_to_json(kcm_amarok_service_magnatunestore amarok_service_magnatunestore_config.desktop SERVICE_TYPES kcmodule.desktop) ########### install files ############### install( FILES amarok_service_magnatunestore.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) install( FILES amarok_service_magnatunestore_config.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) diff --git a/src/services/magnatune/images/CMakeLists.txt b/src/services/magnatune/images/CMakeLists.txt index 4a42a3a67b..64470977cd 100644 --- a/src/services/magnatune/images/CMakeLists.txt +++ b/src/services/magnatune/images/CMakeLists.txt @@ -1,5 +1,5 @@ install( FILES hover_info_magnatune.png - DESTINATION ${DATA_INSTALL_DIR}/amarok/images + DESTINATION ${KDE_INSTALL_DATADIR}/amarok/images ) diff --git a/src/services/mp3tunes/CMakeLists.txt b/src/services/mp3tunes/CMakeLists.txt index eb260e7750..ff72083060 100644 --- a/src/services/mp3tunes/CMakeLists.txt +++ b/src/services/mp3tunes/CMakeLists.txt @@ -1,139 +1,139 @@ include_directories( ../ ../../ ../../core-impl/collections ../../statusbar ./libmp3tunes ./harmonydaemon ${LIBXML2_INCLUDE_DIR} ${CURL_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR}/../../.. ) ########### next target ############### include_directories( ./harmonydaemon ${GLIB2_INCLUDE_DIR} ${GOBJECT_INCLUDE_DIR} ${LOUDMOUTH_INCLUDE_DIRS} ) if(LIBGCRYPT_FOUND) add_definitions(-DHAVE_LIBGCRYPT) else() include_directories(${OPENSSL_INCLUDE_DIR}) add_definitions(-DHAVE_OPENSSL) endif() set(amarok_service_mp3tunes_harmony_PART_SRCS harmonydaemon/Mp3tunesHarmonyDownload.cpp harmonydaemon/Mp3tunesHarmonyDaemon.cpp harmonydaemon/Mp3tunesHarmonyClient.cpp harmonydaemon/AmarokClient.cpp harmonydaemon/main.cpp libmp3tunes/md5.c libmp3tunes/locker.c libmp3tunes/harmony.c ) qt5_add_dbus_adaptor(amarok_service_mp3tunes_harmony_PART_SRCS harmonydaemon/org.kde.amarok.Mp3tunesHarmonyDaemon.xml harmonydaemon/Mp3tunesHarmonyDaemon.h Mp3tunesHarmonyDaemon ) add_executable(amarokmp3tunesharmonydaemon ${amarok_service_mp3tunes_harmony_PART_SRCS} ) ecm_mark_nongui_executable(amarokmp3tunesharmonydaemon) target_link_libraries(amarokmp3tunesharmonydaemon amarokcore amaroklib ${GLIB2_LIBRARIES} ${GOBJECT_LIBRARIES} ${LOUDMOUTH_LIBRARIES} ${LIBXML2_LIBRARIES} ${CURL_LIBRARIES} ) if(LIBGCRYPT_FOUND) target_link_libraries(amarokmp3tunesharmonydaemon ${LIBGCRYPT_LIBS}) else() target_link_libraries(amarokmp3tunesharmonydaemon crypto ${OPENSSL_LIBRARIES}) endif() install(TARGETS amarokmp3tunesharmonydaemon ${INSTALL_TARGETS_DEFAULT_ARGS} ) ########### next target ############### set(amarok_service_mp3tunes_PART_SRCS Mp3tunesService.cpp Mp3tunesServiceCollection.cpp Mp3tunesServiceCollectionLocation.cpp Mp3tunesServiceQueryMaker.cpp Mp3tunesMeta.cpp Mp3tunesConfig.cpp Mp3tunesLockerMeta.cpp Mp3tunesLocker.cpp Mp3tunesWorkers.cpp Mp3tunesHarmonyHandler.cpp libmp3tunes/locker.c libmp3tunes/md5.c ) qt5_add_dbus_adaptor(amarok_service_mp3tunes_PART_SRCS org.kde.amarok.Mp3tunesHarmonyHandler.xml Mp3tunesHarmonyHandler.h Mp3tunesHarmonyHandler ) add_library(amarok_service_mp3tunes MODULE ${amarok_service_mp3tunes_PART_SRCS}) target_link_libraries(amarok_service_mp3tunes amarokcore amaroklib KF5::ConfigCore KF5::ThreadWeaver ${LIBXML2_LIBRARIES} ${CURL_LIBRARIES} Qt5::Network ) if(LIBGCRYPT_FOUND) target_link_libraries(amarok_service_mp3tunes ${LIBGCRYPT_LIBS}) else() #${OPENSSL_LIBRARIES} returns -lssl, not -lcrypto. we only need -lcrypto. target_link_libraries(amarok_service_mp3tunes crypto ${OPENSSL_LIBRARIES}) endif() -install(TARGETS amarok_service_mp3tunes DESTINATION ${PLUGIN_INSTALL_DIR} ) +install(TARGETS amarok_service_mp3tunes DESTINATION ${KDE_INSTALL_PLUGINDIR} ) kcoreaddons_desktop_to_json(amarok_service_mp3tunes amarok_service_mp3tunes.desktop SERVICE_TYPES ${CMAKE_SOURCE_DIR}/src/amarok-plugin.desktop) ########### next target ############### set(kcm_amarok_service_mp3tunes_PART_SRCSS Mp3tunesSettingsModule.cpp Mp3tunesConfig.cpp ) ki18n_wrap_ui( kcm_amarok_service_mp3tunes_PART_SRCSS Mp3tunesConfigWidget.ui ) add_library(kcm_amarok_service_mp3tunes MODULE ${kcm_amarok_service_mp3tunes_PART_SRCSS} ) target_link_libraries( kcm_amarok_service_mp3tunes amarokcore Qt5::Network KF5::ConfigWidgets ) -install(TARGETS kcm_amarok_service_mp3tunes DESTINATION ${PLUGIN_INSTALL_DIR}) +install(TARGETS kcm_amarok_service_mp3tunes DESTINATION ${KDE_INSTALL_PLUGINDIR}) install( FILES amarok_service_mp3tunes_config.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}) kcoreaddons_desktop_to_json(kcm_amarok_service_mp3tunes amarok_service_mp3tunes_config.desktop SERVICE_TYPES kcmodule.desktop) diff --git a/src/services/opmldirectory/CMakeLists.txt b/src/services/opmldirectory/CMakeLists.txt index f7a462b639..bc8ea64422 100644 --- a/src/services/opmldirectory/CMakeLists.txt +++ b/src/services/opmldirectory/CMakeLists.txt @@ -1,37 +1,37 @@ include_directories( ../ ../.. ../../core-impl/collections ../../statusbar ${CMAKE_CURRENT_BINARY_DIR}/../../.. ) ########### next target ############### set(amarok_service_opmldirectory_PART_SRCS OpmlDirectoryService.cpp OpmlDirectoryMeta.cpp OpmlDirectoryInfoParser.cpp OpmlDirectoryModel.cpp OpmlDirectoryView.cpp ) ki18n_wrap_ui( amarok_service_opmldirectory_PART_SRCS AddOpmlWidget.ui ) add_library(amarok_service_opmldirectory MODULE ${amarok_service_opmldirectory_PART_SRCS}) target_link_libraries(amarok_service_opmldirectory amarokcore amaroklib KF5::IconThemes KF5::KIOCore KF5::ThreadWeaver ) - install(TARGETS amarok_service_opmldirectory DESTINATION ${PLUGIN_INSTALL_DIR} ) + install(TARGETS amarok_service_opmldirectory DESTINATION ${KDE_INSTALL_PLUGINDIR} ) kcoreaddons_desktop_to_json(amarok_service_opmldirectory amarok_service_opmldirectory.desktop SERVICE_TYPES ${CMAKE_SOURCE_DIR}/src/amarok-plugin.desktop) ########### install files ############### - install( FILES podcast_directory.opml DESTINATION ${DATA_INSTALL_DIR}/amarok/data) + install( FILES podcast_directory.opml DESTINATION ${KDE_INSTALL_DATADIR}/amarok/data) diff --git a/supplementary_scripts/amarok_live/CMakeLists.txt b/supplementary_scripts/amarok_live/CMakeLists.txt index 7ef0e4e6da..53b3ba18c6 100644 --- a/supplementary_scripts/amarok_live/CMakeLists.txt +++ b/supplementary_scripts/amarok_live/CMakeLists.txt @@ -1,2 +1,2 @@ -install( PROGRAMS amarok_live.py README amarok.live.remaster.part1.sh amarok.live.remaster.part2.sh DESTINATION ${DATA_INSTALL_DIR}/amarok/scripts/amarok_live) +install( PROGRAMS amarok_live.py README amarok.live.remaster.part1.sh amarok.live.remaster.part2.sh DESTINATION ${KDE_INSTALL_DATADIR}/amarok/scripts/amarok_live) diff --git a/utilities/afttagger/CMakeLists.txt b/utilities/afttagger/CMakeLists.txt index d19bdd370f..70993913e3 100644 --- a/utilities/afttagger/CMakeLists.txt +++ b/utilities/afttagger/CMakeLists.txt @@ -1,33 +1,33 @@ include_directories( ../ ${TAGLIB_INCLUDES} ) add_definitions(${TAGLIB_CFLAGS}) set(amarok_afttagger_SRCS SafeFileSaver.cpp AFTTagger.cpp ) add_executable(amarok_afttagger ${amarok_afttagger_SRCS} ) if( TAGLIB-EXTRAS_FOUND ) include_directories(${TAGLIB-EXTRAS_INCLUDES}) add_definitions(${TAGLIB-EXTRAS_CFLAGS}) target_link_libraries(amarok_afttagger ${TAGLIB-EXTRAS_LIBRARIES}) endif() target_link_libraries(amarok_afttagger Qt5::Core ${TAGLIB_LIBRARIES} ) if(APPLE) set_target_properties(amarok_afttagger PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") # install to app bundle on os x, otherwise amarok fails to load it - install(TARGETS amarok_afttagger DESTINATION ${BUNDLE_INSTALL_DIR}/Amarok.app/Contents/MacOS ) + install(TARGETS amarok_afttagger DESTINATION ${KDE_INSTALL_BUNDLEDIR}/Amarok.app/Contents/MacOS ) else() install(TARGETS amarok_afttagger RUNTIME DESTINATION ${KDE_INSTALL_BINDIR} ) endif() diff --git a/utilities/collectionscanner/CMakeLists.txt b/utilities/collectionscanner/CMakeLists.txt index b0261a8465..27d14bf71a 100644 --- a/utilities/collectionscanner/CMakeLists.txt +++ b/utilities/collectionscanner/CMakeLists.txt @@ -1,21 +1,21 @@ ########### next target ############### set(amarokcollectionscanner_SRCS CollectionScanner.cpp ) add_executable(amarokcollectionscanner ${amarokcollectionscanner_SRCS} ${libchardet_SRCS}) target_link_libraries(amarokcollectionscanner Qt5::Core amarokshared ) if(APPLE) set_target_properties(amarokcollectionscanner PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") # install to app bundle on os x, otherwise amarok fails to load it - install(TARGETS amarokcollectionscanner DESTINATION ${BUNDLE_INSTALL_DIR}/amarok.app/Contents/MacOS ) + install(TARGETS amarokcollectionscanner DESTINATION ${KDE_INSTALL_BUNDLEDIR}/amarok.app/Contents/MacOS ) else() install(TARGETS amarokcollectionscanner RUNTIME DESTINATION ${KDE_INSTALL_BINDIR} ) endif() diff --git a/utilities/updatesigner/CMakeLists.txt b/utilities/updatesigner/CMakeLists.txt index 568d2476bf..6d130d8bb2 100644 --- a/utilities/updatesigner/CMakeLists.txt +++ b/utilities/updatesigner/CMakeLists.txt @@ -1,29 +1,29 @@ project(Amarok-Update-Signer) cmake_minimum_required(VERSION 2.6.2) find_package(Qt4 REQUIRED) find_package(KDE4 REQUIRED) #Needed for the QCA2 check to work find_package(QCA2 REQUIRED) # we need the QtCrypto library for the signer if( QCA2_FOUND ) include_directories( ${CMAKE_CURRENT_BINARY_DIR} ${QCA2_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/shared ) set(amarok-update-signer_SRCS signer.cpp amarok-update-signer.cpp) qt4_automoc(${amarok-update-signer_SRCS}) add_executable(amarok-update-signer ${amarok-update-signer_SRCS}) target_link_libraries(amarok-update-signer Qt5::Core ${QCA2_LIBRARIES}) if(APPLE) set_target_properties(amarok-update-signer PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") # install to app bundle on os x, otherwise amarok fails to load it - install(TARGETS amarok-update-signer DESTINATION ${BUNDLE_INSTALL_DIR}/Amarok.app/Contents/MacOS ) + install(TARGETS amarok-update-signer DESTINATION ${KDE_INSTALL_BUNDLEDIR}/Amarok.app/Contents/MacOS ) else() install(TARGETS amarok-update-signer RUNTIME DESTINATION ${KDE_INSTALL_BINDIR} ) endif() endif()