Clementine-audio-player-Mac.../src/CMakeLists.txt

1535 lines
45 KiB
CMake
Raw Normal View History

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Woverloaded-virtual -Wall -Wno-sign-compare -Wno-deprecated-declarations -Wno-unused-local-typedefs -Wno-unused-private-field -Wno-unknown-warning-option")
option(BUILD_WERROR "Build with -Werror" ON)
if(BUILD_WERROR)
if (LINUX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
endif (LINUX)
endif(BUILD_WERROR)
include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
include_directories(../3rdparty/gmock/gtest/include)
# Activate fast QString concatenation
2015-06-03 23:13:06 +02:00
add_definitions(-DQT_USE_QSTRINGBUILDER)
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
add_definitions(-DBOOST_BIND_NO_PLACEHOLDERS)
include_directories(${CMAKE_BINARY_DIR})
include_directories(${GLIB_INCLUDE_DIRS})
include_directories(${LIBXML_INCLUDE_DIRS})
include_directories(${GOBJECT_INCLUDE_DIRS})
include_directories(${QTSINGLEAPPLICATION_INCLUDE_DIRS})
include_directories(${QTIOCOMPRESSOR_INCLUDE_DIRS})
include_directories(${QXT_INCLUDE_DIRS})
include_directories(${CHROMAPRINT_INCLUDE_DIRS})
2015-04-11 22:51:40 +02:00
include_directories(${MYGPOQT5_INCLUDE_DIRS})
if (HAVE_VISUALISATIONS)
find_package(OpenGL REQUIRED)
include_directories(${OPENGL_INCLUDE_DIR})
include_directories(${LIBPROJECTM_INCLUDE_DIRS})
endif(HAVE_VISUALISATIONS)
if(HAVE_LIBLASTFM)
2015-04-15 18:26:09 +02:00
include_directories(${LASTFM5_INCLUDE_DIRS})
endif(HAVE_LIBLASTFM)
if(HAVE_BREAKPAD)
include_directories(../3rdparty/google-breakpad)
endif(HAVE_BREAKPAD)
include_directories(${CMAKE_SOURCE_DIR}/ext/libclementine-common)
include_directories(${CMAKE_SOURCE_DIR}/ext/libclementine-tagreader)
include_directories(${CMAKE_BINARY_DIR}/ext/libclementine-tagreader)
2013-01-03 21:40:47 +01:00
include_directories(${CMAKE_SOURCE_DIR}/ext/libclementine-remote)
include_directories(${CMAKE_BINARY_DIR}/ext/libclementine-remote)
2018-11-17 15:08:37 +01:00
if(HAVE_SPOTIFY)
include_directories(${CMAKE_SOURCE_DIR}/ext/libclementine-spotifyblob)
include_directories(${CMAKE_BINARY_DIR}/ext/libclementine-spotifyblob)
endif(HAVE_SPOTIFY)
cmake_policy(SET CMP0011 NEW)
include(../cmake/ParseArguments.cmake)
2018-11-17 15:08:37 +01:00
if(HAVE_TRANSLATIONS)
include(../cmake/Translations.cmake)
endif(HAVE_TRANSLATIONS)
set(SOURCES
analyzers/analyzerbase.cpp
analyzers/analyzercontainer.cpp
analyzers/baranalyzer.cpp
analyzers/blockanalyzer.cpp
analyzers/boomanalyzer.cpp
analyzers/rainbowanalyzer.cpp
analyzers/sonogram.cpp
analyzers/turbine.cpp
analyzers/fht.cpp
2012-01-09 20:08:09 +01:00
core/appearance.cpp
core/application.cpp
core/backgroundstreams.cpp
core/commandlineoptions.cpp
core/crashreporting.cpp
core/database.cpp
core/deletefiles.cpp
core/filesystemmusicstorage.cpp
core/filesystemwatcherinterface.cpp
core/globalshortcutbackend.cpp
core/globalshortcuts.cpp
core/gnomeglobalshortcutbackend.cpp
2019-12-06 05:25:28 +01:00
core/kglobalaccelglobalshortcutbackend.cpp
core/mergedproxymodel.cpp
2012-06-20 15:07:28 +02:00
core/metatypes.cpp
core/multisortfilterproxy.cpp
core/musicstorage.cpp
core/network.cpp
2010-12-25 18:25:29 +01:00
core/networkproxyfactory.cpp
core/organise.cpp
core/organiseformat.cpp
core/player.cpp
core/qtfslistener.cpp
core/qxtglobalshortcutbackend.cpp
core/scopedtransaction.cpp
core/settingsprovider.cpp
core/signalchecker.cpp
core/song.cpp
core/songloader.cpp
core/stylesheetloader.cpp
core/tagreaderclient.cpp
core/taskmanager.cpp
core/thread.cpp
core/urlhandler.cpp
core/utilities.cpp
covers/albumcoverexporter.cpp
covers/albumcoverfetcher.cpp
covers/albumcoverfetchersearch.cpp
covers/albumcoverloader.cpp
covers/discogscoverprovider.cpp
covers/coverexportrunnable.cpp
covers/coverprovider.cpp
covers/coverproviders.cpp
covers/coversearchstatistics.cpp
covers/coversearchstatisticsdialog.cpp
covers/currentartloader.cpp
covers/kittenloader.cpp
covers/musicbrainzcoverprovider.cpp
2010-06-26 01:38:21 +02:00
devices/connecteddevice.cpp
2010-07-04 01:00:07 +02:00
devices/devicedatabasebackend.cpp
devices/devicelister.cpp
devices/devicemanager.cpp
2010-07-04 17:01:24 +02:00
devices/deviceproperties.cpp
devices/devicestatefiltermodel.cpp
devices/deviceview.cpp
devices/deviceviewcontainer.cpp
2010-06-26 01:38:21 +02:00
devices/filesystemdevice.cpp
devices/deviceinfo.cpp
engines/devicefinder.cpp
engines/enginebase.cpp
engines/gstengine.cpp
engines/gstenginedebug.cpp
engines/gstenginepipeline.cpp
engines/gstelementdeleter.cpp
engines/gstpipelinebase.cpp
engines/pipelineview.cpp
globalsearch/digitallyimportedsearchprovider.cpp
globalsearch/globalsearch.cpp
globalsearch/globalsearchitemdelegate.cpp
globalsearch/globalsearchmodel.cpp
globalsearch/globalsearchsettingspage.cpp
globalsearch/globalsearchsortmodel.cpp
globalsearch/globalsearchview.cpp
globalsearch/icecastsearchprovider.cpp
globalsearch/librarysearchprovider.cpp
globalsearch/savedradiosearchprovider.cpp
globalsearch/searchprovider.cpp
globalsearch/searchproviderstatuswidget.cpp
globalsearch/simplesearchprovider.cpp
2011-11-06 01:00:26 +01:00
globalsearch/somafmsearchprovider.cpp
2016-02-05 19:29:43 +01:00
globalsearch/intergalacticfmsearchprovider.cpp
2021-02-12 21:11:20 +01:00
globalsearch/radiobrowsersearchprovider.cpp
2012-06-11 00:05:30 +02:00
globalsearch/suggestionwidget.cpp
globalsearch/urlsearchprovider.cpp
internet/core/cloudfilesearchprovider.cpp
internet/core/cloudfileservice.cpp
internet/digitally/digitallyimportedclient.cpp
internet/digitally/digitallyimportedservicebase.cpp
internet/digitally/digitallyimportedsettingspage.cpp
internet/digitally/digitallyimportedurlhandler.cpp
internet/core/geolocator.cpp
internet/icecast/icecastbackend.cpp
internet/icecast/icecastfilterwidget.cpp
internet/icecast/icecastmodel.cpp
internet/icecast/icecastservice.cpp
internet/core/internetmodel.cpp
internet/core/internetplaylistitem.cpp
internet/core/internetservice.cpp
internet/core/internetshowsettingspage.cpp
internet/core/internetview.cpp
internet/core/internetviewcontainer.cpp
internet/jamendo/jamendodynamicplaylist.cpp
internet/jamendo/jamendoplaylistitem.cpp
internet/jamendo/jamendoservice.cpp
internet/core/localredirectserver.cpp
internet/magnatune/magnatunedownloaddialog.cpp
internet/magnatune/magnatuneplaylistitem.cpp
internet/magnatune/magnatuneservice.cpp
internet/magnatune/magnatunesettingspage.cpp
internet/magnatune/magnatuneurlhandler.cpp
internet/core/oauthenticator.cpp
internet/internetradio/savedradio.cpp
internet/core/searchboxwidget.cpp
internet/somafm/somafmservice.cpp
internet/somafm/somafmurlhandler.cpp
2016-02-05 19:29:43 +01:00
internet/intergalacticfm/intergalacticfmservice.cpp
internet/intergalacticfm/intergalacticfmurlhandler.cpp
2021-02-12 21:11:20 +01:00
internet/radiobrowser/radiobrowserservice.cpp
2021-03-11 18:56:26 +01:00
internet/radiobrowser/radiobrowsersettingspage.cpp
internet/radiobrowser/radiobrowserurlhandler.cpp
internet/subsonic/subsonicservice.cpp
internet/subsonic/subsonicsettingspage.cpp
internet/subsonic/subsonicurlhandler.cpp
internet/subsonic/subsonicdynamicplaylist.cpp
library/groupbydialog.cpp
library/library.cpp
library/librarybackend.cpp
library/librarydirectorymodel.cpp
library/libraryfilterwidget.cpp
library/librarymodel.cpp
library/libraryplaylistitem.cpp
library/libraryquery.cpp
library/librarysettingspage.cpp
library/libraryview.cpp
library/libraryviewcontainer.cpp
library/librarywatcher.cpp
library/savedgroupingmanager.cpp
library/sqlrow.cpp
2012-01-06 17:51:27 +01:00
musicbrainz/acoustidclient.cpp
musicbrainz/chromaprinter.cpp
musicbrainz/musicbrainzclient.cpp
musicbrainz/tagfetcher.cpp
2013-01-03 21:40:47 +01:00
networkremote/incomingdataparser.cpp
networkremote/networkremote.cpp
networkremote/networkremotehelper.cpp
2013-01-03 21:40:47 +01:00
networkremote/outgoingdatacreator.cpp
networkremote/remoteclient.cpp
networkremote/songsender.cpp
networkremote/zeroconf.cpp
playlist/dbplaylistitem.cpp
playlist/dynamicplaylistcontrols.cpp
playlist/playlist.cpp
playlist/playlistbackend.cpp
playlist/playlistcontainer.cpp
playlist/playlistdelegates.cpp
playlist/playlistfilterparser.cpp
playlist/playlistfilter.cpp
playlist/playlistheader.cpp
playlist/playlistitem.cpp
playlist/playlistlistcontainer.cpp
playlist/playlistlistmodel.cpp
playlist/playlistlistview.cpp
playlist/playlistmanager.cpp
playlist/playlistsaveoptionsdialog.cpp
playlist/playlistsequence.cpp
playlist/playlisttabbar.cpp
playlist/playlistundocommands.cpp
playlist/playlistview.cpp
2010-07-11 17:37:40 +02:00
playlist/queue.cpp
playlist/queuemanager.cpp
playlist/songloaderinserter.cpp
playlist/songplaylistitem.cpp
playlistparsers/asxparser.cpp
playlistparsers/asxiniparser.cpp
playlistparsers/cueparser.cpp
playlistparsers/m3uparser.cpp
playlistparsers/parserbase.cpp
playlistparsers/playlistparser.cpp
playlistparsers/plsparser.cpp
playlistparsers/wplparser.cpp
playlistparsers/xmlparser.cpp
playlistparsers/xspfparser.cpp
internet/podcasts/addpodcastbyurl.cpp
internet/podcasts/addpodcastdialog.cpp
internet/podcasts/addpodcastpage.cpp
internet/podcasts/episodeinfowidget.cpp
internet/podcasts/fixedopmlpage.cpp
internet/podcasts/gpoddersearchpage.cpp
internet/podcasts/gpoddersync.cpp
internet/podcasts/gpoddertoptagsmodel.cpp
internet/podcasts/gpoddertoptagspage.cpp
internet/podcasts/itunessearchpage.cpp
internet/podcasts/podcast.cpp
internet/podcasts/podcastbackend.cpp
internet/podcasts/podcastdiscoverymodel.cpp
internet/podcasts/podcastdeleter.cpp
internet/podcasts/podcastdownloader.cpp
internet/podcasts/podcastepisode.cpp
internet/podcasts/podcastinfodialog.cpp
internet/podcasts/podcastinfowidget.cpp
internet/podcasts/podcastservice.cpp
internet/podcasts/podcastservicemodel.cpp
internet/podcasts/podcastsettingspage.cpp
internet/podcasts/podcastparser.cpp
internet/podcasts/podcastupdater.cpp
internet/podcasts/podcasturlloader.cpp
smartplaylists/generator.cpp
smartplaylists/generatorinserter.cpp
smartplaylists/querygenerator.cpp
smartplaylists/querywizardplugin.cpp
smartplaylists/search.cpp
smartplaylists/searchpreview.cpp
smartplaylists/searchterm.cpp
smartplaylists/searchtermwidget.cpp
smartplaylists/wizard.cpp
smartplaylists/wizardplugin.cpp
songinfo/artistbiography.cpp
songinfo/artistinfoview.cpp
songinfo/collapsibleinfoheader.cpp
songinfo/collapsibleinfopane.cpp
2010-10-02 15:43:45 +02:00
songinfo/songinfobase.cpp
songinfo/songinfofetcher.cpp
songinfo/songinfoprovider.cpp
songinfo/songinfosettingspage.cpp
songinfo/songinfotextview.cpp
songinfo/songinfoview.cpp
songinfo/songkickconcerts.cpp
2012-08-27 13:24:28 +02:00
songinfo/songkickconcertwidget.cpp
songinfo/songplaystats.cpp
songinfo/spotifyimages.cpp
songinfo/streamdiscoverer.cpp
songinfo/taglyricsinfoprovider.cpp
songinfo/ultimatelyricslyric.cpp
songinfo/ultimatelyricsprovider.cpp
2010-10-02 15:43:45 +02:00
songinfo/ultimatelyricsreader.cpp
transcoder/transcodedialog.cpp
transcoder/transcoder.cpp
transcoder/transcoderoptionsaac.cpp
transcoder/transcoderoptionsdialog.cpp
transcoder/transcoderoptionserror.cpp
transcoder/transcoderoptionsfdkaac.cpp
transcoder/transcoderoptionsflac.cpp
transcoder/transcoderoptionsmp3.cpp
transcoder/transcoderoptionsopus.cpp
transcoder/transcoderoptionsspeex.cpp
transcoder/transcoderoptionsvoaac.cpp
transcoder/transcoderoptionsvorbis.cpp
transcoder/transcoderoptionswma.cpp
transcoder/transcodersettingspage.cpp
ui/about.cpp
ui/addstreamdialog.cpp
ui/albumcoverchoicecontroller.cpp
ui/albumcoverexport.cpp
ui/albumcovermanager.cpp
ui/albumcovermanagerlist.cpp
ui/albumcoversearcher.cpp
2012-01-09 20:08:09 +01:00
ui/appearancesettingspage.cpp
ui/backgroundstreamssettingspage.cpp
ui/behavioursettingspage.cpp
2012-09-26 18:36:47 +02:00
ui/console.cpp
ui/coverfromurldialog.cpp
ui/edittagdialog.cpp
2020-07-26 20:38:14 +02:00
ui/lovedialog.cpp
ui/equalizer.cpp
ui/filechooserwidget.cpp
ui/flowlayout.cpp
ui/globalshortcutgrabber.cpp
ui/globalshortcutssettingspage.cpp
ui/iconloader.cpp
ui/mainwindow.cpp
ui/networkproxysettingspage.cpp
2012-12-31 23:37:39 +01:00
ui/networkremotesettingspage.cpp
ui/notificationssettingspage.cpp
ui/organisedialog.cpp
ui/organiseerrordialog.cpp
ui/playbacksettingspage.cpp
ui/qtsystemtrayicon.cpp
ui/screensaver.cpp
ui/settingscategory.cpp
ui/settingsdialog.cpp
ui/settingspage.cpp
ui/splash.cpp
ui/standarditemiconloader.cpp
ui/streamdetailsdialog.cpp
ui/systemtrayicon.cpp
ui/trackselectiondialog.cpp
ui/windows7thumbbar.cpp
widgets/autoexpandingtreeview.cpp
widgets/busyindicator.cpp
2011-01-25 20:15:51 +01:00
widgets/clickablelabel.cpp
widgets/didyoumean.cpp
2010-09-26 18:00:28 +02:00
widgets/elidedlabel.cpp
widgets/equalizerslider.cpp
widgets/errordialog.cpp
widgets/fancytabwidget.cpp
widgets/favoritewidget.cpp
widgets/fileview.cpp
widgets/fileviewlist.cpp
widgets/forcescrollperpixel.cpp
widgets/freespacebar.cpp
widgets/fullscreenhypnotoad.cpp
widgets/groupediconview.cpp
2010-08-28 20:48:16 +02:00
widgets/lineedit.cpp
widgets/linetextedit.cpp
widgets/loginstatewidget.cpp
widgets/multiloadingindicator.cpp
2010-06-17 00:00:39 +02:00
widgets/nowplayingwidget.cpp
widgets/osd.cpp
widgets/osdpretty.cpp
widgets/prettyimage.cpp
widgets/prettyimageview.cpp
widgets/progressitemdelegate.cpp
widgets/ratingwidget.cpp
widgets/renametablineedit.cpp
widgets/sliderwidget.cpp
widgets/stickyslider.cpp
widgets/stretchheaderview.cpp
widgets/stylehelper.cpp
widgets/trackslider.cpp
widgets/tracksliderpopup.cpp
widgets/tracksliderslider.cpp
widgets/widgetfadehelper.cpp
)
set(HEADERS
analyzers/analyzerbase.h
analyzers/analyzercontainer.h
analyzers/baranalyzer.h
analyzers/blockanalyzer.h
analyzers/boomanalyzer.h
analyzers/rainbowanalyzer.h
analyzers/sonogram.h
analyzers/turbine.h
core/application.h
core/backgroundstreams.h
core/crashreporting.h
core/database.h
core/deletefiles.h
core/filesystemwatcherinterface.h
core/globalshortcuts.h
core/globalshortcutbackend.h
core/gnomeglobalshortcutbackend.h
2019-12-06 05:25:28 +01:00
core/kglobalaccelglobalshortcutbackend.h
core/mergedproxymodel.h
core/mimedata.h
core/network.h
core/organise.h
core/player.h
core/qtfslistener.h
core/songloader.h
core/tagreaderclient.h
core/taskmanager.h
core/urlhandler.h
covers/albumcoverexporter.h
covers/albumcoverfetcher.h
covers/albumcoverfetchersearch.h
covers/albumcoverloader.h
covers/discogscoverprovider.h
covers/coverexportrunnable.h
covers/coverprovider.h
covers/coverproviders.h
covers/coversearchstatisticsdialog.h
covers/currentartloader.h
covers/kittenloader.h
covers/musicbrainzcoverprovider.h
2010-06-26 01:38:21 +02:00
devices/connecteddevice.h
2010-07-04 01:00:07 +02:00
devices/devicedatabasebackend.h
devices/devicelister.h
devices/devicemanager.h
2010-07-04 17:01:24 +02:00
devices/deviceproperties.h
devices/devicestatefiltermodel.h
devices/deviceview.h
devices/deviceviewcontainer.h
2010-06-26 01:38:21 +02:00
devices/filesystemdevice.h
devices/deviceinfo.h
engines/enginebase.h
engines/gstengine.h
engines/gstenginedebug.h
engines/gstenginepipeline.h
engines/gstelementdeleter.h
engines/gstpipelinebase.h
engines/pipelineview.h
globalsearch/globalsearch.h
globalsearch/globalsearchmodel.h
globalsearch/globalsearchsettingspage.h
globalsearch/globalsearchview.h
globalsearch/searchprovider.h
globalsearch/simplesearchprovider.h
2012-06-11 00:05:30 +02:00
globalsearch/suggestionwidget.h
globalsearch/radiobrowsersearchprovider.h
internet/core/cloudfileservice.h
internet/digitally/digitallyimportedclient.h
internet/digitally/digitallyimportedservicebase.h
internet/digitally/digitallyimportedsettingspage.h
internet/core/geolocator.h
internet/icecast/icecastbackend.h
internet/icecast/icecastfilterwidget.h
internet/icecast/icecastmodel.h
internet/icecast/icecastservice.h
internet/core/internetmimedata.h
internet/core/internetmodel.h
internet/core/internetservice.h
internet/core/internetshowsettingspage.h
internet/core/internetsongmimedata.h
internet/core/internetview.h
internet/core/internetviewcontainer.h
internet/jamendo/jamendodynamicplaylist.h
internet/jamendo/jamendoservice.h
internet/core/localredirectserver.h
internet/magnatune/magnatunedownloaddialog.h
internet/magnatune/magnatuneservice.h
internet/magnatune/magnatunesettingspage.h
internet/core/oauthenticator.h
internet/internetradio/savedradio.h
internet/core/scrobbler.h
internet/core/searchboxwidget.h
internet/somafm/somafmservice.h
internet/somafm/somafmurlhandler.h
internet/intergalacticfm/intergalacticfmservice.h
internet/intergalacticfm/intergalacticfmurlhandler.h
2021-02-12 21:11:20 +01:00
internet/radiobrowser/radiobrowserservice.h
2021-03-11 18:56:26 +01:00
internet/radiobrowser/radiobrowsersettingspage.h
internet/radiobrowser/radiobrowserurlhandler.h
internet/subsonic/subsonicservice.h
internet/subsonic/subsonicsettingspage.h
internet/subsonic/subsonicurlhandler.h
internet/subsonic/subsonicdynamicplaylist.h
library/groupbydialog.h
library/library.h
library/librarybackend.h
library/librarydirectorymodel.h
library/libraryfilterwidget.h
library/librarymodel.h
library/librarysettingspage.h
library/libraryview.h
library/libraryviewcontainer.h
library/librarywatcher.h
library/savedgroupingmanager.h
2012-01-06 17:51:27 +01:00
musicbrainz/acoustidclient.h
musicbrainz/musicbrainzclient.h
musicbrainz/tagfetcher.h
2012-12-31 23:37:39 +01:00
networkremote/networkremotehelper.h
networkremote/networkremote.h
2013-01-03 21:40:47 +01:00
networkremote/incomingdataparser.h
networkremote/outgoingdatacreator.h
networkremote/remoteclient.h
networkremote/songsender.h
playlist/dbplaylistitem.h
playlist/dynamicplaylistcontrols.h
playlist/playlist.h
playlist/playlistbackend.h
playlist/playlistcontainer.h
playlist/playlistdelegates.h
playlist/playlistfilter.h
playlist/playlistheader.h
playlist/playlistitem.h
playlist/playlistitemmimedata.h
playlist/playlistlistcontainer.h
playlist/playlistlistmodel.h
playlist/playlistlistview.h
playlist/playlistmanager.h
playlist/playlistsaveoptionsdialog.h
playlist/playlistsequence.h
playlist/playlisttabbar.h
playlist/playlistview.h
2010-07-11 17:37:40 +02:00
playlist/queue.h
playlist/queuemanager.h
playlist/songloaderinserter.h
playlist/songmimedata.h
playlistparsers/asxparser.h
playlistparsers/asxiniparser.h
playlistparsers/cueparser.h
playlistparsers/m3uparser.h
playlistparsers/parserbase.h
playlistparsers/playlistparser.h
playlistparsers/plsparser.h
playlistparsers/xspfparser.h
internet/podcasts/addpodcastbyurl.h
internet/podcasts/addpodcastdialog.h
internet/podcasts/addpodcastpage.h
internet/podcasts/episodeinfowidget.h
internet/podcasts/fixedopmlpage.h
internet/podcasts/gpoddersearchpage.h
internet/podcasts/gpoddersync.h
internet/podcasts/gpoddertoptagsmodel.h
internet/podcasts/gpoddertoptagspage.h
internet/podcasts/itunessearchpage.h
internet/podcasts/podcastbackend.h
internet/podcasts/podcastdiscoverymodel.h
internet/podcasts/podcastdeleter.h
internet/podcasts/podcastdownloader.h
internet/podcasts/podcastinfodialog.h
internet/podcasts/podcastinfowidget.h
internet/podcasts/podcastservice.h
internet/podcasts/podcastservicemodel.h
internet/podcasts/podcastsettingspage.h
internet/podcasts/podcastupdater.h
internet/podcasts/podcasturlloader.h
smartplaylists/generator.h
smartplaylists/generatorinserter.h
smartplaylists/generatormimedata.h
smartplaylists/querywizardplugin.h
smartplaylists/searchpreview.h
smartplaylists/searchtermwidget.h
smartplaylists/wizard.h
smartplaylists/wizardplugin.h
songinfo/artistbiography.h
songinfo/artistinfoview.h
songinfo/collapsibleinfoheader.h
songinfo/collapsibleinfopane.h
2010-10-02 15:43:45 +02:00
songinfo/songinfobase.h
songinfo/songinfofetcher.h
songinfo/songinfoprovider.h
songinfo/songinfosettingspage.h
songinfo/songinfotextview.h
songinfo/songinfoview.h
songinfo/songkickconcerts.h
2012-08-27 13:24:28 +02:00
songinfo/songkickconcertwidget.h
songinfo/songplaystats.h
songinfo/spotifyimages.h
songinfo/streamdiscoverer.h
songinfo/taglyricsinfoprovider.h
songinfo/ultimatelyricslyric.h
songinfo/ultimatelyricsprovider.h
2010-10-02 15:43:45 +02:00
songinfo/ultimatelyricsreader.h
transcoder/transcodedialog.h
transcoder/transcoder.h
transcoder/transcoderoptionsdialog.h
transcoder/transcoderoptionsmp3.h
transcoder/transcoderoptionsfdkaac.h
transcoder/transcoderoptionsflac.h
transcoder/transcodersettingspage.h
ui/about.h
ui/addstreamdialog.h
ui/albumcoverchoicecontroller.h
ui/albumcoverexport.h
ui/albumcovermanager.h
ui/albumcovermanagerlist.h
ui/albumcoversearcher.h
2012-01-09 20:08:09 +01:00
ui/appearancesettingspage.h
ui/backgroundstreamssettingspage.h
ui/behavioursettingspage.h
2012-09-26 18:36:47 +02:00
ui/console.h
ui/coverfromurldialog.h
ui/edittagdialog.h
ui/filechooserwidget.h
2020-07-26 20:38:14 +02:00
ui/lovedialog.h
ui/equalizer.h
ui/globalshortcutgrabber.h
ui/globalshortcutssettingspage.h
ui/mainwindow.h
ui/networkproxysettingspage.h
2012-12-31 23:37:39 +01:00
ui/networkremotesettingspage.h
ui/notificationssettingspage.h
ui/organisedialog.h
ui/organiseerrordialog.h
ui/playbacksettingspage.h
ui/qtsystemtrayicon.h
ui/settingscategory.h
ui/settingsdialog.h
ui/settingspage.h
ui/standarditemiconloader.h
ui/streamdetailsdialog.h
ui/systemtrayicon.h
ui/trackselectiondialog.h
ui/windows7thumbbar.h
widgets/autoexpandingtreeview.h
widgets/busyindicator.h
2011-01-25 20:15:51 +01:00
widgets/clickablelabel.h
widgets/didyoumean.h
2010-09-26 18:00:28 +02:00
widgets/elidedlabel.h
widgets/equalizerslider.h
widgets/errordialog.h
widgets/fancytabwidget.h
widgets/favoritewidget.h
widgets/fileview.h
widgets/fileviewlist.h
widgets/freespacebar.h
widgets/groupediconview.h
2010-08-28 20:48:16 +02:00
widgets/lineedit.h
widgets/linetextedit.h
widgets/loginstatewidget.h
widgets/multiloadingindicator.h
2010-06-17 00:00:39 +02:00
widgets/nowplayingwidget.h
widgets/osd.h
widgets/osdpretty.h
widgets/prettyimage.h
widgets/prettyimageview.h
widgets/progressitemdelegate.h
widgets/ratingwidget.h
widgets/renametablineedit.h
widgets/sliderwidget.h
widgets/stickyslider.h
widgets/stretchheaderview.h
widgets/trackslider.h
widgets/tracksliderpopup.h
widgets/tracksliderslider.h
widgets/widgetfadehelper.h
)
set(UI
covers/coversearchstatisticsdialog.ui
2010-07-04 17:01:24 +02:00
devices/deviceproperties.ui
devices/deviceviewcontainer.ui
2010-07-04 17:01:24 +02:00
engines/gstenginedebug.ui
globalsearch/globalsearchsettingspage.ui
globalsearch/globalsearchview.ui
globalsearch/searchproviderstatuswidget.ui
2012-06-11 00:05:30 +02:00
globalsearch/suggestionwidget.ui
internet/digitally/digitallyimportedsettingspage.ui
internet/icecast/icecastfilterwidget.ui
internet/core/internetshowsettingspage.ui
internet/core/internetviewcontainer.ui
internet/magnatune/magnatunedownloaddialog.ui
internet/magnatune/magnatunesettingspage.ui
internet/core/searchboxwidget.ui
internet/subsonic/subsonicsettingspage.ui
2021-03-11 18:56:26 +01:00
internet/radiobrowser/radiobrowsersettingspage.ui
library/groupbydialog.ui
library/libraryfilterwidget.ui
library/librarysettingspage.ui
library/libraryviewcontainer.ui
library/savedgroupingmanager.ui
playlist/dynamicplaylistcontrols.ui
playlist/playlistcontainer.ui
playlist/playlistsaveoptionsdialog.ui
playlist/playlistlistcontainer.ui
playlist/playlistsequence.ui
2010-07-11 17:37:40 +02:00
playlist/queuemanager.ui
internet/podcasts/addpodcastbyurl.ui
internet/podcasts/addpodcastdialog.ui
internet/podcasts/episodeinfowidget.ui
internet/podcasts/gpoddersearchpage.ui
internet/podcasts/itunessearchpage.ui
internet/podcasts/podcastinfodialog.ui
internet/podcasts/podcastinfowidget.ui
internet/podcasts/podcastsettingspage.ui
2012-03-05 19:15:45 +01:00
smartplaylists/querysearchpage.ui
smartplaylists/querysortpage.ui
smartplaylists/searchpreview.ui
smartplaylists/searchtermwidget.ui
smartplaylists/wizardfinishpage.ui
2012-08-27 13:24:28 +02:00
songinfo/songkickconcertwidget.ui
songinfo/songinfosettingspage.ui
2010-10-02 15:43:45 +02:00
transcoder/transcodedialog.ui
transcoder/transcodelogdialog.ui
transcoder/transcoderoptionsaac.ui
transcoder/transcoderoptionsdialog.ui
transcoder/transcoderoptionserror.ui
transcoder/transcoderoptionsfdkaac.ui
transcoder/transcoderoptionsflac.ui
transcoder/transcoderoptionsmp3.ui
transcoder/transcoderoptionsopus.ui
transcoder/transcoderoptionsspeex.ui
transcoder/transcoderoptionsvoaac.ui
transcoder/transcoderoptionsvorbis.ui
transcoder/transcoderoptionswma.ui
transcoder/transcodersettingspage.ui
ui/about.ui
ui/addstreamdialog.ui
ui/albumcoverexport.ui
ui/albumcovermanager.ui
ui/albumcoversearcher.ui
2012-01-09 20:08:09 +01:00
ui/appearancesettingspage.ui
ui/backgroundstreamssettingspage.ui
ui/behavioursettingspage.ui
2012-09-26 18:36:47 +02:00
ui/console.ui
ui/coverfromurldialog.ui
ui/edittagdialog.ui
2020-07-26 20:38:14 +02:00
ui/lovedialog.ui
ui/equalizer.ui
ui/globalshortcutgrabber.ui
ui/globalshortcutssettingspage.ui
ui/mainwindow.ui
ui/networkproxysettingspage.ui
2012-12-31 23:37:39 +01:00
ui/networkremotesettingspage.ui
ui/notificationssettingspage.ui
ui/organisedialog.ui
ui/organiseerrordialog.ui
ui/playbacksettingspage.ui
ui/settingsdialog.ui
ui/streamdetailsdialog.ui
ui/trackselectiondialog.ui
widgets/equalizerslider.ui
widgets/errordialog.ui
widgets/fileview.ui
widgets/loginstatewidget.ui
widgets/osdpretty.ui
widgets/trackslider.ui
wiimotedev/wiimotesettingspage.ui
wiimotedev/wiimoteshortcutgrabber.ui
)
set(RESOURCES
../data/data.qrc
)
set(OTHER_SOURCES)
2018-11-17 15:08:37 +01:00
if (HAVE_TRANSLATIONS)
set(LINGUAS "All" CACHE STRING "A space-seperated list of translations to compile in to Clementine, or \"None\".")
if (LINGUAS STREQUAL "All")
# build LANGUAGES from all existing .po files
file(GLOB pofiles translations/*.po)
foreach(pofile ${pofiles})
get_filename_component(lang ${pofile} NAME_WE)
list(APPEND LANGUAGES ${lang})
endforeach(pofile)
else (LINGUAS STREQUAL "All")
if (NOT LINGUAS OR LINGUAS STREQUAL "None")
set (LANGUAGES "")
else (NOT LINGUAS OR LINGUAS STREQUAL "None")
string(REGEX MATCHALL [a-zA-Z_@]+
LANGUAGES ${LINGUAS})
2018-11-17 15:08:37 +01:00
endif (NOT LINGUAS OR LINGUAS STREQUAL "None")
endif (LINGUAS STREQUAL "All")
endif(HAVE_TRANSLATIONS)
2011-01-16 16:11:23 +01:00
option(USE_INSTALL_PREFIX "Look for data in CMAKE_INSTALL_PREFIX" ON)
# Visualisations
optional_source(HAVE_VISUALISATIONS
SOURCES
visualisations/projectmpresetmodel.cpp
visualisations/projectmvisualisation.cpp
visualisations/visualisationcontainer.cpp
visualisations/visualisationoverlay.cpp
visualisations/visualisationselector.cpp
HEADERS
visualisations/projectmpresetmodel.h
visualisations/projectmvisualisation.h
visualisations/visualisationcontainer.h
visualisations/visualisationoverlay.h
visualisations/visualisationselector.h
UI
visualisations/visualisationoverlay.ui
visualisations/visualisationselector.ui
)
# Lastfm
optional_source(HAVE_LIBLASTFM
SOURCES
2011-04-02 16:43:50 +02:00
covers/lastfmcoverprovider.cpp
internet/lastfm/fixlastfm.cpp
internet/lastfm/lastfmcompat.cpp
internet/lastfm/lastfmservice.cpp
internet/lastfm/lastfmsettingspage.cpp
songinfo/lastfmtrackinfoprovider.cpp
songinfo/tagwidget.cpp
HEADERS
2011-04-02 16:43:50 +02:00
covers/lastfmcoverprovider.h
internet/lastfm/lastfmservice.h
internet/lastfm/lastfmsettingspage.h
songinfo/lastfmtrackinfoprovider.h
songinfo/tagwidget.h
UI
internet/lastfm/lastfmsettingspage.ui
)
2018-11-17 15:08:37 +01:00
# Spotify support
optional_source(HAVE_SPOTIFY
SOURCES
2018-11-17 15:08:37 +01:00
internet/spotify/spotifyserver.cpp
internet/spotify/spotifyservice.cpp
internet/spotify/spotifysettingspage.cpp
globalsearch/spotifysearchprovider.cpp
HEADERS
2018-11-17 15:08:37 +01:00
globalsearch/spotifysearchprovider.h
internet/spotify/spotifyserver.h
internet/spotify/spotifyservice.h
internet/spotify/spotifysettingspage.h
UI
internet/spotify/spotifysettingspage.ui
)
2018-11-17 15:08:37 +01:00
if(HAVE_SPOTIFY)
optional_source(HAVE_SPOTIFY_DOWNLOADER
SOURCES
internet/spotify/spotifyblobdownloader.cpp
HEADERS
internet/spotify/spotifyblobdownloader.h
INCLUDE_DIRECTORIES
${CRYPTOPP_INCLUDE_DIRS}
)
endif(HAVE_SPOTIFY)
# Platform specific - OS X
optional_source(APPLE
INCLUDE_DIRECTORIES
${CMAKE_CURRENT_SOURCE_DIR}/../3rdparty/google-breakpad/client/mac/build/Release/Breakpad.framework
SOURCES
core/macfslistener.mm
core/macglobalshortcutbackend.mm
core/mac_startup.mm
2014-03-29 10:06:33 +01:00
engines/osxdevicefinder.cpp
2013-01-16 15:26:35 +01:00
networkremote/bonjour.mm
ui/globalshortcutgrabber.mm
ui/macscreensaver.cpp
ui/macsystemtrayicon.mm
widgets/osd_mac.mm
HEADERS
core/macfslistener.h
core/macglobalshortcutbackend.h
ui/macsystemtrayicon.h
)
2016-12-15 12:36:05 +01:00
if(APPLE)
optional_source(HAVE_LIBMTP
SOURCES
devices/macdevicelister.mm
HEADERS
devices/macdevicelister.h
)
endif()
# Platform specific - Windows
2013-01-17 14:11:15 +01:00
optional_source(WIN32
SOURCES
2014-03-29 13:47:48 +01:00
engines/directsounddevicefinder.cpp
2013-01-17 14:11:15 +01:00
networkremote/tinysvcmdns.cpp
ui/windowsscreensaver.cpp
2013-01-17 14:11:15 +01:00
widgets/osd_win.cpp
INCLUDE_DIRECTORIES
${CMAKE_SOURCE_DIR}/3rdparty/tinysvcmdns
)
# Platform specific - X11
2018-11-17 15:08:37 +01:00
optional_source(HAVE_X11 SOURCES widgets/osd_x11.cpp)
2018-11-17 15:08:37 +01:00
# DBUS and MPRIS - Unix specific
if(UNIX AND HAVE_DBUS)
2010-06-25 18:05:02 +02:00
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/dbus)
# MPRIS 2.0 DBUS interfaces
2015-04-11 22:51:40 +02:00
qt5_add_dbus_adaptor(SOURCES
dbus/org.mpris.MediaPlayer2.Player.xml
core/mpris2.h mpris::Mpris2 core/mpris2_player Mpris2Player)
2015-04-11 22:51:40 +02:00
qt5_add_dbus_adaptor(SOURCES
dbus/org.mpris.MediaPlayer2.xml
core/mpris2.h mpris::Mpris2 core/mpris2_root Mpris2Root)
2015-04-11 22:51:40 +02:00
qt5_add_dbus_adaptor(SOURCES
dbus/org.mpris.MediaPlayer2.TrackList.xml
core/mpris2.h mpris::Mpris2 core/mpris2_tracklist Mpris2TrackList)
# MPRIS 2.1 DBUS interfaces
2015-04-11 22:51:40 +02:00
qt5_add_dbus_adaptor(SOURCES
dbus/org.mpris.MediaPlayer2.Playlists.xml
core/mpris2.h mpris::Mpris2 core/mpris2_playlists Mpris2Playlists)
2010-06-25 18:05:02 +02:00
# org.freedesktop.Notifications DBUS interface
2015-04-11 22:51:40 +02:00
qt5_add_dbus_interface(SOURCES
2010-06-25 18:05:02 +02:00
dbus/org.freedesktop.Notifications.xml
dbus/notification)
# org.gnome.SettingsDaemon interface
2015-04-11 22:51:40 +02:00
qt5_add_dbus_interface(SOURCES
dbus/org.gnome.SettingsDaemon.MediaKeys.xml
dbus/gnomesettingsdaemon)
2019-12-06 05:25:28 +01:00
# org.kde.KGlobalAccel interfaces
# these are taken from the KGlobalAccel sources (LGPL 2.1)
qt5_add_dbus_interface(SOURCES
dbus/org.kde.KGlobalAccel.xml
dbus/kglobalaccel)
qt5_add_dbus_interface(SOURCES
dbus/org.kde.kglobalaccel.Component.xml
dbus/kglobalaccelcomponent)
# org.freedesktop.Avahi.Server interface
add_custom_command(
OUTPUT
${CMAKE_CURRENT_BINARY_DIR}/dbus/avahiserver.cpp
${CMAKE_CURRENT_BINARY_DIR}/dbus/avahiserver.h
COMMAND ${QT_DBUSXML2CPP_EXECUTABLE}
dbus/org.freedesktop.Avahi.Server.xml
-p ${CMAKE_CURRENT_BINARY_DIR}/dbus/avahiserver
-i dbus/metatypes.h
DEPENDS dbus/org.freedesktop.Avahi.Server.xml
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
list(APPEND HEADERS ${CMAKE_CURRENT_BINARY_DIR}/dbus/avahiserver.h)
list(APPEND SOURCES ${CMAKE_CURRENT_BINARY_DIR}/dbus/avahiserver.cpp)
# org.freedesktop.Avahi.EntryGroup interface
add_custom_command(
OUTPUT
${CMAKE_CURRENT_BINARY_DIR}/dbus/avahientrygroup.cpp
${CMAKE_CURRENT_BINARY_DIR}/dbus/avahientrygroup.h
COMMAND ${QT_DBUSXML2CPP_EXECUTABLE}
dbus/org.freedesktop.Avahi.EntryGroup.xml
-p ${CMAKE_CURRENT_BINARY_DIR}/dbus/avahientrygroup
-i dbus/metatypes.h
DEPENDS dbus/org.freedesktop.Avahi.EntryGroup.xml
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
list(APPEND HEADERS ${CMAKE_CURRENT_BINARY_DIR}/dbus/avahientrygroup.h)
list(APPEND SOURCES ${CMAKE_CURRENT_BINARY_DIR}/dbus/avahientrygroup.cpp)
# DeviceKit DBUS interfaces
if(HAVE_DEVICEKIT)
set_source_files_properties(dbus/org.freedesktop.UDisks.xml
PROPERTIES NO_NAMESPACE dbus/udisks)
set_source_files_properties(dbus/org.freedesktop.UDisks.Device.xml
PROPERTIES NO_NAMESPACE dbus/udisksdevice)
2015-04-11 22:51:40 +02:00
qt5_add_dbus_interface(SOURCES
dbus/org.freedesktop.UDisks.xml
dbus/udisks)
2015-04-11 22:51:40 +02:00
qt5_add_dbus_interface(SOURCES
dbus/org.freedesktop.UDisks.Device.xml
dbus/udisksdevice)
endif(HAVE_DEVICEKIT)
if(HAVE_UDISKS2)
set_source_files_properties(dbus/org.freedesktop.DBus.ObjectManager.xml
PROPERTIES NO_NAMESPACE dbus/objectmanager INCLUDE dbus/metatypes.h)
set_source_files_properties(dbus/org.freedesktop.UDisks2.Filesystem.xml
PROPERTIES NO_NAMESPACE dbus/udisks2filesystem INCLUDE dbus/metatypes.h)
set_source_files_properties(dbus/org.freedesktop.UDisks2.Block.xml
PROPERTIES NO_NAMESPACE dbus/udisks2block INCLUDE dbus/metatypes.h)
set_source_files_properties(dbus/org.freedesktop.UDisks2.Drive.xml
PROPERTIES NO_NAMESPACE dbus/udisks2drive INCLUDE dbus/metatypes.h)
2016-05-22 22:44:22 +02:00
set_source_files_properties(dbus/org.freedesktop.UDisks2.Job.xml
PROPERTIES NO_NAMESPACE dbus/udisks2job INCLUDE dbus/metatypes.h)
qt5_add_dbus_interface(SOURCES
dbus/org.freedesktop.DBus.ObjectManager.xml
dbus/objectmanager)
qt5_add_dbus_interface(SOURCES
dbus/org.freedesktop.UDisks2.Filesystem.xml
dbus/udisks2filesystem)
qt5_add_dbus_interface(SOURCES
dbus/org.freedesktop.UDisks2.Block.xml
dbus/udisks2block)
qt5_add_dbus_interface(SOURCES
dbus/org.freedesktop.UDisks2.Drive.xml
dbus/udisks2drive)
qt5_add_dbus_interface(SOURCES
2016-05-22 22:44:22 +02:00
dbus/org.freedesktop.UDisks2.Job.xml
dbus/udisks2job)
endif(HAVE_UDISKS2)
# Wiimotedev interface classes
if(ENABLE_WIIMOTEDEV)
2015-04-11 22:51:40 +02:00
qt5_add_dbus_interface(SOURCES
dbus/org.wiimotedev.deviceEvents.xml
dbus/wiimotedev)
endif(ENABLE_WIIMOTEDEV)
2018-11-17 15:08:37 +01:00
endif(UNIX AND HAVE_DBUS)
optional_source(HAVE_DBUS
SOURCES
core/mpris.cpp
core/mpris2.cpp
networkremote/avahi.cpp
ui/dbusscreensaver.cpp
HEADERS
core/mpris.h
core/mpris2.h
)
optional_source(HAVE_WIIMOTEDEV
SOURCES
wiimotedev/shortcuts.cpp
wiimotedev/wiimotesettingspage.cpp
wiimotedev/wiimoteshortcutgrabber.cpp
HEADERS
wiimotedev/shortcuts.h
wiimotedev/wiimotesettingspage.h
wiimotedev/wiimoteshortcutgrabber.h
)
optional_source(HAVE_DEVICEKIT
SOURCES devices/devicekitlister.cpp
HEADERS devices/devicekitlister.h
)
optional_source(HAVE_UDISKS2
SOURCES devices/udisks2lister.cpp
HEADERS devices/udisks2lister.h
)
# Libgpod device backend
optional_source(HAVE_LIBGPOD
INCLUDE_DIRECTORIES ${LIBGPOD_INCLUDE_DIRS}
SOURCES
devices/gpoddevice.cpp
devices/gpodloader.cpp
HEADERS
devices/gpoddevice.h
devices/gpodloader.h
)
# GIO device backend
optional_source(HAVE_GIO
INCLUDE_DIRECTORIES ${GIO_INCLUDE_DIRS}
SOURCES devices/giolister.cpp
HEADERS devices/giolister.h
)
# CDIO backend and device
optional_source(HAVE_AUDIOCD
SOURCES
devices/cddadevice.cpp
devices/cddalister.cpp
devices/cddasongloader.cpp
ripper/ripcddialog.cpp
ripper/ripper.cpp
HEADERS
devices/cddadevice.h
devices/cddalister.h
devices/cddasongloader.h
ripper/ripcddialog.h
ripper/ripper.h
UI
ripper/ripcddialog.ui
)
2010-08-14 17:57:05 +02:00
# mtp device
optional_source(HAVE_LIBMTP
INCLUDE_DIRECTORIES ${LIBMTP_INCLUDE_DIRS}
SOURCES
devices/mtpconnection.cpp
devices/mtpdevice.cpp
devices/mtploader.cpp
HEADERS
devices/mtpdevice.h
devices/mtploader.h
)
2010-08-14 17:57:05 +02:00
# Moodbar support
optional_source(HAVE_MOODBAR
SOURCES
moodbar/moodbarbuilder.cpp
moodbar/moodbarcontroller.cpp
moodbar/moodbaritemdelegate.cpp
moodbar/moodbarloader.cpp
moodbar/moodbarpipeline.cpp
moodbar/moodbarproxystyle.cpp
moodbar/moodbarrenderer.cpp
HEADERS
moodbar/moodbarcontroller.h
moodbar/moodbaritemdelegate.h
moodbar/moodbarloader.h
moodbar/moodbarpipeline.h
moodbar/moodbarproxystyle.h
)
# Google Drive support
optional_source(HAVE_GOOGLE_DRIVE
SOURCES
internet/googledrive/googledriveclient.cpp
internet/googledrive/googledriveservice.cpp
internet/googledrive/googledrivesettingspage.cpp
internet/googledrive/googledriveurlhandler.cpp
HEADERS
internet/googledrive/googledriveclient.h
internet/googledrive/googledriveservice.h
internet/googledrive/googledrivesettingspage.h
internet/googledrive/googledriveurlhandler.h
UI
internet/googledrive/googledrivesettingspage.ui
)
# Dropbox support
optional_source(HAVE_DROPBOX
SOURCES
internet/dropbox/dropboxservice.cpp
internet/dropbox/dropboxsettingspage.cpp
internet/dropbox/dropboxurlhandler.cpp
HEADERS
internet/dropbox/dropboxservice.h
internet/dropbox/dropboxsettingspage.h
internet/dropbox/dropboxurlhandler.h
2012-11-29 18:19:41 +01:00
UI
internet/dropbox/dropboxsettingspage.ui
)
# Skydrive support
optional_source(HAVE_SKYDRIVE
SOURCES
internet/skydrive/skydriveservice.cpp
internet/skydrive/skydrivesettingspage.cpp
internet/skydrive/skydriveurlhandler.cpp
HEADERS
internet/skydrive/skydriveservice.h
internet/skydrive/skydrivesettingspage.h
internet/skydrive/skydriveurlhandler.h
2014-03-30 07:35:27 +02:00
UI
internet/skydrive/skydrivesettingspage.ui
)
2013-02-12 13:54:19 +01:00
# Box support
optional_source(HAVE_BOX
SOURCES
internet/box/boxservice.cpp
internet/box/boxsettingspage.cpp
internet/box/boxurlhandler.cpp
2013-02-12 13:54:19 +01:00
HEADERS
internet/box/boxservice.h
internet/box/boxsettingspage.h
internet/box/boxurlhandler.h
2013-02-12 13:54:19 +01:00
UI
internet/box/boxsettingspage.ui
2013-02-12 13:54:19 +01:00
)
2014-06-03 14:33:07 +02:00
# Seafile support
optional_source(HAVE_SEAFILE
SOURCES
internet/seafile/seafileservice.cpp
internet/seafile/seafilesettingspage.cpp
internet/seafile/seafileurlhandler.cpp
internet/seafile/seafiletree.cpp
2014-06-03 14:33:07 +02:00
HEADERS
internet/seafile/seafileservice.h
internet/seafile/seafilesettingspage.h
internet/seafile/seafileurlhandler.h
internet/seafile/seafiletree.h
2014-06-03 14:33:07 +02:00
UI
internet/seafile/seafilesettingspage.ui
2014-06-03 14:33:07 +02:00
)
# Pulse audio integration
optional_source(HAVE_LIBPULSE
INCLUDE_DIRECTORIES
${LIBPULSE_INCLUDE_DIRS}
SOURCES
engines/pulsedevicefinder.cpp
2014-03-07 18:58:50 +01:00
)
2018-06-13 10:56:42 +02:00
# ALSA integration
optional_source(HAVE_ALSA
SOURCES
engines/alsadevicefinder.cpp
)
# Hack to add Clementine to the Unity system tray whitelist
optional_source(LINUX
SOURCES core/ubuntuunityhack.cpp
HEADERS core/ubuntuunityhack.h
)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version.h.in
${CMAKE_CURRENT_BINARY_DIR}/version.h)
2015-04-11 22:51:40 +02:00
qt5_wrap_cpp(MOC ${HEADERS})
qt5_wrap_ui(UIC ${UI})
qt5_add_resources(QRC ${RESOURCES})
2018-11-17 15:08:37 +01:00
if(HAVE_TRANSLATIONS)
add_pot(POT
${CMAKE_CURRENT_SOURCE_DIR}/translations/header
${CMAKE_CURRENT_SOURCE_DIR}/translations/translations.pot
${SOURCES} ${MOC} ${UIC} ${OTHER_SOURCES}
../data/oauthsuccess.html
)
add_po(PO clementine_
LANGUAGES ${LANGUAGES}
DIRECTORY translations
)
endif(HAVE_TRANSLATIONS)
2010-04-06 21:18:14 +02:00
add_library(clementine_lib STATIC
${SOURCES}
${MOC}
${UIC}
${QRC}
${POT}
${PO}
${OTHER_UIC_SOURCES}
)
2010-03-01 02:47:50 +01:00
target_link_libraries(clementine_lib
libclementine-common
libclementine-tagreader
2013-01-03 21:40:47 +01:00
libclementine-remote
2018-12-05 18:16:34 +01:00
${TAGLIB_LIBRARIES}
2015-04-11 22:51:40 +02:00
${MYGPOQT5_LIBRARIES}
${CHROMAPRINT_LIBRARIES}
${GOBJECT_LIBRARIES}
${GLIB_LIBRARIES}
${GIO_LIBRARIES}
2019-01-02 16:02:34 +01:00
${QT_LIBRARIES}
${GSTREAMER_BASE_LIBRARIES}
${GSTREAMER_LIBRARIES}
${GSTREAMER_APP_LIBRARIES}
${GSTREAMER_TAG_LIBRARIES}
${GSTREAMER_PBUTILS_LIBRARIES}
${QTSINGLEAPPLICATION_LIBRARIES}
${QTSINGLECOREAPPLICATION_LIBRARIES}
${QTIOCOMPRESSOR_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
${SQLITE_LIBRARIES}
2018-12-05 18:16:34 +01:00
Qocoa
2018-12-05 18:16:34 +01:00
z
)
2019-10-16 20:42:21 +02:00
link_directories(
${CHROMAPRINT_LIBRARY_DIRS}
${GSTREAMER_APP_LIBRARY_DIRS}
${GLEW_LIBRARY_DIRS}
)
if(HAVE_VISUALISATIONS)
target_link_libraries(clementine_lib ${LIBPROJECTM_LIBRARIES})
endif(HAVE_VISUALISATIONS)
if(HAVE_LIBLASTFM)
2015-04-15 18:26:09 +02:00
target_link_libraries(clementine_lib ${LASTFM5_LIBRARIES})
endif(HAVE_LIBLASTFM)
if(HAVE_LIBGPOD)
target_link_libraries(clementine_lib ${LIBGPOD_LIBRARIES})
endif(HAVE_LIBGPOD)
2010-07-17 23:29:41 +02:00
if(HAVE_GIO)
target_link_libraries(clementine_lib ${GIO_LIBRARIES})
endif(HAVE_GIO)
if(HAVE_AUDIOCD)
target_link_libraries(clementine_lib ${CDIO_LIBRARIES})
endif(HAVE_AUDIOCD)
if(HAVE_MOODBAR)
target_link_libraries(clementine_lib gstmoodbar)
endif()
if(HAVE_LIBMTP)
2010-08-14 17:57:05 +02:00
target_link_libraries(clementine_lib ${LIBMTP_LIBRARIES})
endif(HAVE_LIBMTP)
if(HAVE_BREAKPAD)
if (LINUX)
target_link_libraries(clementine_lib breakpad)
elseif (APPLE)
add_dependencies(clementine_lib breakpad)
target_link_libraries(clementine_lib
"-F${CMAKE_CURRENT_SOURCE_DIR}/../3rdparty/google-breakpad/client/mac/build/Release"
"-framework Breakpad")
endif (LINUX)
endif(HAVE_BREAKPAD)
2018-11-17 15:08:37 +01:00
if(HAVE_SPOTIFY)
target_link_libraries(clementine_lib clementine-spotifyblob-messages)
endif(HAVE_SPOTIFY)
if(HAVE_SPOTIFY_DOWNLOADER)
target_link_libraries(clementine_lib
${CRYPTOPP_LIBRARIES}
)
link_directories(${CRYPTOPP_LIBRARY_DIRS})
endif(HAVE_SPOTIFY_DOWNLOADER)
if(HAVE_LIBPULSE)
target_link_libraries(clementine_lib ${LIBPULSE_LIBRARIES})
endif()
2018-06-13 10:56:42 +02:00
if(HAVE_ALSA)
target_link_libraries(clementine_lib ${ALSA_LIBRARIES})
endif(HAVE_ALSA)
if (APPLE)
2010-03-01 02:47:50 +01:00
target_link_libraries(clementine_lib
2016-12-15 19:45:51 +01:00
"-framework AppKit"
"-framework Carbon"
"-framework CoreAudio"
"-framework DiskArbitration"
"-framework Foundation"
"-framework IOKit"
"-framework ScriptingBridge"
)
target_link_libraries(clementine_lib ${SPMEDIAKEYTAP_LIBRARIES})
if (HAVE_SPARKLE)
include_directories(${SPARKLE}/Headers)
2010-12-22 16:41:30 +01:00
target_link_libraries(clementine_lib ${SPARKLE})
endif (HAVE_SPARKLE)
else (APPLE)
target_link_libraries(clementine_lib ${QXT_LIBRARIES})
endif (APPLE)
2010-03-01 02:47:50 +01:00
set(3RDPARTY_SQLITE_LIBRARY qsqlite)
target_link_libraries(clementine_lib qsqlite)
if (WIN32)
target_link_libraries(clementine_lib
2018-11-17 15:08:37 +01:00
protobuf
${ZLIB_LIBRARIES}
2013-01-17 14:11:15 +01:00
tinysvcmdns
2014-03-29 13:47:48 +01:00
dsound
)
endif (WIN32)
if (UNIX AND NOT APPLE)
# Hack: the Gold linker pays attention to the order that libraries are
# specified on the link line. -lX11 and -ldl are provided earlier in the link
# command but they're actually used by libraries that appear after them, so
# they end up getting ignored. This appends them to the very end of the link
# line, ensuring they're always used.
2018-11-17 15:08:37 +01:00
if (FREEBSD)
target_link_libraries(clementine_lib ${X11_X11_LIB})
else ()
target_link_libraries(clementine_lib ${X11_X11_LIB} ${CMAKE_DL_LIBS})
endif ()
endif ()
add_dependencies(clementine_lib qtsingleapplication)
###############################################################################
set(EXECUTABLE_OUTPUT_PATH ..)
# Show the console window in debug mode on Windows
if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug" AND NOT ENABLE_WIN32_CONSOLE)
set(CLEMENTINE-WIN32-FLAG WIN32)
endif (NOT CMAKE_BUILD_TYPE STREQUAL "Debug" AND NOT ENABLE_WIN32_CONSOLE)
# resource file for windows
if(WIN32)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/../dist/windows/windres.rc.in
${CMAKE_CURRENT_BINARY_DIR}/windres.rc)
set(CLEMENTINE-WIN32-RESOURCES windres.rc)
endif(WIN32)
2010-03-01 02:47:50 +01:00
add_executable(clementine
2010-05-05 18:56:35 +02:00
MACOSX_BUNDLE
${CLEMENTINE-WIN32-FLAG}
2010-05-05 18:56:35 +02:00
${CLEMENTINE-WIN32-RESOURCES}
main.cpp
2010-03-01 02:47:50 +01:00
)
2018-11-17 15:08:37 +01:00
if (FREEBSD)
target_link_libraries(clementine execinfo)
2018-11-17 15:08:37 +01:00
endif (FREEBSD)
target_link_libraries(clementine
clementine_lib
)
# macdeploy.py relies on the blob being built first.
if(HAVE_SPOTIFY_BLOB)
add_dependencies(clementine clementine-spotifyblob)
endif(HAVE_SPOTIFY_BLOB)
2012-01-09 12:24:34 +01:00
add_dependencies(clementine clementine-tagreader)
set_target_properties(clementine PROPERTIES
MACOSX_BUNDLE_INFO_PLIST "../dist/Info.plist"
)
2010-04-15 21:09:39 +02:00
if (APPLE)
2010-06-07 21:01:35 +02:00
install(FILES ../dist/clementine.icns
DESTINATION "${CMAKE_BINARY_DIR}/clementine.app/Contents/Resources")
install(FILES ../dist/qt.conf
DESTINATION "${CMAKE_BINARY_DIR}/clementine.app/Contents/Resources")
install(FILES ../dist/sparkle_pub.pem
DESTINATION "${CMAKE_BINARY_DIR}/clementine.app/Contents/Resources")
install(FILES ../dist/cacert.pem
DESTINATION "${CMAKE_BINARY_DIR}/clementine.app/Contents/Resources")
2010-06-07 21:01:35 +02:00
if (HAVE_BREAKPAD)
install(DIRECTORY
${CMAKE_CURRENT_SOURCE_DIR}/../3rdparty/google-breakpad/client/mac/build/Release/Breakpad.framework
DESTINATION "${CMAKE_BINARY_DIR}/clementine.app/Contents/Frameworks"
PATTERN "*.h" EXCLUDE
PATTERN "Inspector" PERMISSIONS OWNER_EXECUTE OWNER_READ
GROUP_EXECUTE GROUP_READ
WORLD_READ WORLD_EXECUTE
PATTERN "crash_report_sender" PERMISSIONS OWNER_EXECUTE OWNER_READ
GROUP_EXECUTE GROUP_READ
WORLD_READ WORLD_EXECUTE)
endif (HAVE_BREAKPAD)
2018-11-17 15:08:37 +01:00
if (USE_BUNDLE)
add_custom_command(TARGET clementine
POST_BUILD
COMMAND
${CMAKE_CURRENT_SOURCE_DIR}/../dist/macdeploy.py ${PROJECT_BINARY_DIR}/clementine.app -f
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
)
endif(USE_BUNDLE)
2011-01-18 15:02:51 +01:00
add_custom_command(OUTPUT ${PROJECT_BINARY_DIR}/clementine.breakpad
COMMAND
${CMAKE_CURRENT_SOURCE_DIR}/../3rdparty/google-breakpad/tools/mac/dump_syms/build/Release/dump_syms
-a i386 ${PROJECT_BINARY_DIR}/clementine.app/Contents/MacOS/clementine
> ${PROJECT_BINARY_DIR}/clementine.breakpad
DEPENDS clementine)
add_custom_target(clementine-breakpad
DEPENDS ${PROJECT_BINARY_DIR}/clementine.breakpad)
if (APPLE_DEVELOPER_ID)
2013-07-10 20:19:28 +02:00
add_custom_target(
sign
COMMAND
${PROJECT_SOURCE_DIR}/dist/codesign.py ${APPLE_DEVELOPER_ID} ${PROJECT_BINARY_DIR}/clementine.app
2013-12-12 16:24:02 +01:00
DEPENDS clementine
VERBATIM
)
endif()
2011-01-14 15:16:56 +01:00
add_custom_command(
OUTPUT ${PROJECT_BINARY_DIR}/clementine-${CLEMENTINE_VERSION_SPARKLE}.dmg
2015-12-13 06:23:35 +01:00
COMMAND ${CMAKE_COMMAND} -E remove -f ${PROJECT_BINARY_DIR}/clementine-${CLEMENTINE_VERSION_SPARKLE}.dmg
2011-12-02 17:58:16 +01:00
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/../dist/create-dmg.sh ${PROJECT_BINARY_DIR}/clementine.app
2011-01-13 13:34:14 +01:00
COMMAND ${CMAKE_COMMAND} -E rename
${PROJECT_BINARY_DIR}/clementine.dmg
${PROJECT_BINARY_DIR}/clementine-${CLEMENTINE_VERSION_SPARKLE}.dmg
DEPENDS clementine
2010-06-07 22:39:06 +02:00
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
)
2011-01-14 15:16:56 +01:00
add_custom_target(dmg
DEPENDS ${PROJECT_BINARY_DIR}/clementine-${CLEMENTINE_VERSION_SPARKLE}.dmg)
2010-06-07 21:01:35 +02:00
else (APPLE)
install(TARGETS clementine
RUNTIME DESTINATION bin
)
endif (APPLE)