2010-02-28 18:28:56 +01:00
|
|
|
|
2011-02-04 15:35:25 +01:00
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Woverloaded-virtual -Wall -Wno-sign-compare")
|
2010-03-24 17:45:44 +01:00
|
|
|
|
2011-03-29 20:51:16 +02:00
|
|
|
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)
|
2011-02-04 13:07:00 +01:00
|
|
|
|
2010-08-01 20:09:38 +02:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
|
2010-06-09 00:39:31 +02:00
|
|
|
include_directories(../3rdparty/gmock/gtest/include)
|
2010-09-25 16:55:36 +02:00
|
|
|
if(WIN32)
|
|
|
|
include_directories(../3rdparty/qtwin)
|
|
|
|
endif(WIN32)
|
2010-04-15 14:39:34 +02:00
|
|
|
|
2011-02-19 19:24:11 +01:00
|
|
|
include_directories(${CMAKE_BINARY_DIR})
|
2010-07-10 22:21:06 +02:00
|
|
|
include_directories(${GLIB_INCLUDE_DIRS})
|
|
|
|
include_directories(${LIBXML_INCLUDE_DIRS})
|
|
|
|
include_directories(${GOBJECT_INCLUDE_DIRS})
|
|
|
|
include_directories(${LIBPROJECTM_INCLUDE_DIRS})
|
2010-07-10 22:33:28 +02:00
|
|
|
include_directories(${QTSINGLEAPPLICATION_INCLUDE_DIRS})
|
2010-07-11 14:02:30 +02:00
|
|
|
include_directories(${QTIOCOMPRESSOR_INCLUDE_DIRS})
|
2010-07-24 14:35:21 +02:00
|
|
|
include_directories(${QXT_INCLUDE_DIRS})
|
2010-10-02 18:23:33 +02:00
|
|
|
include_directories(${ECHONEST_INCLUDE_DIRS})
|
2010-06-17 16:45:31 +02:00
|
|
|
|
2010-11-21 16:13:26 +01:00
|
|
|
if(HAVE_LIBINDICATE)
|
|
|
|
link_directories(${INDICATEQT_LIBRARY_DIRS})
|
|
|
|
include_directories(${INDICATEQT_INCLUDE_DIRS})
|
|
|
|
endif(HAVE_LIBINDICATE)
|
|
|
|
|
2010-12-19 16:10:26 +01:00
|
|
|
if(HAVE_LIBLASTFM)
|
|
|
|
include_directories(${LASTFM_INCLUDE_DIRS})
|
|
|
|
endif(HAVE_LIBLASTFM)
|
|
|
|
|
2010-12-31 19:13:28 +01:00
|
|
|
if(HAVE_SCRIPTING_PYTHON)
|
|
|
|
include_directories(${PYTHON_INCLUDE_DIRS})
|
2011-05-15 15:41:54 +02:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/3rdparty/pythonqt/generated_cpp)
|
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/3rdparty/pythonqt/src)
|
2010-12-31 19:13:28 +01:00
|
|
|
endif(HAVE_SCRIPTING_PYTHON)
|
|
|
|
|
2011-03-23 22:53:24 +01:00
|
|
|
if(HAVE_BREAKPAD)
|
|
|
|
include_directories(../3rdparty/google-breakpad)
|
|
|
|
endif(HAVE_BREAKPAD)
|
|
|
|
|
2011-04-07 15:38:27 +02:00
|
|
|
if(HAVE_REMOTE)
|
|
|
|
include_directories(${PJSIP_INCLUDE_DIRS})
|
|
|
|
endif(HAVE_REMOTE)
|
|
|
|
|
2010-06-09 00:39:31 +02:00
|
|
|
cmake_policy(SET CMP0011 NEW)
|
|
|
|
include(../cmake/ParseArguments.cmake)
|
|
|
|
include(../cmake/Translations.cmake)
|
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
analyzers/analyzerbase.cpp
|
|
|
|
analyzers/analyzercontainer.cpp
|
|
|
|
analyzers/baranalyzer.cpp
|
|
|
|
analyzers/blockanalyzer.cpp
|
|
|
|
analyzers/boomanalyzer.cpp
|
|
|
|
analyzers/sonogram.cpp
|
|
|
|
analyzers/turbine.cpp
|
|
|
|
|
2010-12-03 14:53:43 +01:00
|
|
|
core/backgroundstreams.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
core/backgroundthread.cpp
|
|
|
|
core/commandlineoptions.cpp
|
2011-03-23 22:53:24 +01:00
|
|
|
core/crashreporting.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
core/database.cpp
|
2010-07-31 18:12:16 +02:00
|
|
|
core/deletefiles.cpp
|
2010-08-03 21:29:49 +02:00
|
|
|
core/encoding.cpp
|
2010-07-19 21:56:29 +02:00
|
|
|
core/filesystemmusicstorage.cpp
|
2010-08-28 20:48:16 +02:00
|
|
|
core/fht.cpp
|
2010-10-17 18:03:49 +02:00
|
|
|
core/fmpsparser.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
core/globalshortcutbackend.cpp
|
|
|
|
core/globalshortcuts.cpp
|
|
|
|
core/gnomeglobalshortcutbackend.cpp
|
2011-04-22 18:50:29 +02:00
|
|
|
core/logging.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
core/mergedproxymodel.cpp
|
2010-07-19 21:56:29 +02:00
|
|
|
core/musicstorage.cpp
|
2010-10-16 19:20:54 +02:00
|
|
|
core/network.cpp
|
2010-12-25 18:25:29 +01:00
|
|
|
core/networkproxyfactory.cpp
|
2010-06-24 20:33:38 +02:00
|
|
|
core/organise.cpp
|
|
|
|
core/organiseformat.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
core/player.cpp
|
|
|
|
core/qxtglobalshortcutbackend.cpp
|
|
|
|
core/scopedtransaction.cpp
|
|
|
|
core/settingsprovider.cpp
|
|
|
|
core/song.cpp
|
2010-06-15 15:24:17 +02:00
|
|
|
core/songloader.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
core/stylesheetloader.cpp
|
2010-06-23 15:21:30 +02:00
|
|
|
core/taskmanager.cpp
|
2011-04-28 17:10:28 +02:00
|
|
|
core/urlhandler.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
core/utilities.cpp
|
|
|
|
|
2011-04-02 15:34:06 +02:00
|
|
|
covers/albumcoverfetcher.cpp
|
|
|
|
covers/albumcoverfetchersearch.cpp
|
|
|
|
covers/albumcoverloader.cpp
|
|
|
|
covers/artloader.cpp
|
|
|
|
covers/coverprovider.cpp
|
|
|
|
covers/coverproviders.cpp
|
|
|
|
covers/kittenloader.cpp
|
|
|
|
|
2010-06-26 01:38:21 +02:00
|
|
|
devices/connecteddevice.cpp
|
2010-07-04 01:00:07 +02:00
|
|
|
devices/devicedatabasebackend.cpp
|
2010-06-26 00:36:21 +02:00
|
|
|
devices/devicelister.cpp
|
2010-06-26 14:41:18 +02:00
|
|
|
devices/devicemanager.cpp
|
2010-07-04 17:01:24 +02:00
|
|
|
devices/deviceproperties.cpp
|
2010-07-24 20:31:05 +02:00
|
|
|
devices/devicestatefiltermodel.cpp
|
2010-07-03 23:05:55 +02:00
|
|
|
devices/deviceview.cpp
|
2010-06-26 01:38:21 +02:00
|
|
|
devices/filesystemdevice.cpp
|
2010-06-25 21:04:10 +02:00
|
|
|
|
2010-06-09 00:39:31 +02:00
|
|
|
engines/enginebase.cpp
|
2010-12-26 14:01:35 +01:00
|
|
|
engines/gstengine.cpp
|
|
|
|
engines/gstenginepipeline.cpp
|
|
|
|
engines/gstelementdeleter.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
|
|
|
|
library/groupbydialog.cpp
|
|
|
|
library/library.cpp
|
|
|
|
library/librarybackend.cpp
|
|
|
|
library/libraryconfig.cpp
|
|
|
|
library/librarydirectorymodel.cpp
|
|
|
|
library/libraryfilterwidget.cpp
|
|
|
|
library/librarymodel.cpp
|
|
|
|
library/libraryplaylistitem.cpp
|
|
|
|
library/libraryquery.cpp
|
|
|
|
library/libraryview.cpp
|
2010-10-01 21:27:01 +02:00
|
|
|
library/libraryviewcontainer.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
library/librarywatcher.cpp
|
2010-08-03 20:57:17 +02:00
|
|
|
library/sqlrow.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
|
2011-03-12 22:19:41 +01:00
|
|
|
musicbrainz/fingerprinter.cpp
|
|
|
|
musicbrainz/musicbrainzclient.cpp
|
|
|
|
musicbrainz/musicdnsclient.cpp
|
|
|
|
musicbrainz/tagfetcher.cpp
|
|
|
|
|
2010-11-20 21:00:40 +01:00
|
|
|
playlist/dynamicplaylistcontrols.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
playlist/playlist.cpp
|
|
|
|
playlist/playlistbackend.cpp
|
|
|
|
playlist/playlistcontainer.cpp
|
|
|
|
playlist/playlistdelegates.cpp
|
|
|
|
playlist/playlistfilter.cpp
|
|
|
|
playlist/playlistheader.cpp
|
|
|
|
playlist/playlistitem.cpp
|
|
|
|
playlist/playlistmanager.cpp
|
|
|
|
playlist/playlistsequence.cpp
|
|
|
|
playlist/playlisttabbar.cpp
|
|
|
|
playlist/playlistundocommands.cpp
|
|
|
|
playlist/playlistview.cpp
|
2011-04-28 19:50:45 +02:00
|
|
|
playlist/specialplaylisttype.cpp
|
2010-07-11 17:37:40 +02:00
|
|
|
playlist/queue.cpp
|
|
|
|
playlist/queuemanager.cpp
|
2010-06-15 20:24:08 +02:00
|
|
|
playlist/songloaderinserter.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
playlist/songplaylistitem.cpp
|
|
|
|
|
|
|
|
playlistparsers/asxparser.cpp
|
2010-07-10 20:39:41 +02:00
|
|
|
playlistparsers/asxiniparser.cpp
|
2010-12-23 22:13:43 +01:00
|
|
|
playlistparsers/cueparser.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
playlistparsers/m3uparser.cpp
|
|
|
|
playlistparsers/parserbase.cpp
|
|
|
|
playlistparsers/playlistparser.cpp
|
|
|
|
playlistparsers/plsparser.cpp
|
|
|
|
playlistparsers/xmlparser.cpp
|
|
|
|
playlistparsers/xspfparser.cpp
|
|
|
|
|
2010-11-23 23:36:00 +01:00
|
|
|
radio/icecastbackend.cpp
|
|
|
|
radio/icecastfilterwidget.cpp
|
|
|
|
radio/icecastmodel.cpp
|
2010-11-22 17:57:26 +01:00
|
|
|
radio/icecastservice.cpp
|
2010-11-26 16:16:48 +01:00
|
|
|
radio/jamendodynamicplaylist.cpp
|
2010-11-25 23:04:23 +01:00
|
|
|
radio/jamendoplaylistitem.cpp
|
2010-11-23 18:38:39 +01:00
|
|
|
radio/jamendoservice.cpp
|
2010-06-09 00:56:31 +02:00
|
|
|
radio/magnatuneconfig.cpp
|
2010-06-09 16:02:26 +02:00
|
|
|
radio/magnatunedownloaddialog.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
radio/magnatuneplaylistitem.cpp
|
|
|
|
radio/magnatuneservice.cpp
|
2011-04-28 17:10:28 +02:00
|
|
|
radio/magnatuneurlhandler.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
radio/radiomodel.cpp
|
|
|
|
radio/radioplaylistitem.cpp
|
|
|
|
radio/radioservice.cpp
|
|
|
|
radio/radioview.cpp
|
|
|
|
radio/radioviewcontainer.cpp
|
|
|
|
radio/savedradio.cpp
|
|
|
|
radio/somafmservice.cpp
|
2011-04-28 17:10:28 +02:00
|
|
|
radio/somafmurlhandler.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
|
2011-05-31 16:36:28 +02:00
|
|
|
resolvers/libraryresolver.cpp
|
|
|
|
|
2011-01-19 00:10:22 +01:00
|
|
|
scripting/installscriptdialog.cpp
|
2011-01-02 19:44:45 +01:00
|
|
|
scripting/languageengine.cpp
|
|
|
|
scripting/script.cpp
|
2011-01-17 21:01:16 +01:00
|
|
|
scripting/scriptarchive.cpp
|
2011-01-02 19:44:45 +01:00
|
|
|
scripting/scriptdialog.cpp
|
2011-04-22 20:53:26 +02:00
|
|
|
scripting/scriptdialoglist.cpp
|
2011-01-17 21:01:16 +01:00
|
|
|
scripting/scriptinfo.cpp
|
2011-01-02 19:44:45 +01:00
|
|
|
scripting/scriptinterface.cpp
|
|
|
|
scripting/scriptmanager.cpp
|
|
|
|
scripting/uiinterface.cpp
|
|
|
|
|
2010-11-18 21:19:33 +01:00
|
|
|
smartplaylists/generator.cpp
|
|
|
|
smartplaylists/generatorinserter.cpp
|
|
|
|
smartplaylists/querygenerator.cpp
|
2010-11-18 22:13:43 +01:00
|
|
|
smartplaylists/querywizardplugin.cpp
|
2010-11-18 21:19:33 +01:00
|
|
|
smartplaylists/search.cpp
|
|
|
|
smartplaylists/searchpreview.cpp
|
|
|
|
smartplaylists/searchterm.cpp
|
|
|
|
smartplaylists/searchtermwidget.cpp
|
|
|
|
smartplaylists/wizard.cpp
|
2010-11-18 22:13:43 +01:00
|
|
|
smartplaylists/wizardplugin.cpp
|
2010-10-24 17:38:12 +02:00
|
|
|
|
2010-10-02 18:23:33 +02:00
|
|
|
songinfo/artistinfoview.cpp
|
2010-10-07 23:06:26 +02:00
|
|
|
songinfo/collapsibleinfoheader.cpp
|
2010-10-02 18:23:33 +02:00
|
|
|
songinfo/collapsibleinfopane.cpp
|
2010-10-10 23:45:01 +02:00
|
|
|
songinfo/echonestbiographies.cpp
|
|
|
|
songinfo/echonestimages.cpp
|
2010-10-02 15:43:45 +02:00
|
|
|
songinfo/lyricsettings.cpp
|
|
|
|
songinfo/songinfobase.cpp
|
2010-10-10 18:09:20 +02:00
|
|
|
songinfo/songinfofetcher.cpp
|
2010-10-10 18:46:35 +02:00
|
|
|
songinfo/songinfoprovider.cpp
|
2010-10-16 16:11:23 +02:00
|
|
|
songinfo/songinfotextview.cpp
|
2010-10-10 18:09:20 +02:00
|
|
|
songinfo/songinfoview.cpp
|
2010-10-10 19:59:23 +02:00
|
|
|
songinfo/songplaystats.cpp
|
2010-10-10 18:09:20 +02:00
|
|
|
songinfo/ultimatelyricsprovider.cpp
|
2010-10-02 15:43:45 +02:00
|
|
|
songinfo/ultimatelyricsreader.cpp
|
|
|
|
|
2011-05-31 16:36:28 +02:00
|
|
|
suggesters/lastfmsuggester.cpp
|
|
|
|
|
2010-12-26 14:01:35 +01:00
|
|
|
transcoder/transcodedialog.cpp
|
|
|
|
transcoder/transcoder.cpp
|
2011-04-17 01:04:15 +02:00
|
|
|
transcoder/transcoderoptionsaac.cpp
|
|
|
|
transcoder/transcoderoptionsdialog.cpp
|
|
|
|
transcoder/transcoderoptionsflac.cpp
|
|
|
|
transcoder/transcoderoptionsmp3.cpp
|
|
|
|
transcoder/transcoderoptionsspeex.cpp
|
|
|
|
transcoder/transcoderoptionsvorbis.cpp
|
|
|
|
transcoder/transcoderoptionswma.cpp
|
2010-12-26 14:01:35 +01:00
|
|
|
|
2010-06-09 00:39:31 +02:00
|
|
|
ui/about.cpp
|
|
|
|
ui/addstreamdialog.cpp
|
2011-01-24 01:09:57 +01:00
|
|
|
ui/albumcoverchoicecontroller.cpp
|
2011-04-27 21:10:37 +02:00
|
|
|
ui/albumcovermanager.cpp
|
|
|
|
ui/albumcovermanagerlist.cpp
|
|
|
|
ui/albumcoversearcher.cpp
|
2011-01-23 21:24:17 +01:00
|
|
|
ui/coverfromurldialog.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
ui/edittagdialog.cpp
|
|
|
|
ui/equalizer.cpp
|
2010-10-10 20:57:23 +02:00
|
|
|
ui/flowlayout.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
ui/globalshortcutgrabber.cpp
|
2010-06-23 18:27:23 +02:00
|
|
|
ui/globalshortcutsconfig.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
ui/iconloader.cpp
|
|
|
|
ui/mainwindow.cpp
|
2010-06-24 18:26:49 +02:00
|
|
|
ui/organisedialog.cpp
|
2010-08-14 13:51:50 +02:00
|
|
|
ui/organiseerrordialog.cpp
|
2010-06-22 13:52:55 +02:00
|
|
|
ui/qtsystemtrayicon.cpp
|
2010-10-12 16:44:33 +02:00
|
|
|
ui/screensaver.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
ui/settingsdialog.cpp
|
|
|
|
ui/systemtrayicon.cpp
|
2011-01-21 00:42:28 +01:00
|
|
|
ui/trackselectiondialog.cpp
|
2011-01-16 01:39:51 +01:00
|
|
|
ui/windows7thumbbar.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
|
|
|
|
widgets/autoexpandingtreeview.cpp
|
|
|
|
widgets/busyindicator.cpp
|
2011-01-25 20:15:51 +01:00
|
|
|
widgets/clickablelabel.cpp
|
2011-04-28 22:48:53 +02:00
|
|
|
widgets/didyoumean.cpp
|
2010-09-26 18:00:28 +02:00
|
|
|
widgets/elidedlabel.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
widgets/equalizerslider.cpp
|
|
|
|
widgets/errordialog.cpp
|
2010-10-10 16:04:05 +02:00
|
|
|
widgets/fancytabwidget.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
widgets/fileview.cpp
|
|
|
|
widgets/fileviewlist.cpp
|
2010-07-29 22:03:24 +02:00
|
|
|
widgets/freespacebar.cpp
|
2011-03-13 23:46:25 +01:00
|
|
|
widgets/fullscreenhypnotoad.cpp
|
2011-06-20 01:15:29 +02:00
|
|
|
widgets/kcategorizedsortfilterproxymodel.cpp
|
|
|
|
widgets/kcategorizedview.cpp
|
|
|
|
widgets/kcategorydrawer.cpp
|
2010-08-28 20:48:16 +02:00
|
|
|
widgets/lineedit.cpp
|
2010-06-24 18:26:49 +02:00
|
|
|
widgets/linetextedit.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
widgets/multiloadingindicator.cpp
|
2010-06-17 00:00:39 +02:00
|
|
|
widgets/nowplayingwidget.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
widgets/osd.cpp
|
|
|
|
widgets/osdpretty.cpp
|
2010-10-09 18:07:20 +02:00
|
|
|
widgets/prettyimage.cpp
|
2010-10-08 01:13:41 +02:00
|
|
|
widgets/prettyimageview.cpp
|
2010-06-09 16:02:26 +02:00
|
|
|
widgets/progressitemdelegate.cpp
|
2010-10-26 21:59:55 +02:00
|
|
|
widgets/ratingwidget.cpp
|
2011-04-02 16:46:56 +02:00
|
|
|
widgets/renametablineedit.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
widgets/sliderwidget.cpp
|
|
|
|
widgets/spinbox.cpp
|
|
|
|
widgets/stickyslider.cpp
|
2010-08-27 14:42:06 +02:00
|
|
|
widgets/stretchheaderview.cpp
|
2010-10-10 16:04:05 +02:00
|
|
|
widgets/stylehelper.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
widgets/trackslider.cpp
|
2010-12-27 17:34:00 +01:00
|
|
|
widgets/tracksliderpopup.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
widgets/tracksliderslider.cpp
|
2010-10-09 16:15:30 +02:00
|
|
|
widgets/widgetfadehelper.cpp
|
2010-06-09 00:39:31 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
set(HEADERS
|
|
|
|
analyzers/analyzerbase.h
|
|
|
|
analyzers/analyzercontainer.h
|
|
|
|
analyzers/baranalyzer.h
|
|
|
|
analyzers/blockanalyzer.h
|
|
|
|
analyzers/boomanalyzer.h
|
|
|
|
analyzers/sonogram.h
|
|
|
|
analyzers/turbine.h
|
|
|
|
|
2010-12-03 14:53:43 +01:00
|
|
|
core/backgroundstreams.h
|
2010-06-09 00:39:31 +02:00
|
|
|
core/backgroundthread.h
|
2011-03-23 22:53:24 +01:00
|
|
|
core/crashreporting.h
|
2010-06-09 00:39:31 +02:00
|
|
|
core/database.h
|
2010-07-31 18:12:16 +02:00
|
|
|
core/deletefiles.h
|
2010-06-09 00:39:31 +02:00
|
|
|
core/globalshortcuts.h
|
2011-01-10 00:11:51 +01:00
|
|
|
core/globalshortcutbackend.h
|
2010-06-09 00:39:31 +02:00
|
|
|
core/gnomeglobalshortcutbackend.h
|
|
|
|
core/mergedproxymodel.h
|
2011-01-10 23:26:13 +01:00
|
|
|
core/mimedata.h
|
2010-10-16 19:20:54 +02:00
|
|
|
core/network.h
|
2010-06-24 20:33:38 +02:00
|
|
|
core/organise.h
|
2010-06-09 00:39:31 +02:00
|
|
|
core/player.h
|
2010-06-15 15:24:17 +02:00
|
|
|
core/songloader.h
|
2011-01-17 23:58:16 +01:00
|
|
|
core/taskmanager.h
|
2011-04-28 17:10:28 +02:00
|
|
|
core/urlhandler.h
|
2010-06-09 00:39:31 +02:00
|
|
|
|
2011-04-02 15:34:06 +02:00
|
|
|
covers/albumcoverfetcher.h
|
|
|
|
covers/albumcoverfetchersearch.h
|
|
|
|
covers/albumcoverloader.h
|
|
|
|
covers/artloader.h
|
|
|
|
covers/coverprovider.h
|
|
|
|
covers/coverproviders.h
|
|
|
|
covers/kittenloader.h
|
|
|
|
|
2010-06-26 01:38:21 +02:00
|
|
|
devices/connecteddevice.h
|
2010-07-04 01:00:07 +02:00
|
|
|
devices/devicedatabasebackend.h
|
2010-06-26 00:36:21 +02:00
|
|
|
devices/devicelister.h
|
2010-06-26 14:41:18 +02:00
|
|
|
devices/devicemanager.h
|
2010-07-04 17:01:24 +02:00
|
|
|
devices/deviceproperties.h
|
2010-07-24 20:31:05 +02:00
|
|
|
devices/devicestatefiltermodel.h
|
2010-07-03 23:05:55 +02:00
|
|
|
devices/deviceview.h
|
2010-06-26 01:38:21 +02:00
|
|
|
devices/filesystemdevice.h
|
2010-06-25 21:04:10 +02:00
|
|
|
|
2010-06-09 00:39:31 +02:00
|
|
|
engines/enginebase.h
|
2010-12-26 14:01:35 +01:00
|
|
|
engines/gstengine.h
|
|
|
|
engines/gstenginepipeline.h
|
|
|
|
engines/gstelementdeleter.h
|
2010-06-09 00:39:31 +02:00
|
|
|
|
|
|
|
library/groupbydialog.h
|
|
|
|
library/library.h
|
|
|
|
library/librarybackend.h
|
|
|
|
library/libraryconfig.h
|
|
|
|
library/librarydirectorymodel.h
|
|
|
|
library/libraryfilterwidget.h
|
|
|
|
library/librarymodel.h
|
|
|
|
library/libraryview.h
|
2010-10-01 21:27:01 +02:00
|
|
|
library/libraryviewcontainer.h
|
2010-06-09 00:39:31 +02:00
|
|
|
library/librarywatcher.h
|
|
|
|
|
2011-03-12 22:19:41 +01:00
|
|
|
musicbrainz/musicbrainzclient.h
|
|
|
|
musicbrainz/musicdnsclient.h
|
|
|
|
musicbrainz/tagfetcher.h
|
|
|
|
|
2010-11-20 21:00:40 +01:00
|
|
|
playlist/dynamicplaylistcontrols.h
|
2010-06-09 00:39:31 +02:00
|
|
|
playlist/playlist.h
|
|
|
|
playlist/playlistbackend.h
|
|
|
|
playlist/playlistcontainer.h
|
|
|
|
playlist/playlistdelegates.h
|
|
|
|
playlist/playlistfilter.h
|
|
|
|
playlist/playlistheader.h
|
2011-01-10 23:26:13 +01:00
|
|
|
playlist/playlistitemmimedata.h
|
2010-06-09 00:39:31 +02:00
|
|
|
playlist/playlistmanager.h
|
|
|
|
playlist/playlistsequence.h
|
|
|
|
playlist/playlisttabbar.h
|
|
|
|
playlist/playlistview.h
|
2010-07-11 17:37:40 +02:00
|
|
|
playlist/queue.h
|
|
|
|
playlist/queuemanager.h
|
2010-06-15 20:24:08 +02:00
|
|
|
playlist/songloaderinserter.h
|
2010-06-09 00:39:31 +02:00
|
|
|
playlist/songmimedata.h
|
|
|
|
|
|
|
|
playlistparsers/asxparser.h
|
2010-07-10 20:39:41 +02:00
|
|
|
playlistparsers/asxiniparser.h
|
2010-12-23 22:13:43 +01:00
|
|
|
playlistparsers/cueparser.h
|
2010-06-09 00:39:31 +02:00
|
|
|
playlistparsers/m3uparser.h
|
|
|
|
playlistparsers/parserbase.h
|
|
|
|
playlistparsers/playlistparser.h
|
|
|
|
playlistparsers/plsparser.h
|
|
|
|
playlistparsers/xspfparser.h
|
|
|
|
|
2010-11-23 23:36:00 +01:00
|
|
|
radio/icecastbackend.h
|
|
|
|
radio/icecastfilterwidget.h
|
|
|
|
radio/icecastmodel.h
|
2010-11-22 17:57:26 +01:00
|
|
|
radio/icecastservice.h
|
2010-11-26 16:16:48 +01:00
|
|
|
radio/jamendodynamicplaylist.h
|
2010-11-23 18:38:39 +01:00
|
|
|
radio/jamendoservice.h
|
2010-06-09 00:56:31 +02:00
|
|
|
radio/magnatuneconfig.h
|
2010-06-09 16:02:26 +02:00
|
|
|
radio/magnatunedownloaddialog.h
|
2010-06-09 00:39:31 +02:00
|
|
|
radio/magnatuneservice.h
|
|
|
|
radio/radiomimedata.h
|
|
|
|
radio/radiomodel.h
|
|
|
|
radio/radioservice.h
|
|
|
|
radio/radioview.h
|
|
|
|
radio/radioviewcontainer.h
|
|
|
|
radio/savedradio.h
|
|
|
|
radio/somafmservice.h
|
2011-04-28 17:10:28 +02:00
|
|
|
radio/somafmurlhandler.h
|
2010-06-09 00:39:31 +02:00
|
|
|
|
2011-05-31 16:36:28 +02:00
|
|
|
resolvers/libraryresolver.h
|
2011-05-31 17:33:46 +02:00
|
|
|
resolvers/resolver.h
|
2011-05-31 16:36:28 +02:00
|
|
|
|
2011-01-19 00:10:22 +01:00
|
|
|
scripting/installscriptdialog.h
|
2011-01-12 22:20:20 +01:00
|
|
|
scripting/languageengine.h
|
2011-01-02 19:44:45 +01:00
|
|
|
scripting/scriptdialog.h
|
|
|
|
scripting/scriptinterface.h
|
|
|
|
scripting/scriptmanager.h
|
|
|
|
scripting/uiinterface.h
|
|
|
|
|
2010-11-18 21:19:33 +01:00
|
|
|
smartplaylists/generator.h
|
|
|
|
smartplaylists/generatorinserter.h
|
2010-10-24 18:40:19 +02:00
|
|
|
smartplaylists/generatormimedata.h
|
2010-11-18 22:13:43 +01:00
|
|
|
smartplaylists/querywizardplugin.h
|
2010-11-18 21:19:33 +01:00
|
|
|
smartplaylists/searchpreview.h
|
|
|
|
smartplaylists/searchtermwidget.h
|
|
|
|
smartplaylists/wizard.h
|
2010-11-18 22:13:43 +01:00
|
|
|
smartplaylists/wizardplugin.h
|
2010-10-24 17:38:12 +02:00
|
|
|
|
2010-10-02 18:23:33 +02:00
|
|
|
songinfo/artistinfoview.h
|
2010-10-07 23:06:26 +02:00
|
|
|
songinfo/collapsibleinfoheader.h
|
2010-10-02 18:23:33 +02:00
|
|
|
songinfo/collapsibleinfopane.h
|
2010-10-10 23:45:01 +02:00
|
|
|
songinfo/echonestbiographies.h
|
|
|
|
songinfo/echonestimages.h
|
2010-10-02 15:43:45 +02:00
|
|
|
songinfo/lyricsettings.h
|
|
|
|
songinfo/songinfobase.h
|
2010-10-10 18:09:20 +02:00
|
|
|
songinfo/songinfofetcher.h
|
|
|
|
songinfo/songinfoprovider.h
|
2010-10-16 16:11:23 +02:00
|
|
|
songinfo/songinfotextview.h
|
2010-10-10 18:09:20 +02:00
|
|
|
songinfo/songinfoview.h
|
2010-10-10 19:59:23 +02:00
|
|
|
songinfo/songplaystats.h
|
2010-10-10 18:09:20 +02:00
|
|
|
songinfo/ultimatelyricsprovider.h
|
2010-10-02 15:43:45 +02:00
|
|
|
songinfo/ultimatelyricsreader.h
|
|
|
|
|
2011-05-31 16:36:28 +02:00
|
|
|
suggesters/lastfmsuggester.h
|
|
|
|
|
2010-12-26 14:01:35 +01:00
|
|
|
transcoder/transcodedialog.h
|
|
|
|
transcoder/transcoder.h
|
2011-04-17 01:04:15 +02:00
|
|
|
transcoder/transcoderoptionsdialog.h
|
|
|
|
transcoder/transcoderoptionsmp3.h
|
2010-12-26 14:01:35 +01:00
|
|
|
|
2010-06-09 00:39:31 +02:00
|
|
|
ui/about.h
|
|
|
|
ui/addstreamdialog.h
|
2011-01-24 01:09:57 +01:00
|
|
|
ui/albumcoverchoicecontroller.h
|
2011-04-27 21:10:37 +02:00
|
|
|
ui/albumcovermanager.h
|
|
|
|
ui/albumcovermanagerlist.h
|
|
|
|
ui/albumcoversearcher.h
|
2011-01-23 21:24:17 +01:00
|
|
|
ui/coverfromurldialog.h
|
2010-06-09 00:39:31 +02:00
|
|
|
ui/edittagdialog.h
|
|
|
|
ui/equalizer.h
|
|
|
|
ui/globalshortcutgrabber.h
|
2010-06-23 18:27:23 +02:00
|
|
|
ui/globalshortcutsconfig.h
|
2010-06-09 00:39:31 +02:00
|
|
|
ui/mainwindow.h
|
2010-06-24 18:26:49 +02:00
|
|
|
ui/organisedialog.h
|
2010-08-14 13:51:50 +02:00
|
|
|
ui/organiseerrordialog.h
|
2010-06-22 13:52:55 +02:00
|
|
|
ui/qtsystemtrayicon.h
|
2010-06-09 00:39:31 +02:00
|
|
|
ui/settingsdialog.h
|
|
|
|
ui/systemtrayicon.h
|
2011-01-21 00:42:28 +01:00
|
|
|
ui/trackselectiondialog.h
|
2011-01-16 01:39:51 +01:00
|
|
|
ui/windows7thumbbar.h
|
2010-06-09 00:39:31 +02:00
|
|
|
|
|
|
|
widgets/autoexpandingtreeview.h
|
|
|
|
widgets/busyindicator.h
|
2011-01-25 20:15:51 +01:00
|
|
|
widgets/clickablelabel.h
|
2011-04-28 22:48:53 +02:00
|
|
|
widgets/didyoumean.h
|
2010-09-26 18:00:28 +02:00
|
|
|
widgets/elidedlabel.h
|
2010-06-09 00:39:31 +02:00
|
|
|
widgets/equalizerslider.h
|
|
|
|
widgets/errordialog.h
|
2010-10-10 16:04:05 +02:00
|
|
|
widgets/fancytabwidget.h
|
2010-06-09 00:39:31 +02:00
|
|
|
widgets/fileview.h
|
|
|
|
widgets/fileviewlist.h
|
2010-07-29 22:03:24 +02:00
|
|
|
widgets/freespacebar.h
|
2011-06-20 01:15:29 +02:00
|
|
|
widgets/kcategorizedview.h
|
|
|
|
widgets/kcategorydrawer.h
|
2010-08-28 20:48:16 +02:00
|
|
|
widgets/lineedit.h
|
2010-06-24 18:26:49 +02:00
|
|
|
widgets/linetextedit.h
|
2010-06-09 00:39:31 +02:00
|
|
|
widgets/multiloadingindicator.h
|
2010-06-17 00:00:39 +02:00
|
|
|
widgets/nowplayingwidget.h
|
2010-06-09 00:39:31 +02:00
|
|
|
widgets/osd.h
|
|
|
|
widgets/osdpretty.h
|
2010-10-09 18:07:20 +02:00
|
|
|
widgets/prettyimage.h
|
2010-10-08 01:13:41 +02:00
|
|
|
widgets/prettyimageview.h
|
2010-06-09 16:02:26 +02:00
|
|
|
widgets/progressitemdelegate.h
|
2010-10-26 21:59:55 +02:00
|
|
|
widgets/ratingwidget.h
|
2011-04-02 16:46:56 +02:00
|
|
|
widgets/renametablineedit.h
|
2010-06-09 00:39:31 +02:00
|
|
|
widgets/sliderwidget.h
|
|
|
|
widgets/spinbox.h
|
|
|
|
widgets/stickyslider.h
|
2010-08-27 14:42:06 +02:00
|
|
|
widgets/stretchheaderview.h
|
2010-06-09 00:39:31 +02:00
|
|
|
widgets/trackslider.h
|
2010-12-27 17:34:00 +01:00
|
|
|
widgets/tracksliderpopup.h
|
2011-02-21 23:25:04 +01:00
|
|
|
widgets/tracksliderslider.h
|
2010-10-09 16:15:30 +02:00
|
|
|
widgets/widgetfadehelper.h
|
2010-06-09 00:39:31 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
set(UI
|
2010-07-04 17:01:24 +02:00
|
|
|
devices/deviceproperties.ui
|
|
|
|
|
2010-06-09 00:39:31 +02:00
|
|
|
library/groupbydialog.ui
|
|
|
|
library/libraryconfig.ui
|
|
|
|
library/libraryfilterwidget.ui
|
2010-10-01 21:27:01 +02:00
|
|
|
library/libraryviewcontainer.ui
|
2010-06-09 00:39:31 +02:00
|
|
|
|
2010-11-20 21:00:40 +01:00
|
|
|
playlist/dynamicplaylistcontrols.ui
|
2010-06-09 00:39:31 +02:00
|
|
|
playlist/playlistcontainer.ui
|
|
|
|
playlist/playlistsequence.ui
|
2010-07-11 17:37:40 +02:00
|
|
|
playlist/queuemanager.ui
|
2010-06-09 00:39:31 +02:00
|
|
|
|
2010-11-23 23:36:00 +01:00
|
|
|
radio/icecastfilterwidget.ui
|
2010-06-09 00:56:31 +02:00
|
|
|
radio/magnatuneconfig.ui
|
2010-06-09 16:02:26 +02:00
|
|
|
radio/magnatunedownloaddialog.ui
|
2010-06-09 00:39:31 +02:00
|
|
|
radio/radioviewcontainer.ui
|
2011-05-04 20:00:48 +02:00
|
|
|
radio/spotifyconfig.ui
|
2010-06-09 00:39:31 +02:00
|
|
|
|
2011-02-20 17:26:26 +01:00
|
|
|
remote/remoteconfig.ui
|
|
|
|
|
2011-01-19 00:10:22 +01:00
|
|
|
scripting/installscriptdialog.ui
|
2011-01-02 19:44:45 +01:00
|
|
|
scripting/scriptdialog.ui
|
2011-05-15 15:44:06 +02:00
|
|
|
scripting/python/pythonconsole.ui
|
2011-01-02 19:44:45 +01:00
|
|
|
|
2010-11-18 22:13:43 +01:00
|
|
|
smartplaylists/querysearchpage.ui
|
|
|
|
smartplaylists/querysortpage.ui
|
2010-11-18 21:19:33 +01:00
|
|
|
smartplaylists/searchpreview.ui
|
|
|
|
smartplaylists/searchtermwidget.ui
|
2010-11-19 00:08:37 +01:00
|
|
|
smartplaylists/wizardfinishpage.ui
|
2010-10-24 17:38:12 +02:00
|
|
|
|
2010-10-02 15:43:45 +02:00
|
|
|
songinfo/lyricsettings.ui
|
|
|
|
|
2010-12-26 14:01:35 +01:00
|
|
|
transcoder/transcodedialog.ui
|
|
|
|
transcoder/transcodelogdialog.ui
|
2011-04-17 01:04:15 +02:00
|
|
|
transcoder/transcoderoptionsaac.ui
|
|
|
|
transcoder/transcoderoptionsdialog.ui
|
|
|
|
transcoder/transcoderoptionsflac.ui
|
|
|
|
transcoder/transcoderoptionsmp3.ui
|
|
|
|
transcoder/transcoderoptionsspeex.ui
|
|
|
|
transcoder/transcoderoptionsvorbis.ui
|
|
|
|
transcoder/transcoderoptionswma.ui
|
2010-12-26 14:01:35 +01:00
|
|
|
|
2010-06-09 00:39:31 +02:00
|
|
|
ui/about.ui
|
|
|
|
ui/addstreamdialog.ui
|
2011-04-27 21:10:37 +02:00
|
|
|
ui/albumcovermanager.ui
|
|
|
|
ui/albumcoversearcher.ui
|
2011-01-23 21:24:17 +01:00
|
|
|
ui/coverfromurldialog.ui
|
2010-06-09 00:39:31 +02:00
|
|
|
ui/edittagdialog.ui
|
|
|
|
ui/equalizer.ui
|
|
|
|
ui/globalshortcutgrabber.ui
|
2010-06-23 18:27:23 +02:00
|
|
|
ui/globalshortcutsconfig.ui
|
2010-06-09 00:39:31 +02:00
|
|
|
ui/mainwindow.ui
|
2010-06-24 18:26:49 +02:00
|
|
|
ui/organisedialog.ui
|
2010-08-14 13:51:50 +02:00
|
|
|
ui/organiseerrordialog.ui
|
2010-06-09 00:39:31 +02:00
|
|
|
ui/settingsdialog.ui
|
2011-01-21 00:42:28 +01:00
|
|
|
ui/trackselectiondialog.ui
|
2010-08-29 18:24:19 +02:00
|
|
|
ui/wiimotedevshortcutsconfig.ui
|
|
|
|
ui/wiimotedevshortcutgrabber.ui
|
2010-06-09 00:39:31 +02:00
|
|
|
|
|
|
|
widgets/equalizerslider.ui
|
|
|
|
widgets/errordialog.ui
|
|
|
|
widgets/fileview.ui
|
|
|
|
widgets/osdpretty.ui
|
|
|
|
widgets/trackslider.ui
|
|
|
|
)
|
|
|
|
|
|
|
|
set(RESOURCES
|
2010-02-28 18:28:56 +01:00
|
|
|
../data/data.qrc
|
|
|
|
)
|
|
|
|
|
2010-06-12 19:44:19 +02:00
|
|
|
set(LINGUAS "All" CACHE STRING "A space-seperated list of translations to compile in to Clementine, or \"None\".")
|
2010-06-25 22:48:39 +02:00
|
|
|
if (LINGUAS STREQUAL "All")
|
2010-10-23 15:46:45 +02:00
|
|
|
# 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)
|
2010-06-25 22:48:39 +02:00
|
|
|
else (LINGUAS STREQUAL "All")
|
|
|
|
if (NOT LINGUAS OR LINGUAS STREQUAL "None")
|
2010-06-12 19:44:19 +02:00
|
|
|
set (LANGUAGES "")
|
2010-06-25 22:48:39 +02:00
|
|
|
else (NOT LINGUAS OR LINGUAS STREQUAL "None")
|
2010-06-12 19:44:19 +02:00
|
|
|
string(REGEX MATCHALL [a-zA-Z_]+
|
|
|
|
LANGUAGES ${LINGUAS})
|
2010-06-25 22:48:39 +02:00
|
|
|
endif (NOT LINGUAS OR LINGUAS STREQUAL "None")
|
|
|
|
endif (LINGUAS STREQUAL "All")
|
2010-06-09 00:39:31 +02:00
|
|
|
|
2011-01-16 16:11:23 +01:00
|
|
|
option(USE_INSTALL_PREFIX "Look for data in CMAKE_INSTALL_PREFIX" ON)
|
|
|
|
|
2010-06-11 00:48:23 +02:00
|
|
|
# Visualisations
|
|
|
|
if(ENABLE_VISUALISATIONS)
|
2010-06-22 17:46:51 +02:00
|
|
|
|
2010-06-11 00:48:23 +02:00
|
|
|
list(APPEND SOURCES
|
|
|
|
visualisations/projectmpresetmodel.cpp
|
|
|
|
visualisations/projectmvisualisation.cpp
|
|
|
|
visualisations/visualisationcontainer.cpp
|
|
|
|
visualisations/visualisationoverlay.cpp
|
|
|
|
visualisations/visualisationselector.cpp
|
|
|
|
)
|
|
|
|
list(APPEND HEADERS
|
|
|
|
visualisations/projectmpresetmodel.h
|
|
|
|
visualisations/projectmvisualisation.h
|
|
|
|
visualisations/visualisationcontainer.h
|
|
|
|
visualisations/visualisationoverlay.h
|
|
|
|
visualisations/visualisationselector.h
|
|
|
|
)
|
|
|
|
list(APPEND UI
|
|
|
|
visualisations/visualisationoverlay.ui
|
|
|
|
visualisations/visualisationselector.ui
|
|
|
|
)
|
|
|
|
endif(ENABLE_VISUALISATIONS)
|
|
|
|
|
2010-12-18 18:28:02 +01:00
|
|
|
# Lastfm
|
|
|
|
if(HAVE_LIBLASTFM)
|
|
|
|
list(APPEND SOURCES
|
2011-04-02 16:43:50 +02:00
|
|
|
covers/lastfmcoverprovider.cpp
|
2010-12-18 18:28:02 +01:00
|
|
|
radio/fixlastfm.cpp
|
|
|
|
radio/lastfmconfig.cpp
|
|
|
|
radio/lastfmservice.cpp
|
|
|
|
radio/lastfmstationdialog.cpp
|
2011-04-28 17:10:28 +02:00
|
|
|
radio/lastfmurlhandler.cpp
|
2010-12-18 18:28:02 +01:00
|
|
|
songinfo/echonestsimilarartists.cpp
|
|
|
|
songinfo/echonesttags.cpp
|
|
|
|
songinfo/lastfmtrackinfoprovider.cpp
|
|
|
|
songinfo/tagwidget.cpp
|
|
|
|
)
|
|
|
|
list(APPEND HEADERS
|
2011-04-02 16:43:50 +02:00
|
|
|
covers/lastfmcoverprovider.h
|
2010-12-18 18:28:02 +01:00
|
|
|
radio/lastfmconfig.h
|
|
|
|
radio/lastfmservice.h
|
|
|
|
radio/lastfmstationdialog.h
|
|
|
|
songinfo/echonestsimilarartists.h
|
|
|
|
songinfo/echonesttags.h
|
|
|
|
songinfo/lastfmtrackinfoprovider.h
|
|
|
|
songinfo/tagwidget.h
|
|
|
|
)
|
|
|
|
list(APPEND UI
|
|
|
|
radio/lastfmconfig.ui
|
|
|
|
radio/lastfmstationdialog.ui
|
|
|
|
)
|
|
|
|
endif(HAVE_LIBLASTFM)
|
|
|
|
|
2011-04-25 21:16:26 +02:00
|
|
|
if(HAVE_SPOTIFY)
|
|
|
|
list(APPEND SOURCES
|
2011-04-29 21:44:51 +02:00
|
|
|
radio/spotifyblobdownloader.cpp
|
2011-04-25 21:16:26 +02:00
|
|
|
radio/spotifyconfig.cpp
|
|
|
|
radio/spotifyserver.cpp
|
|
|
|
radio/spotifyservice.cpp
|
2011-04-28 19:50:45 +02:00
|
|
|
radio/spotifysearchplaylisttype.cpp
|
2011-04-28 17:10:28 +02:00
|
|
|
radio/spotifyurlhandler.cpp
|
2011-05-31 18:01:33 +02:00
|
|
|
resolvers/spotifyresolver.cpp
|
2011-04-25 21:16:26 +02:00
|
|
|
)
|
|
|
|
list(APPEND HEADERS
|
2011-04-29 21:44:51 +02:00
|
|
|
radio/spotifyblobdownloader.h
|
2011-04-25 21:16:26 +02:00
|
|
|
radio/spotifyconfig.h
|
|
|
|
radio/spotifyserver.h
|
|
|
|
radio/spotifyservice.h
|
2011-05-31 18:01:33 +02:00
|
|
|
resolvers/spotifyresolver.h
|
2011-04-25 21:16:26 +02:00
|
|
|
)
|
|
|
|
list(APPEND UI
|
|
|
|
radio/spotifyconfig.ui)
|
|
|
|
endif(HAVE_SPOTIFY)
|
|
|
|
|
2010-06-09 00:39:31 +02:00
|
|
|
if(APPLE)
|
2010-06-17 22:31:34 +02:00
|
|
|
list(APPEND HEADERS core/macglobalshortcutbackend.h)
|
2010-12-30 14:03:36 +01:00
|
|
|
list(APPEND HEADERS devices/macdevicelister.h)
|
|
|
|
list(APPEND HEADERS ui/macscreensaver.h)
|
2010-06-22 16:09:13 +02:00
|
|
|
list(APPEND HEADERS ui/macsystemtrayicon.h)
|
2010-08-28 21:01:54 +02:00
|
|
|
list(APPEND HEADERS widgets/maclineedit.h)
|
2010-12-30 14:03:36 +01:00
|
|
|
list(APPEND SOURCES core/macglobalshortcutbackend.mm)
|
|
|
|
list(APPEND SOURCES devices/macdevicelister.mm)
|
2010-10-12 18:02:23 +02:00
|
|
|
list(APPEND SOURCES ui/macscreensaver.cpp)
|
2010-12-30 14:03:36 +01:00
|
|
|
list(APPEND SOURCES ui/macsystemtrayicon.mm)
|
|
|
|
list(APPEND SOURCES widgets/maclineedit.mm)
|
|
|
|
list(APPEND SOURCES widgets/osd_mac.mm)
|
2010-06-09 00:39:31 +02:00
|
|
|
include_directories(${GROWL}/Headers)
|
|
|
|
else(APPLE)
|
|
|
|
if(WIN32)
|
|
|
|
list(APPEND SOURCES widgets/osd_win.cpp)
|
|
|
|
else(WIN32)
|
|
|
|
list(APPEND SOURCES widgets/osd_x11.cpp)
|
|
|
|
endif(WIN32)
|
|
|
|
endif(APPLE)
|
|
|
|
|
2010-06-25 18:05:02 +02:00
|
|
|
# DBUS and MPRIS - Linux specific
|
2010-12-26 14:38:35 +01:00
|
|
|
if(HAVE_DBUS)
|
2010-06-25 18:05:02 +02:00
|
|
|
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/dbus)
|
|
|
|
|
2010-06-25 21:04:10 +02:00
|
|
|
# Hack to get it to generate interfaces without namespaces - required
|
|
|
|
# because otherwise org::freedesktop::UDisks and
|
|
|
|
# org::freedesktop::UDisks::Device conflict.
|
|
|
|
list(APPEND QT_DBUSXML2CPP_EXECUTABLE -N)
|
|
|
|
|
2010-06-25 18:05:02 +02:00
|
|
|
# MPRIS DBUS interfaces
|
2010-06-09 00:39:31 +02:00
|
|
|
qt4_add_dbus_adaptor(SOURCES
|
2010-06-25 18:05:02 +02:00
|
|
|
dbus/org.freedesktop.MediaPlayer.player.xml
|
2011-01-08 16:31:14 +01:00
|
|
|
core/mpris1.h mpris::Mpris1Player core/mpris_player MprisPlayer)
|
2010-06-09 00:39:31 +02:00
|
|
|
qt4_add_dbus_adaptor(SOURCES
|
2010-06-25 18:05:02 +02:00
|
|
|
dbus/org.freedesktop.MediaPlayer.root.xml
|
2011-01-08 16:31:14 +01:00
|
|
|
core/mpris1.h mpris::Mpris1Root core/mpris_root MprisRoot)
|
2010-06-09 00:39:31 +02:00
|
|
|
qt4_add_dbus_adaptor(SOURCES
|
2010-06-25 18:05:02 +02:00
|
|
|
dbus/org.freedesktop.MediaPlayer.tracklist.xml
|
2011-01-08 16:31:14 +01:00
|
|
|
core/mpris1.h mpris::Mpris1TrackList core/mpris_tracklist MprisTrackList)
|
2010-11-21 16:13:26 +01:00
|
|
|
|
|
|
|
# MPRIS 2.0 DBUS interfaces
|
|
|
|
qt4_add_dbus_adaptor(SOURCES
|
|
|
|
dbus/org.mpris.MediaPlayer2.Player.xml
|
2010-12-04 23:27:58 +01:00
|
|
|
core/mpris2.h mpris::Mpris2 core/mpris2_player Mpris2Player)
|
2010-11-21 16:13:26 +01:00
|
|
|
qt4_add_dbus_adaptor(SOURCES
|
|
|
|
dbus/org.mpris.MediaPlayer2.xml
|
2010-12-04 23:27:58 +01:00
|
|
|
core/mpris2.h mpris::Mpris2 core/mpris2_root Mpris2Root)
|
2010-11-21 16:13:26 +01:00
|
|
|
qt4_add_dbus_adaptor(SOURCES
|
|
|
|
dbus/org.mpris.MediaPlayer2.TrackList.xml
|
2010-12-04 23:27:58 +01:00
|
|
|
core/mpris2.h mpris::Mpris2 core/mpris2_tracklist Mpris2TrackList)
|
2010-06-09 00:39:31 +02:00
|
|
|
|
2010-06-25 18:05:02 +02:00
|
|
|
# org.freedesktop.Notifications DBUS interface
|
2010-06-09 00:39:31 +02:00
|
|
|
qt4_add_dbus_interface(SOURCES
|
2010-06-25 18:05:02 +02:00
|
|
|
dbus/org.freedesktop.Notifications.xml
|
|
|
|
dbus/notification)
|
|
|
|
|
2011-01-22 13:47:19 +01:00
|
|
|
# org.gnome.SettingsDaemon interface
|
|
|
|
qt4_add_dbus_interface(SOURCES
|
|
|
|
dbus/org.gnome.SettingsDaemon.MediaKeys.xml
|
|
|
|
dbus/gnomesettingsdaemon)
|
|
|
|
|
|
|
|
|
2010-06-25 18:17:17 +02:00
|
|
|
# DeviceKit DBUS interfaces
|
2010-12-26 14:38:35 +01:00
|
|
|
if(HAVE_DEVICEKIT)
|
|
|
|
qt4_add_dbus_interface(SOURCES
|
|
|
|
dbus/org.freedesktop.UDisks.xml
|
|
|
|
dbus/udisks)
|
|
|
|
qt4_add_dbus_interface(SOURCES
|
|
|
|
dbus/org.freedesktop.UDisks.Device.xml
|
|
|
|
dbus/udisksdevice)
|
|
|
|
endif(HAVE_DEVICEKIT)
|
2010-06-25 18:17:17 +02:00
|
|
|
|
2010-06-25 18:05:02 +02:00
|
|
|
# MPRIS source
|
2011-01-08 16:31:14 +01:00
|
|
|
list(APPEND SOURCES core/mpris.cpp core/mpris1.cpp core/mpris2.cpp)
|
|
|
|
list(APPEND HEADERS core/mpris.h core/mpris1.h core/mpris2.h)
|
2010-06-26 14:57:00 +02:00
|
|
|
|
2010-08-23 20:59:40 +02:00
|
|
|
# Wiimotedev interface classes
|
2010-08-24 21:57:43 +02:00
|
|
|
if(ENABLE_WIIMOTEDEV)
|
2010-08-31 01:57:31 +02:00
|
|
|
qt4_add_dbus_interface(SOURCES
|
|
|
|
dbus/org.wiimotedev.deviceEvents.xml
|
|
|
|
dbus/wiimotedev)
|
2010-08-24 21:57:43 +02:00
|
|
|
|
2010-08-25 15:02:53 +02:00
|
|
|
list(APPEND SOURCES wiimotedev/shortcuts.cpp)
|
|
|
|
list(APPEND HEADERS wiimotedev/shortcuts.h)
|
|
|
|
|
2010-08-29 17:21:50 +02:00
|
|
|
list(APPEND SOURCES ui/wiimotedevshortcutgrabber.cpp)
|
|
|
|
list(APPEND HEADERS ui/wiimotedevshortcutgrabber.h)
|
2010-08-29 18:24:19 +02:00
|
|
|
|
2010-08-29 17:21:50 +02:00
|
|
|
|
2010-08-24 21:57:43 +02:00
|
|
|
list(APPEND SOURCES ui/wiimotedevshortcutsconfig.cpp)
|
|
|
|
list(APPEND HEADERS ui/wiimotedevshortcutsconfig.h)
|
|
|
|
endif(ENABLE_WIIMOTEDEV)
|
2010-08-23 20:59:40 +02:00
|
|
|
|
2010-06-26 14:57:00 +02:00
|
|
|
# DeviceKit lister source
|
2010-12-26 14:38:35 +01:00
|
|
|
if(HAVE_DEVICEKIT)
|
|
|
|
list(APPEND SOURCES devices/devicekitlister.cpp)
|
|
|
|
list(APPEND HEADERS devices/devicekitlister.h)
|
|
|
|
endif(HAVE_DEVICEKIT)
|
2010-10-12 16:44:33 +02:00
|
|
|
|
|
|
|
# Gnome Screensaver DBus interface
|
2010-10-12 23:27:31 +02:00
|
|
|
list(APPEND SOURCES ui/dbusscreensaver.cpp)
|
2010-12-26 14:38:35 +01:00
|
|
|
endif(HAVE_DBUS)
|
2010-06-09 00:39:31 +02:00
|
|
|
|
2010-07-04 22:52:45 +02:00
|
|
|
# Libgpod device backend
|
2010-08-31 20:23:23 +02:00
|
|
|
if(HAVE_LIBGPOD)
|
2010-07-04 22:52:45 +02:00
|
|
|
include_directories(${LIBGPOD_INCLUDE_DIRS})
|
|
|
|
|
|
|
|
list(APPEND SOURCES devices/gpoddevice.cpp devices/gpodloader.cpp)
|
|
|
|
list(APPEND HEADERS devices/gpoddevice.h devices/gpodloader.h)
|
2010-08-31 20:23:23 +02:00
|
|
|
endif(HAVE_LIBGPOD)
|
2010-07-04 22:52:45 +02:00
|
|
|
|
2010-07-17 16:22:07 +02:00
|
|
|
# GIO device backend
|
2010-08-31 20:23:23 +02:00
|
|
|
if(HAVE_GIO)
|
2010-07-17 16:22:07 +02:00
|
|
|
include_directories(${GIO_INCLUDE_DIRS})
|
|
|
|
|
|
|
|
list(APPEND SOURCES devices/giolister.cpp)
|
|
|
|
list(APPEND HEADERS devices/giolister.h)
|
2010-08-31 20:23:23 +02:00
|
|
|
endif(HAVE_GIO)
|
2010-07-17 16:22:07 +02:00
|
|
|
|
2010-08-01 16:13:27 +02:00
|
|
|
# libimobiledevice backend and device
|
2010-08-31 20:23:23 +02:00
|
|
|
if(HAVE_IMOBILEDEVICE)
|
2010-07-30 23:10:34 +02:00
|
|
|
include_directories(${IMOBILEDEVICE_INCLUDE_DIRS})
|
|
|
|
include_directories(${PLIST_INCLUDE_DIRS})
|
2010-08-09 20:40:20 +02:00
|
|
|
include_directories(${PLISTPP_INCLUDE_DIRS})
|
2010-07-30 23:10:34 +02:00
|
|
|
|
2010-08-01 16:13:27 +02:00
|
|
|
list(APPEND SOURCES devices/afcdevice.cpp)
|
2010-08-01 14:19:21 +02:00
|
|
|
list(APPEND SOURCES devices/afcfile.cpp)
|
2010-08-01 16:13:27 +02:00
|
|
|
list(APPEND SOURCES devices/afctransfer.cpp)
|
2010-07-30 23:10:34 +02:00
|
|
|
list(APPEND SOURCES devices/ilister.cpp)
|
2010-08-01 16:13:27 +02:00
|
|
|
list(APPEND SOURCES devices/imobiledeviceconnection.cpp)
|
|
|
|
|
|
|
|
list(APPEND HEADERS devices/afcdevice.h)
|
2010-08-01 14:19:21 +02:00
|
|
|
list(APPEND HEADERS devices/afcfile.h)
|
2010-08-01 16:13:27 +02:00
|
|
|
list(APPEND HEADERS devices/afctransfer.h)
|
2010-07-30 23:10:34 +02:00
|
|
|
list(APPEND HEADERS devices/ilister.h)
|
2010-08-31 20:23:23 +02:00
|
|
|
endif(HAVE_IMOBILEDEVICE)
|
2010-07-30 23:10:34 +02:00
|
|
|
|
2010-08-14 17:57:05 +02:00
|
|
|
# mtp device
|
2010-08-31 20:23:23 +02:00
|
|
|
if(HAVE_LIBMTP)
|
2010-08-14 17:57:05 +02:00
|
|
|
include_directories(${LIBMTP_INCLUDE_DIRS})
|
|
|
|
|
2010-08-14 18:39:45 +02:00
|
|
|
list(APPEND SOURCES devices/mtpconnection.cpp)
|
2010-08-14 17:57:05 +02:00
|
|
|
list(APPEND SOURCES devices/mtpdevice.cpp)
|
|
|
|
list(APPEND SOURCES devices/mtploader.cpp)
|
|
|
|
|
2010-08-14 18:39:45 +02:00
|
|
|
list(APPEND SOURCES devices/mtpconnection.h)
|
2010-08-14 17:57:05 +02:00
|
|
|
list(APPEND HEADERS devices/mtpdevice.h)
|
|
|
|
list(APPEND HEADERS devices/mtploader.h)
|
2010-08-31 20:23:23 +02:00
|
|
|
endif(HAVE_LIBMTP)
|
2010-08-14 17:57:05 +02:00
|
|
|
|
2010-08-15 20:08:09 +02:00
|
|
|
# Windows media lister
|
2010-08-15 00:43:19 +02:00
|
|
|
IF(WIN32)
|
2010-08-22 21:18:22 +02:00
|
|
|
list(APPEND SOURCES devices/wmdmdevice.cpp)
|
2010-08-15 20:08:09 +02:00
|
|
|
list(APPEND SOURCES devices/wmdmlister.cpp)
|
2010-08-22 21:18:22 +02:00
|
|
|
list(APPEND SOURCES devices/wmdmloader.cpp)
|
2010-08-28 16:33:23 +02:00
|
|
|
list(APPEND SOURCES devices/wmdmprogress.cpp)
|
2010-08-22 21:18:22 +02:00
|
|
|
list(APPEND SOURCES devices/wmdmthread.cpp)
|
|
|
|
|
|
|
|
list(APPEND HEADERS devices/wmdmdevice.h)
|
2010-08-15 20:08:09 +02:00
|
|
|
list(APPEND HEADERS devices/wmdmlister.h)
|
2010-08-22 21:18:22 +02:00
|
|
|
list(APPEND HEADERS devices/wmdmloader.h)
|
2010-08-15 00:43:19 +02:00
|
|
|
ENDIF(WIN32)
|
|
|
|
|
2010-06-09 00:39:31 +02:00
|
|
|
# Mac specific startup stuff
|
|
|
|
if(APPLE)
|
2011-03-25 12:38:03 +01:00
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../3rdparty/google-breakpad/client/mac/build/Release/Breakpad.framework)
|
2010-06-09 00:39:31 +02:00
|
|
|
list(APPEND SOURCES core/mac_startup.mm)
|
|
|
|
endif(APPLE)
|
|
|
|
|
2011-01-02 19:44:45 +01:00
|
|
|
if(HAVE_SCRIPTING_PYTHON)
|
2010-12-31 19:13:28 +01:00
|
|
|
list(APPEND SOURCES
|
2011-05-20 01:02:15 +02:00
|
|
|
scripting/python/objectdecorators.cpp
|
2011-05-15 15:44:06 +02:00
|
|
|
scripting/python/pythonconsole.cpp
|
2011-01-02 19:44:45 +01:00
|
|
|
scripting/python/pythonengine.cpp
|
|
|
|
scripting/python/pythonscript.cpp
|
2010-12-31 19:13:28 +01:00
|
|
|
)
|
|
|
|
|
2011-01-12 22:20:20 +01:00
|
|
|
list(APPEND HEADERS
|
2011-05-20 01:02:15 +02:00
|
|
|
scripting/python/objectdecorators.h
|
2011-05-15 15:44:06 +02:00
|
|
|
scripting/python/pythonconsole.h
|
2011-01-12 22:20:20 +01:00
|
|
|
scripting/python/pythonengine.h
|
|
|
|
)
|
2011-05-15 17:45:49 +02:00
|
|
|
|
|
|
|
add_pythonqt_bindings(
|
|
|
|
NAME clementine
|
2011-05-15 18:12:49 +02:00
|
|
|
HEADER scripting/python/bindings_includes.h
|
2011-05-15 17:45:49 +02:00
|
|
|
TYPESYSTEM scripting/python/typesystem_clementine.xml
|
|
|
|
)
|
|
|
|
|
|
|
|
add_subdirectory(generated_cpp)
|
2011-01-02 19:44:45 +01:00
|
|
|
endif(HAVE_SCRIPTING_PYTHON)
|
2010-12-31 19:13:28 +01:00
|
|
|
|
2011-01-06 17:00:40 +01:00
|
|
|
if(HAVE_REMOTE)
|
2011-02-19 19:24:11 +01:00
|
|
|
list(APPEND HEADERS
|
2011-04-07 15:38:27 +02:00
|
|
|
remote/icesession.h
|
2011-03-08 17:34:20 +01:00
|
|
|
remote/portforwarder.h
|
2011-02-19 19:24:11 +01:00
|
|
|
remote/remote.h
|
|
|
|
remote/remoteconfig.h
|
2011-05-19 18:34:33 +02:00
|
|
|
remote/streampipeline.h
|
2011-02-19 19:24:11 +01:00
|
|
|
)
|
|
|
|
list(APPEND SOURCES
|
2011-04-07 15:38:27 +02:00
|
|
|
remote/icesession.cpp
|
2011-03-08 17:34:20 +01:00
|
|
|
remote/portforwarder.h
|
2011-02-19 19:24:11 +01:00
|
|
|
remote/remote.cpp
|
|
|
|
remote/remoteconfig.cpp
|
2011-05-19 18:34:33 +02:00
|
|
|
remote/streampipeline.cpp
|
2011-02-19 19:24:11 +01:00
|
|
|
)
|
2011-01-06 17:00:40 +01:00
|
|
|
endif(HAVE_REMOTE)
|
|
|
|
|
2011-06-22 22:52:49 +02:00
|
|
|
if(LINUX)
|
|
|
|
# Hack to add Clementine to the Unity system tray whitelist
|
|
|
|
list(APPEND SOURCES core/ubuntuunityhack.cpp)
|
|
|
|
list(APPEND HEADERS core/ubuntuunityhack.h)
|
|
|
|
endif(LINUX)
|
|
|
|
|
2010-06-26 14:57:00 +02:00
|
|
|
# OS-specific sources that should be searched for translatable strings even
|
|
|
|
# if they're not compiled
|
|
|
|
list(APPEND OTHER_SOURCES
|
|
|
|
core/macglobalshortcutbackend.h
|
|
|
|
core/macglobalshortcutbackend.mm
|
2010-08-02 16:00:43 +02:00
|
|
|
core/modelfuturewatcher.h
|
2010-11-21 16:13:26 +01:00
|
|
|
core/mpris.cpp
|
|
|
|
core/mpris.h
|
2011-01-08 16:31:14 +01:00
|
|
|
core/mpris1.cpp
|
|
|
|
core/mpris1.h
|
2010-11-21 16:13:26 +01:00
|
|
|
core/mpris2.cpp
|
|
|
|
core/mpris2.h
|
2011-06-22 22:52:49 +02:00
|
|
|
core/ubuntuunityhack.cpp
|
|
|
|
core/ubuntuunityhack.h
|
2010-08-01 16:13:27 +02:00
|
|
|
devices/afcdevice.cpp
|
|
|
|
devices/afcdevice.h
|
2010-08-01 14:19:21 +02:00
|
|
|
devices/afcfile.cpp
|
|
|
|
devices/afcfile.h
|
2010-08-01 16:13:27 +02:00
|
|
|
devices/afctransfer.cpp
|
|
|
|
devices/afctransfer.h
|
2010-06-26 14:57:00 +02:00
|
|
|
devices/devicekitlister.h
|
|
|
|
devices/devicekitlister.cpp
|
2010-07-04 22:52:45 +02:00
|
|
|
devices/gpoddevice.cpp
|
|
|
|
devices/gpoddevice.h
|
|
|
|
devices/gpodloader.cpp
|
|
|
|
devices/gpodloader.h
|
2010-07-31 00:08:47 +02:00
|
|
|
devices/ilister.cpp
|
|
|
|
devices/ilister.h
|
2010-08-01 16:13:27 +02:00
|
|
|
devices/imobiledeviceconnection.cpp
|
|
|
|
devices/imobiledeviceconnection.h
|
2010-08-15 00:43:19 +02:00
|
|
|
devices/mtpconnection.cpp
|
|
|
|
devices/mtpconnection.h
|
2010-08-14 17:57:05 +02:00
|
|
|
devices/mtpdevice.cpp
|
|
|
|
devices/mtpdevice.h
|
|
|
|
devices/mtploader.cpp
|
|
|
|
devices/mtploader.h
|
2010-08-15 20:08:09 +02:00
|
|
|
devices/wmdmlister.cpp
|
|
|
|
devices/wmdmlister.h
|
2010-08-23 12:26:00 +02:00
|
|
|
devices/wmdmloader.h
|
|
|
|
devices/wmdmloader.cpp
|
2011-05-04 20:00:48 +02:00
|
|
|
radio/spotifyblobdownloader.cpp
|
|
|
|
radio/spotifyblobdownloader.h
|
|
|
|
radio/spotifyconfig.cpp
|
|
|
|
radio/spotifyconfig.h
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/ui_spotifyconfig.h
|
|
|
|
radio/spotifysearchplaylisttype.cpp
|
|
|
|
radio/spotifysearchplaylisttype.h
|
|
|
|
radio/spotifyserver.cpp
|
|
|
|
radio/spotifyserver.h
|
|
|
|
radio/spotifyservice.cpp
|
|
|
|
radio/spotifyservice.h
|
|
|
|
radio/spotifyurlhandler.cpp
|
|
|
|
radio/spotifyurlhandler.h
|
2011-02-19 19:24:11 +01:00
|
|
|
remote/remote.cpp
|
|
|
|
remote/remote.h
|
|
|
|
remote/remoteconfig.cpp
|
|
|
|
remote/remoteconfig.h
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/ui_remoteconfig.h
|
2011-05-15 15:44:06 +02:00
|
|
|
scripting/python/pythonconsole.cpp
|
|
|
|
scripting/python/pythonconsole.h
|
|
|
|
scripting/python/pythonengine.cpp
|
|
|
|
scripting/python/pythonengine.h
|
|
|
|
scripting/python/pythonscript.cpp
|
|
|
|
scripting/python/pythonscript.h
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/ui_pythonconsole.h
|
2010-06-26 14:57:00 +02:00
|
|
|
ui/macsystemtrayicon.h
|
|
|
|
ui/macsystemtrayicon.mm
|
2010-08-29 18:24:19 +02:00
|
|
|
ui/wiimotedevshortcutsconfig.cpp
|
|
|
|
ui/wiimotedevshortcutsconfig.h
|
|
|
|
ui/wiimotedevshortcutgrabber.cpp
|
|
|
|
ui/wiimotedevshortcutgrabber.h
|
2010-08-28 13:26:26 +02:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/ui_wiimotedevshortcutsconfig.h
|
2010-08-29 18:24:19 +02:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/ui_wiimotedevshortcutgrabber.h
|
2010-06-26 14:57:00 +02:00
|
|
|
widgets/osd_mac.mm
|
|
|
|
widgets/osd_win.cpp
|
|
|
|
widgets/osd_x11.cpp
|
|
|
|
)
|
|
|
|
|
2010-06-09 00:39:31 +02:00
|
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/config.h)
|
|
|
|
|
2011-01-24 21:45:15 +01:00
|
|
|
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version.h.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/version.h)
|
|
|
|
|
2010-06-09 00:39:31 +02:00
|
|
|
qt4_wrap_cpp(MOC ${HEADERS})
|
|
|
|
qt4_wrap_ui(UIC ${UI})
|
|
|
|
qt4_add_resources(QRC ${RESOURCES})
|
|
|
|
|
2010-06-09 00:56:31 +02:00
|
|
|
add_pot(
|
2010-06-09 00:39:31 +02:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/translations/header
|
2010-06-23 19:03:29 +02:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/translations/translations.pot
|
2010-06-18 00:19:29 +02:00
|
|
|
${SOURCES} ${MOC} ${UIC} ${OTHER_SOURCES}
|
2010-06-09 00:39:31 +02:00
|
|
|
)
|
|
|
|
add_po(PO clementine_
|
2010-06-23 19:03:29 +02:00
|
|
|
POT ${CMAKE_CURRENT_SOURCE_DIR}/translations/translations.pot
|
2010-06-09 00:39:31 +02:00
|
|
|
LANGUAGES ${LANGUAGES}
|
|
|
|
DIRECTORY translations
|
|
|
|
)
|
2010-04-06 21:18:14 +02:00
|
|
|
|
2010-06-22 18:07:29 +02:00
|
|
|
add_library(clementine_lib STATIC
|
2010-06-09 00:39:31 +02:00
|
|
|
${SOURCES}
|
|
|
|
${MOC}
|
|
|
|
${UIC}
|
|
|
|
${QRC}
|
|
|
|
${PO}
|
2010-02-28 18:28:56 +01:00
|
|
|
)
|
2010-05-10 23:50:31 +02:00
|
|
|
|
2010-06-09 00:56:31 +02:00
|
|
|
add_dependencies(clementine_lib pot)
|
|
|
|
|
2010-11-21 16:13:26 +01:00
|
|
|
|
2010-03-01 02:47:50 +01:00
|
|
|
target_link_libraries(clementine_lib
|
2010-05-10 23:50:31 +02:00
|
|
|
chardet
|
2010-12-18 19:36:56 +01:00
|
|
|
${ECHONEST_LIBRARIES}
|
2010-05-10 23:50:31 +02:00
|
|
|
${GOBJECT_LIBRARIES}
|
|
|
|
${GLIB_LIBRARIES}
|
|
|
|
${TAGLIB_LIBRARIES}
|
|
|
|
${QT_LIBRARIES}
|
2010-12-26 14:01:35 +01:00
|
|
|
${GSTREAMER_BASE_LIBRARIES}
|
|
|
|
${GSTREAMER_LIBRARIES}
|
2011-05-19 18:34:33 +02:00
|
|
|
${GSTREAMER_APP_LIBRARIES}
|
2011-06-10 01:08:43 +02:00
|
|
|
${GSTREAMER_CDDA_LIBRARIES}
|
2011-06-16 15:49:10 +02:00
|
|
|
${GSTREAMER_TAG_LIBRARIES}
|
2010-07-10 22:33:28 +02:00
|
|
|
${QTSINGLEAPPLICATION_LIBRARIES}
|
2010-09-11 23:12:46 +02:00
|
|
|
${QTSINGLECOREAPPLICATION_LIBRARIES}
|
2010-07-11 14:02:30 +02:00
|
|
|
${QTIOCOMPRESSOR_LIBRARIES}
|
2010-11-03 22:11:43 +01:00
|
|
|
${CMAKE_THREAD_LIBS_INIT}
|
2010-11-03 00:07:43 +01:00
|
|
|
dl
|
|
|
|
z
|
2010-02-28 18:28:56 +01:00
|
|
|
)
|
2010-05-10 23:50:31 +02:00
|
|
|
|
2010-06-11 00:48:23 +02:00
|
|
|
if(ENABLE_VISUALISATIONS)
|
2010-07-10 22:21:06 +02:00
|
|
|
target_link_libraries(clementine_lib ${LIBPROJECTM_LIBRARIES})
|
2010-06-11 00:48:23 +02:00
|
|
|
endif(ENABLE_VISUALISATIONS)
|
|
|
|
|
2010-12-18 18:28:02 +01:00
|
|
|
if(HAVE_LIBLASTFM)
|
|
|
|
target_link_libraries(clementine_lib ${LASTFM_LIBRARIES})
|
|
|
|
endif(HAVE_LIBLASTFM)
|
|
|
|
|
2010-07-04 22:52:45 +02:00
|
|
|
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)
|
|
|
|
|
2011-01-18 14:44:12 +01:00
|
|
|
if(HAVE_LIBARCHIVE)
|
|
|
|
target_link_libraries(clementine_lib ${ARCHIVE_LIBRARIES})
|
|
|
|
endif(HAVE_LIBARCHIVE)
|
|
|
|
|
2010-07-30 23:10:34 +02:00
|
|
|
if(HAVE_IMOBILEDEVICE)
|
|
|
|
target_link_libraries(clementine_lib
|
|
|
|
${IMOBILEDEVICE_LIBRARIES}
|
|
|
|
${PLIST_LIBRARIES}
|
2010-08-02 14:42:59 +02:00
|
|
|
${USBMUXD_LIBRARIES}
|
2010-08-01 20:53:55 +02:00
|
|
|
gstafcsrc
|
2010-07-30 23:10:34 +02:00
|
|
|
)
|
2010-08-02 14:42:59 +02:00
|
|
|
link_directories(${USBMUXD_LIBRARY_DIRS})
|
2010-07-30 23:10:34 +02:00
|
|
|
endif(HAVE_IMOBILEDEVICE)
|
|
|
|
|
2010-09-22 15:05:51 +02:00
|
|
|
if(HAVE_LIBMTP)
|
2010-08-14 17:57:05 +02:00
|
|
|
target_link_libraries(clementine_lib ${LIBMTP_LIBRARIES})
|
2010-09-22 15:05:51 +02:00
|
|
|
endif(HAVE_LIBMTP)
|
2010-07-30 23:10:34 +02:00
|
|
|
|
2010-11-21 16:13:26 +01:00
|
|
|
if(HAVE_LIBINDICATE)
|
|
|
|
target_link_libraries(clementine_lib ${INDICATEQT_LIBRARIES})
|
|
|
|
endif(HAVE_LIBINDICATE)
|
|
|
|
|
2010-12-31 19:13:28 +01:00
|
|
|
if(HAVE_SCRIPTING_PYTHON)
|
2011-05-15 17:45:49 +02:00
|
|
|
target_link_libraries(clementine_lib
|
|
|
|
pythonqt
|
|
|
|
clementine-pythonqt-bindings
|
|
|
|
)
|
2010-12-31 19:13:28 +01:00
|
|
|
endif(HAVE_SCRIPTING_PYTHON)
|
|
|
|
|
2011-01-06 17:00:40 +01:00
|
|
|
if(HAVE_REMOTE)
|
2011-02-16 21:49:12 +01:00
|
|
|
target_link_libraries(clementine_lib ${GLOOX_LIBRARIES})
|
2011-04-07 15:38:27 +02:00
|
|
|
link_directories(${GLOOX_LIBRARY_DIRS})
|
2011-02-19 19:24:11 +01:00
|
|
|
target_link_libraries(clementine_lib xrme)
|
2011-03-08 17:34:20 +01:00
|
|
|
target_link_libraries(clementine_lib portfwd)
|
2011-03-08 22:16:09 +01:00
|
|
|
target_link_libraries(clementine_lib qjson)
|
2011-04-07 15:38:27 +02:00
|
|
|
target_link_libraries(clementine_lib ${PJSIP_LIBRARIES})
|
|
|
|
link_directories(${PJSIP_LIBRARY_DIRS})
|
2011-01-06 17:00:40 +01:00
|
|
|
endif(HAVE_REMOTE)
|
|
|
|
|
2011-03-23 22:53:24 +01:00
|
|
|
if(HAVE_BREAKPAD)
|
2011-03-25 12:38:03 +01:00
|
|
|
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)
|
2011-03-23 22:53:24 +01:00
|
|
|
endif(HAVE_BREAKPAD)
|
|
|
|
|
2011-04-25 21:16:26 +02:00
|
|
|
if(HAVE_SPOTIFY)
|
|
|
|
target_link_libraries(clementine_lib clementine-spotifyblob-messages)
|
|
|
|
endif(HAVE_SPOTIFY)
|
|
|
|
|
2010-02-28 21:55:10 +01:00
|
|
|
if (APPLE)
|
2010-03-01 02:47:50 +01:00
|
|
|
target_link_libraries(clementine_lib
|
2010-05-10 23:50:31 +02:00
|
|
|
${GROWL}
|
2010-07-23 15:46:30 +02:00
|
|
|
/System/Library/Frameworks/AppKit.framework
|
2010-05-10 23:50:31 +02:00
|
|
|
/System/Library/Frameworks/Carbon.framework
|
2010-07-23 15:46:30 +02:00
|
|
|
/System/Library/Frameworks/DiskArbitration.framework
|
2010-05-10 23:50:31 +02:00
|
|
|
/System/Library/Frameworks/Foundation.framework
|
2010-07-23 15:46:30 +02:00
|
|
|
/System/Library/Frameworks/IOKit.framework
|
2010-02-28 21:55:10 +01:00
|
|
|
)
|
2011-05-30 12:09:34 +02:00
|
|
|
target_link_libraries(clementine_lib ${SPMEDIAKEYTAP_LIBRARIES})
|
2010-12-14 19:20:14 +01:00
|
|
|
if (HAVE_SPARKLE)
|
|
|
|
include_directories(${SPARKLE}/Headers)
|
2010-12-22 16:41:30 +01:00
|
|
|
target_link_libraries(clementine_lib ${SPARKLE})
|
2010-12-14 19:20:14 +01:00
|
|
|
endif (HAVE_SPARKLE)
|
2010-04-13 21:43:08 +02:00
|
|
|
else (APPLE)
|
2010-07-24 14:35:21 +02:00
|
|
|
target_link_libraries(clementine_lib ${QXT_LIBRARIES})
|
2010-02-28 21:55:10 +01:00
|
|
|
endif (APPLE)
|
2010-03-01 02:47:50 +01:00
|
|
|
|
2010-05-10 23:50:31 +02:00
|
|
|
# Link against the qsqlite plugin on windows and mac
|
2010-06-30 21:55:46 +02:00
|
|
|
if(HAVE_STATIC_SQLITE)
|
2010-03-22 19:35:31 +01:00
|
|
|
set(3RDPARTY_SQLITE_LIBRARY qsqlite)
|
|
|
|
target_link_libraries(clementine_lib qsqlite)
|
2010-06-30 21:55:46 +02:00
|
|
|
endif(HAVE_STATIC_SQLITE)
|
2010-03-22 19:35:31 +01:00
|
|
|
|
2010-08-14 20:56:05 +02:00
|
|
|
if (WIN32)
|
2010-08-15 20:08:09 +02:00
|
|
|
target_link_libraries(clementine_lib
|
|
|
|
${ZLIB_LIBRARIES}
|
|
|
|
${MSWMDM_LIBRARIES}
|
|
|
|
${SAC_SHIM_LIBRARIES}
|
2011-02-03 22:06:05 +01:00
|
|
|
${QTSPARKLE_LIBRARIES}
|
2010-09-25 16:55:36 +02:00
|
|
|
qtwin
|
2010-08-15 20:08:09 +02:00
|
|
|
)
|
2010-08-14 20:56:05 +02:00
|
|
|
endif (WIN32)
|
|
|
|
|
2011-02-04 13:07:00 +01:00
|
|
|
if (LINUX)
|
2010-11-22 23:57:44 +01:00
|
|
|
# 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.
|
|
|
|
target_link_libraries(clementine_lib -lX11 -ldl)
|
2011-02-04 13:07:00 +01:00
|
|
|
endif (LINUX)
|
2010-11-22 23:57:44 +01:00
|
|
|
|
2010-05-10 23:50:31 +02:00
|
|
|
add_dependencies(clementine_lib qtsingleapplication)
|
|
|
|
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
set(EXECUTABLE_OUTPUT_PATH ..)
|
|
|
|
|
2010-05-05 18:56:55 +02:00
|
|
|
# Show the console window in debug mode on Windows
|
2011-04-24 19:02:26 +02:00
|
|
|
if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug" AND NOT ENABLE_WIN32_CONSOLE)
|
2010-05-05 18:56:55 +02:00
|
|
|
set(CLEMENTINE-WIN32-FLAG WIN32)
|
2011-04-24 19:02:26 +02:00
|
|
|
endif (NOT CMAKE_BUILD_TYPE STREQUAL "Debug" AND NOT ENABLE_WIN32_CONSOLE)
|
2010-05-05 18:56:55 +02:00
|
|
|
|
2010-05-10 23:50:31 +02:00
|
|
|
# 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
|
2010-05-05 18:56:55 +02:00
|
|
|
${CLEMENTINE-WIN32-FLAG}
|
2010-05-05 18:56:35 +02:00
|
|
|
${CLEMENTINE-WIN32-RESOURCES}
|
|
|
|
main.cpp
|
2010-03-01 02:47:50 +01:00
|
|
|
)
|
2010-05-10 23:50:31 +02:00
|
|
|
target_link_libraries(clementine
|
|
|
|
clementine_lib
|
|
|
|
)
|
2010-02-28 18:28:56 +01:00
|
|
|
|
2011-05-17 13:53:17 +02:00
|
|
|
# macdeploy.py relies on the blob being built first.
|
|
|
|
if(HAVE_SPOTIFY_BLOB)
|
|
|
|
add_dependencies(clementine clementine-spotifyblob)
|
|
|
|
endif(HAVE_SPOTIFY_BLOB)
|
|
|
|
|
2010-02-28 21:55:10 +01:00
|
|
|
set_target_properties(clementine PROPERTIES
|
2010-05-10 23:50:31 +02:00
|
|
|
MACOSX_BUNDLE_INFO_PLIST "../dist/Info.plist"
|
2010-02-28 21:55:10 +01:00
|
|
|
)
|
2010-05-10 23:50:31 +02:00
|
|
|
|
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(DIRECTORY "${QT_QTGUI_LIBRARY_RELEASE}/Versions/Current/Resources/"
|
|
|
|
DESTINATION "${CMAKE_BINARY_DIR}/clementine.app/Contents/Resources")
|
2010-12-14 19:20:14 +01:00
|
|
|
|
|
|
|
if (HAVE_SPARKLE)
|
|
|
|
install(DIRECTORY "${SPARKLE}/Versions/Current/Resources"
|
|
|
|
DESTINATION "${CMAKE_BINARY_DIR}/clementine.app/Contents/Frameworks/Sparkle.framework")
|
|
|
|
endif (HAVE_SPARKLE)
|
|
|
|
|
2010-09-07 15:28:01 +02:00
|
|
|
install(DIRECTORY "${GROWL}/Versions/Current/Resources"
|
|
|
|
DESTINATION "${CMAKE_BINARY_DIR}/clementine.app/Contents/Frameworks/Growl.framework")
|
2010-06-07 21:01:35 +02:00
|
|
|
|
2011-03-25 12:38:03 +01: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)
|
|
|
|
|
2011-01-14 15:16:56 +01:00
|
|
|
add_custom_command(TARGET clementine
|
|
|
|
POST_BUILD
|
|
|
|
COMMAND
|
2010-06-24 14:53:35 +02:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../dist/macdeploy.py ${PROJECT_BINARY_DIR}/clementine.app -f
|
2011-05-16 17:15:02 +02:00
|
|
|
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
|
2010-05-10 23:50:31 +02:00
|
|
|
)
|
2011-01-18 15:02:51 +01:00
|
|
|
|
2011-03-25 12:38:03 +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)
|
|
|
|
|
|
|
|
|
2011-01-14 15:16:56 +01:00
|
|
|
add_custom_command(
|
|
|
|
OUTPUT ${PROJECT_BINARY_DIR}/clementine-${CLEMENTINE_VERSION_RPM}.dmg
|
2011-01-03 15:21:10 +01:00
|
|
|
${CMAKE_COMMAND} -E remove -f ${PROJECT_BINARY_DIR}/clementine-${CLEMENTINE_VERSION_RPM}.dmg
|
2010-06-14 16:50:04 +02:00
|
|
|
COMMAND macdeployqt clementine.app -no-plugins -dmg
|
2011-01-13 13:34:14 +01:00
|
|
|
COMMAND ${CMAKE_COMMAND} -E rename
|
|
|
|
${PROJECT_BINARY_DIR}/clementine.dmg
|
|
|
|
${PROJECT_BINARY_DIR}/clementine-${CLEMENTINE_VERSION_RPM}.dmg
|
2010-05-10 23:50:31 +02:00
|
|
|
DEPENDS clementine
|
2010-06-07 22:39:06 +02:00
|
|
|
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
|
2010-05-10 23:50:31 +02:00
|
|
|
)
|
2011-01-14 15:16:56 +01:00
|
|
|
add_custom_target(dmg
|
|
|
|
DEPENDS ${PROJECT_BINARY_DIR}/clementine-${CLEMENTINE_VERSION_RPM}.dmg)
|
2010-06-07 21:01:35 +02:00
|
|
|
else (APPLE)
|
|
|
|
install(TARGETS clementine
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
)
|
|
|
|
endif (APPLE)
|