File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,9 @@ if(Qt5Core_DIR)
38
38
set (LASTFM_LIB_VERSION_SUFFIX 5 )
39
39
message (STATUS "Found Qt5! Please keep in mind, this is highly experimental and not our main development target.." )
40
40
include_directories (${Qt5Core_INCLUDE_DIRS} )
41
- find_package (Qt5DBus REQUIRED )
41
+ if (UNIX AND NOT APPLE )
42
+ find_package (Qt5DBus REQUIRED )
43
+ endif ()
42
44
43
45
# macro(qt_wrap_ui)
44
46
# qt5_wrap_ui(${ARGN})
Original file line number Diff line number Diff line change @@ -131,11 +131,11 @@ lastfm::InternetConnectionMonitor::createNetworkConnectionMonitor()
131
131
{
132
132
NetworkConnectionMonitor* ncm = 0 ;
133
133
134
- #ifdef defined(Q_OS_MAC)
134
+ #if defined(Q_OS_MAC)
135
135
ncm = new MNetworkConnectionMonitor ( this );
136
136
#elif defined(Q_OS_WIN) && ! defined __MINGW32__
137
137
ncm = new WNetworkConnectionMonitor ( this );
138
- #elif defined(Q_OS_UNIX )
138
+ #elif defined(Q_OS_LINUX )
139
139
ncm = new LNetworkConnectionMonitor ( this );
140
140
#endif
141
141
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ static QDir dataDotDot()
62
62
return QDir::home ();
63
63
#elif defined(Q_OS_MAC)
64
64
return QDir::home ().filePath ( " Library/Application Support" );
65
- #elif defined(Q_OS_UNIX)
65
+ #elif defined(Q_OS_LINUX) || defined( Q_OS_UNIX)
66
66
return QDir::home ().filePath ( " .local/share" );
67
67
#else
68
68
return QDir::home ();
@@ -199,7 +199,7 @@ lastfm::platform()
199
199
200
200
default : return " Unknown" ;
201
201
}
202
- #elif defined Q_OS_UNIX
202
+ #elif defined(Q_OS_LINUX) || defined( Q_OS_UNIX)
203
203
return " UNIX X11" ;
204
204
#else
205
205
return " Unknown" ;
You can’t perform that action at this time.
0 commit comments