1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-27 09:41:32 +01:00

Only compile the DeviceKit bits on Linux

This commit is contained in:
David Sansome 2010-06-26 12:57:00 +00:00
parent 61e1f1b680
commit 7c09e39d41
27 changed files with 120 additions and 12 deletions

View File

@ -53,7 +53,6 @@ set(SOURCES
core/utilities.cpp
devices/connecteddevice.cpp
devices/devicekitlister.cpp
devices/devicelister.cpp
devices/devicemanager.cpp
devices/filesystemdevice.cpp
@ -175,7 +174,6 @@ set(HEADERS
core/taskmanager.h
devices/connecteddevice.h
devices/devicekitlister.h
devices/devicelister.h
devices/devicemanager.h
devices/filesystemdevice.h
@ -396,16 +394,6 @@ else(APPLE)
endif(WIN32)
endif(APPLE)
list(APPEND OTHER_SOURCES
core/macglobalshortcutbackend.h
core/macglobalshortcutbackend.mm
ui/macsystemtrayicon.h
ui/macsystemtrayicon.mm
widgets/osd_mac.mm
widgets/osd_win.cpp
widgets/osd_x11.cpp
)
# DBUS and MPRIS - Linux specific
if(NOT APPLE AND NOT WIN32)
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/dbus)
@ -442,6 +430,10 @@ if(NOT APPLE AND NOT WIN32)
# MPRIS source
list(APPEND SOURCES core/mpris.cpp)
list(APPEND HEADERS core/mpris.h)
# DeviceKit lister source
list(APPEND SOURCES devices/devicekitlister.cpp)
list(APPEND HEADERS devices/devicekitlister.h)
endif(NOT APPLE AND NOT WIN32)
# Mac specific startup stuff
@ -449,6 +441,20 @@ if(APPLE)
list(APPEND SOURCES core/mac_startup.mm)
endif(APPLE)
# 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
devices/devicekitlister.h
devices/devicekitlister.cpp
ui/macsystemtrayicon.h
ui/macsystemtrayicon.mm
widgets/osd_mac.mm
widgets/osd_win.cpp
widgets/osd_x11.cpp
)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in
${CMAKE_CURRENT_BINARY_DIR}/config.h)

View File

@ -22,7 +22,9 @@ DeviceManager::DeviceManager(TaskManager* task_manager, QObject *parent)
: QObject(parent),
task_manager_(task_manager)
{
#ifdef Q_WS_X11
AddLister(new DeviceKitLister);
#endif
}
DeviceManager::~DeviceManager() {

View File

@ -1469,6 +1469,10 @@ msgstr ""
msgid "Update the library when Clementine starts"
msgstr ""
#, qt-format
msgid "Updating %1"
msgstr ""
msgid "Updating library"
msgstr ""

View File

@ -1473,6 +1473,10 @@ msgstr ""
msgid "Update the library when Clementine starts"
msgstr ""
#, qt-format
msgid "Updating %1"
msgstr ""
msgid "Updating library"
msgstr "Aktualizuji knihovnu"

View File

@ -1476,6 +1476,10 @@ msgstr ""
msgid "Update the library when Clementine starts"
msgstr ""
#, qt-format
msgid "Updating %1"
msgstr ""
msgid "Updating library"
msgstr "Opdaterer bibliotek"

View File

@ -1477,6 +1477,10 @@ msgstr "Musiksammlung aktualisieren"
msgid "Update the library when Clementine starts"
msgstr "Musiksammlung beim Programmstart aktualisieren"
#, qt-format
msgid "Updating %1"
msgstr ""
msgid "Updating library"
msgstr "Aktualisiere Musiksammlung"

View File

@ -1478,6 +1478,10 @@ msgstr "Ενημέρωση βιβλιοθήκης"
msgid "Update the library when Clementine starts"
msgstr "Ενημέρωση της βιβλιοθήκης κατά την εκκίνηση του Clementine"
#, qt-format
msgid "Updating %1"
msgstr ""
msgid "Updating library"
msgstr "Ενημέρωση λίστας"

View File

@ -1474,6 +1474,10 @@ msgstr "Update Library"
msgid "Update the library when Clementine starts"
msgstr "Update the library when Clementine starts"
#, qt-format
msgid "Updating %1"
msgstr ""
msgid "Updating library"
msgstr "Updating library"

View File

@ -1471,6 +1471,10 @@ msgstr ""
msgid "Update the library when Clementine starts"
msgstr ""
#, qt-format
msgid "Updating %1"
msgstr ""
msgid "Updating library"
msgstr "Updating library"

View File

@ -1483,6 +1483,10 @@ msgstr "Actualizar Colección"
msgid "Update the library when Clementine starts"
msgstr "Actualizar la colección cuando Clementine inicia"
#, qt-format
msgid "Updating %1"
msgstr ""
msgid "Updating library"
msgstr "Actualizando colección"

View File

@ -1469,6 +1469,10 @@ msgstr ""
msgid "Update the library when Clementine starts"
msgstr ""
#, qt-format
msgid "Updating %1"
msgstr ""
msgid "Updating library"
msgstr ""

View File

@ -1479,6 +1479,10 @@ msgstr ""
msgid "Update the library when Clementine starts"
msgstr ""
#, qt-format
msgid "Updating %1"
msgstr ""
msgid "Updating library"
msgstr "Mise à jour de la bibliothèque"

View File

@ -1471,6 +1471,10 @@ msgstr ""
msgid "Update the library when Clementine starts"
msgstr ""
#, qt-format
msgid "Updating %1"
msgstr ""
msgid "Updating library"
msgstr "A actualizar a biblioteca"

View File

@ -1482,6 +1482,10 @@ msgstr "Aggiorna la raccolta"
msgid "Update the library when Clementine starts"
msgstr "Aggiorna la raccolta all'avvio di Clementine"
#, qt-format
msgid "Updating %1"
msgstr ""
msgid "Updating library"
msgstr "Aggiornamento raccolta"

View File

@ -1471,6 +1471,10 @@ msgstr ""
msgid "Update the library when Clementine starts"
msgstr ""
#, qt-format
msgid "Updating %1"
msgstr ""
msgid "Updating library"
msgstr ""

View File

@ -1473,6 +1473,10 @@ msgstr ""
msgid "Update the library when Clementine starts"
msgstr ""
#, qt-format
msgid "Updating %1"
msgstr ""
msgid "Updating library"
msgstr "Oppdaterer bibliotek"

View File

@ -1469,6 +1469,10 @@ msgstr ""
msgid "Update the library when Clementine starts"
msgstr ""
#, qt-format
msgid "Updating %1"
msgstr ""
msgid "Updating library"
msgstr ""

View File

@ -1471,6 +1471,10 @@ msgstr ""
msgid "Update the library when Clementine starts"
msgstr ""
#, qt-format
msgid "Updating %1"
msgstr ""
msgid "Updating library"
msgstr "Aktualizowanie biblioteki"

View File

@ -1476,6 +1476,10 @@ msgstr "Actualizar biblioteca"
msgid "Update the library when Clementine starts"
msgstr "Actualizar biblioteca ao iniciar o Clementine"
#, qt-format
msgid "Updating %1"
msgstr ""
msgid "Updating library"
msgstr "A actualizar a biblioteca"

View File

@ -1479,6 +1479,10 @@ msgstr "Recarregar biblioteca"
msgid "Update the library when Clementine starts"
msgstr "Atualizar a biblioteca quando o Clementine iniciar"
#, qt-format
msgid "Updating %1"
msgstr ""
msgid "Updating library"
msgstr "Atualizando biblioteca"

View File

@ -1470,6 +1470,10 @@ msgstr ""
msgid "Update the library when Clementine starts"
msgstr ""
#, qt-format
msgid "Updating %1"
msgstr ""
msgid "Updating library"
msgstr "Se actualizează biblioteca"

View File

@ -1476,6 +1476,10 @@ msgstr "Aktualizovať zbierku"
msgid "Update the library when Clementine starts"
msgstr "Aktualizovať zbierku pri zapnutí Clementine"
#, qt-format
msgid "Updating %1"
msgstr ""
msgid "Updating library"
msgstr "Aktualizovanie zbierky"

View File

@ -1476,6 +1476,10 @@ msgstr "Uppdatera bibliotek"
msgid "Update the library when Clementine starts"
msgstr "Uppdatera biblioteket när Clementine startar"
#, qt-format
msgid "Updating %1"
msgstr ""
msgid "Updating library"
msgstr "Uppdaterar bibliotek"

View File

@ -1471,6 +1471,10 @@ msgstr ""
msgid "Update the library when Clementine starts"
msgstr "Clementine başladığında kütüphaneyi güncelle"
#, qt-format
msgid "Updating %1"
msgstr ""
msgid "Updating library"
msgstr ""

View File

@ -1476,6 +1476,10 @@ msgstr "Оновити фонотеку"
msgid "Update the library when Clementine starts"
msgstr "Оновлювати фонотеку під час запуску Clementine"
#, qt-format
msgid "Updating %1"
msgstr ""
msgid "Updating library"
msgstr "Оновлення фонотеки"

View File

@ -1469,6 +1469,10 @@ msgstr ""
msgid "Update the library when Clementine starts"
msgstr ""
#, qt-format
msgid "Updating %1"
msgstr ""
msgid "Updating library"
msgstr ""

View File

@ -1469,6 +1469,10 @@ msgstr ""
msgid "Update the library when Clementine starts"
msgstr ""
#, qt-format
msgid "Updating %1"
msgstr ""
msgid "Updating library"
msgstr ""