Browse Source

Mac specific changes by Stephanos Antaris

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
2cd4937ddc
  1. 7
      src/misc.cpp
  2. 4
      src/src.pro

7
src/misc.cpp

@ -54,6 +54,7 @@ const int UNLEN = 256; @@ -54,6 +54,7 @@ const int UNLEN = 256;
#ifdef Q_WS_MAC
#include <CoreServices/CoreServices.h>
#include <Carbon/Carbon.h>
#endif
#ifndef Q_WS_WIN
@ -210,7 +211,7 @@ void misc::shutdownComputer() { @@ -210,7 +211,7 @@ void misc::shutdownComputer() {
if (error != noErr)
{
return(error);
return;
}
error = AECreateAppleEvent(kCoreEventClass, EventToSend, &targetDesc,
@ -219,7 +220,7 @@ void misc::shutdownComputer() { @@ -219,7 +220,7 @@ void misc::shutdownComputer() {
AEDisposeDesc(&targetDesc);
if (error != noErr)
{
return(error);
return;
}
error = AESend(&appleEventToSend, &eventReply, kAENoReply,
@ -228,7 +229,7 @@ void misc::shutdownComputer() { @@ -228,7 +229,7 @@ void misc::shutdownComputer() {
AEDisposeDesc(&appleEventToSend);
if (error != noErr)
{
return(error);
return;
}
AEDisposeDesc(&eventReply);

4
src/src.pro

@ -74,7 +74,7 @@ macx { @@ -74,7 +74,7 @@ macx {
DATADIR = /usr/local/share
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.files = Icons/qBitTorrentDocument.icns
@ -160,7 +160,7 @@ unix { @@ -160,7 +160,7 @@ unix {
QT += network
!contains(DEFINES, DISABLE_GUI):QT += xml
unix {
unix:!macx {
QT += dbus
}

Loading…
Cancel
Save