mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-22 20:44:15 +00:00
Mac specific changes by Stephanos Antaris
This commit is contained in:
parent
0e9abc1762
commit
2cd4937ddc
@ -54,6 +54,7 @@ const int UNLEN = 256;
|
|||||||
|
|
||||||
#ifdef Q_WS_MAC
|
#ifdef Q_WS_MAC
|
||||||
#include <CoreServices/CoreServices.h>
|
#include <CoreServices/CoreServices.h>
|
||||||
|
#include <Carbon/Carbon.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef Q_WS_WIN
|
#ifndef Q_WS_WIN
|
||||||
@ -210,7 +211,7 @@ void misc::shutdownComputer() {
|
|||||||
|
|
||||||
if (error != noErr)
|
if (error != noErr)
|
||||||
{
|
{
|
||||||
return(error);
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
error = AECreateAppleEvent(kCoreEventClass, EventToSend, &targetDesc,
|
error = AECreateAppleEvent(kCoreEventClass, EventToSend, &targetDesc,
|
||||||
@ -219,7 +220,7 @@ void misc::shutdownComputer() {
|
|||||||
AEDisposeDesc(&targetDesc);
|
AEDisposeDesc(&targetDesc);
|
||||||
if (error != noErr)
|
if (error != noErr)
|
||||||
{
|
{
|
||||||
return(error);
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
error = AESend(&appleEventToSend, &eventReply, kAENoReply,
|
error = AESend(&appleEventToSend, &eventReply, kAENoReply,
|
||||||
@ -228,7 +229,7 @@ void misc::shutdownComputer() {
|
|||||||
AEDisposeDesc(&appleEventToSend);
|
AEDisposeDesc(&appleEventToSend);
|
||||||
if (error != noErr)
|
if (error != noErr)
|
||||||
{
|
{
|
||||||
return(error);
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
AEDisposeDesc(&eventReply);
|
AEDisposeDesc(&eventReply);
|
||||||
|
@ -74,7 +74,7 @@ macx {
|
|||||||
DATADIR = /usr/local/share
|
DATADIR = /usr/local/share
|
||||||
|
|
||||||
INCLUDEPATH += /usr/local/include/libtorrent /usr/include/openssl /usr/include /opt/local/include/boost /opt/local/include
|
INCLUDEPATH += /usr/local/include/libtorrent /usr/include/openssl /usr/include /opt/local/include/boost /opt/local/include
|
||||||
LIBS += -ltorrent-rasterbar -lcrypto -L/opt/local/lib -lboost_system-mt -lboost_filesystem-mt -lboost_thread-mt -framework Cocoa
|
LIBS += -ltorrent-rasterbar -lcrypto -L/opt/local/lib -lboost_system-mt -lboost_filesystem-mt -lboost_thread-mt -framework Cocoa -framework Carbon
|
||||||
|
|
||||||
document_icon.path = Contents/Resources
|
document_icon.path = Contents/Resources
|
||||||
document_icon.files = Icons/qBitTorrentDocument.icns
|
document_icon.files = Icons/qBitTorrentDocument.icns
|
||||||
@ -160,7 +160,7 @@ unix {
|
|||||||
|
|
||||||
QT += network
|
QT += network
|
||||||
!contains(DEFINES, DISABLE_GUI):QT += xml
|
!contains(DEFINES, DISABLE_GUI):QT += xml
|
||||||
unix {
|
unix:!macx {
|
||||||
QT += dbus
|
QT += dbus
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user