1
0
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:
Christophe Dumez 2010-08-17 10:50:14 +00:00
parent 0e9abc1762
commit 2cd4937ddc
2 changed files with 6 additions and 5 deletions

View File

@ -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);

View File

@ -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
} }