Fixes for cross compiling for mac.
This commit is contained in:
parent
d3ea0c8482
commit
6f356592a5
@ -53,7 +53,7 @@ target_link_libraries(clementine-spotifyblob
|
|||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
target_link_libraries(clementine-spotifyblob
|
target_link_libraries(clementine-spotifyblob
|
||||||
/System/Library/Frameworks/Foundation.framework
|
"-framework Foundation"
|
||||||
)
|
)
|
||||||
endif(APPLE)
|
endif(APPLE)
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@ target_link_libraries(clementine-tagreader
|
|||||||
libclementine-tagreader
|
libclementine-tagreader
|
||||||
${QT_QTCORE_LIBRARY}
|
${QT_QTCORE_LIBRARY}
|
||||||
${QT_QTNETWORK_LIBRARY}
|
${QT_QTNETWORK_LIBRARY}
|
||||||
|
z
|
||||||
)
|
)
|
||||||
|
|
||||||
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
||||||
@ -41,7 +42,7 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
|||||||
|
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
target_link_libraries(clementine-tagreader
|
target_link_libraries(clementine-tagreader
|
||||||
/System/Library/Frameworks/Foundation.framework
|
"-framework Foundation"
|
||||||
)
|
)
|
||||||
endif(APPLE)
|
endif(APPLE)
|
||||||
|
|
||||||
|
@ -859,7 +859,6 @@ optional_source(APPLE
|
|||||||
core/macfslistener.mm
|
core/macfslistener.mm
|
||||||
core/macglobalshortcutbackend.mm
|
core/macglobalshortcutbackend.mm
|
||||||
core/mac_startup.mm
|
core/mac_startup.mm
|
||||||
devices/macdevicelister.mm
|
|
||||||
engines/osxdevicefinder.cpp
|
engines/osxdevicefinder.cpp
|
||||||
networkremote/bonjour.mm
|
networkremote/bonjour.mm
|
||||||
ui/globalshortcutgrabber.mm
|
ui/globalshortcutgrabber.mm
|
||||||
@ -869,10 +868,18 @@ optional_source(APPLE
|
|||||||
HEADERS
|
HEADERS
|
||||||
core/macfslistener.h
|
core/macfslistener.h
|
||||||
core/macglobalshortcutbackend.h
|
core/macglobalshortcutbackend.h
|
||||||
devices/macdevicelister.h
|
|
||||||
ui/macsystemtrayicon.h
|
ui/macsystemtrayicon.h
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(APPLE)
|
||||||
|
optional_source(HAVE_LIBMTP
|
||||||
|
SOURCES
|
||||||
|
devices/macdevicelister.mm
|
||||||
|
HEADERS
|
||||||
|
devices/macdevicelister.h
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Platform specific - Windows
|
# Platform specific - Windows
|
||||||
optional_source(WIN32
|
optional_source(WIN32
|
||||||
SOURCES
|
SOURCES
|
||||||
|
@ -29,10 +29,6 @@
|
|||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "devicedatabasebackend.h"
|
|
||||||
#include "devicekitlister.h"
|
|
||||||
#include "devicestatefiltermodel.h"
|
|
||||||
#include "filesystemdevice.h"
|
|
||||||
#include "core/application.h"
|
#include "core/application.h"
|
||||||
#include "core/concurrentrun.h"
|
#include "core/concurrentrun.h"
|
||||||
#include "core/database.h"
|
#include "core/database.h"
|
||||||
@ -40,14 +36,18 @@
|
|||||||
#include "core/musicstorage.h"
|
#include "core/musicstorage.h"
|
||||||
#include "core/taskmanager.h"
|
#include "core/taskmanager.h"
|
||||||
#include "core/utilities.h"
|
#include "core/utilities.h"
|
||||||
|
#include "devicedatabasebackend.h"
|
||||||
|
#include "devicekitlister.h"
|
||||||
|
#include "devicestatefiltermodel.h"
|
||||||
|
#include "filesystemdevice.h"
|
||||||
#include "ui/iconloader.h"
|
#include "ui/iconloader.h"
|
||||||
|
|
||||||
#ifdef HAVE_AUDIOCD
|
#ifdef HAVE_AUDIOCD
|
||||||
#include "cddalister.h"
|
|
||||||
#include "cddadevice.h"
|
#include "cddadevice.h"
|
||||||
|
#include "cddalister.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef Q_OS_DARWIN
|
#if defined(Q_OS_DARWIN) and defined(HAVE_LIBMTP)
|
||||||
#include "macdevicelister.h"
|
#include "macdevicelister.h"
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_LIBGPOD
|
#ifdef HAVE_LIBGPOD
|
||||||
@ -169,7 +169,8 @@ DeviceManager::DeviceInfo::BestBackend() const {
|
|||||||
DeviceManager::DeviceManager(Application* app, QObject* parent)
|
DeviceManager::DeviceManager(Application* app, QObject* parent)
|
||||||
: QAbstractListModel(parent),
|
: QAbstractListModel(parent),
|
||||||
app_(app),
|
app_(app),
|
||||||
not_connected_overlay_(IconLoader::Load("edit-delete", IconLoader::Base)) {
|
not_connected_overlay_(
|
||||||
|
IconLoader::Load("edit-delete", IconLoader::Base)) {
|
||||||
thread_pool_.setMaxThreadCount(1);
|
thread_pool_.setMaxThreadCount(1);
|
||||||
connect(app_->task_manager(), SIGNAL(TasksChanged()), SLOT(TasksChanged()));
|
connect(app_->task_manager(), SIGNAL(TasksChanged()), SLOT(TasksChanged()));
|
||||||
|
|
||||||
@ -200,7 +201,7 @@ DeviceManager::DeviceManager(Application* app, QObject* parent)
|
|||||||
#ifdef HAVE_GIO
|
#ifdef HAVE_GIO
|
||||||
AddLister(new GioLister);
|
AddLister(new GioLister);
|
||||||
#endif
|
#endif
|
||||||
#ifdef Q_OS_DARWIN
|
#if defined(Q_OS_DARWIN) and defined(HAVE_LIBMTP)
|
||||||
AddLister(new MacDeviceLister);
|
AddLister(new MacDeviceLister);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -323,7 +324,6 @@ QVariant DeviceManager::data(const QModelIndex& index, int role) const {
|
|||||||
if (info.database_id_ == -1 &&
|
if (info.database_id_ == -1 &&
|
||||||
!info.BestBackend()->lister_->DeviceNeedsMount(
|
!info.BestBackend()->lister_->DeviceNeedsMount(
|
||||||
info.BestBackend()->unique_id_)) {
|
info.BestBackend()->unique_id_)) {
|
||||||
|
|
||||||
if (info.BestBackend()->lister_->AskForScan(
|
if (info.BestBackend()->lister_->AskForScan(
|
||||||
info.BestBackend()->unique_id_)) {
|
info.BestBackend()->unique_id_)) {
|
||||||
std::unique_ptr<QMessageBox> dialog(new QMessageBox(
|
std::unique_ptr<QMessageBox> dialog(new QMessageBox(
|
||||||
@ -629,8 +629,8 @@ std::shared_ptr<ConnectedDevice> DeviceManager::Connect(int row) {
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::shared_ptr<ConnectedDevice> DeviceManager::GetConnectedDevice(int row)
|
std::shared_ptr<ConnectedDevice> DeviceManager::GetConnectedDevice(
|
||||||
const {
|
int row) const {
|
||||||
return devices_[row].device_;
|
return devices_[row].device_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user