Skip to content

Commit

Permalink
Merge pull request #27 from muesli/master
Browse files Browse the repository at this point in the history
Build system & ifdef fixes
  • Loading branch information
ben-xo committed Oct 2, 2014
2 parents e4952ff + d9bea7b commit fb089f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ if(Qt5Core_DIR)
set(LASTFM_LIB_VERSION_SUFFIX 5)
message(STATUS "Found Qt5! Please keep in mind, this is highly experimental and not our main development target..")
include_directories(${Qt5Core_INCLUDE_DIRS})
find_package(Qt5DBus REQUIRED)
if(UNIX AND NOT APPLE)
find_package(Qt5DBus REQUIRED)
endif()

# macro(qt_wrap_ui)
# qt5_wrap_ui(${ARGN})
Expand Down
4 changes: 2 additions & 2 deletions src/InternetConnectionMonitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ lastfm::InternetConnectionMonitor::createNetworkConnectionMonitor()
{
NetworkConnectionMonitor* ncm = 0;

#ifdef defined(Q_OS_MAC)
#if defined(Q_OS_MAC)
ncm = new MNetworkConnectionMonitor( this );
#elif defined(Q_OS_WIN) && ! defined __MINGW32__
ncm = new WNetworkConnectionMonitor( this );
#elif defined(Q_OS_UNIX)
#elif defined(Q_OS_LINUX)
ncm = new LNetworkConnectionMonitor( this );
#endif

Expand Down
4 changes: 2 additions & 2 deletions src/misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static QDir dataDotDot()
return QDir::home();
#elif defined(Q_OS_MAC)
return QDir::home().filePath( "Library/Application Support" );
#elif defined(Q_OS_UNIX)
#elif defined(Q_OS_LINUX) || defined(Q_OS_UNIX)
return QDir::home().filePath( ".local/share" );
#else
return QDir::home();
Expand Down Expand Up @@ -199,7 +199,7 @@ lastfm::platform()

default: return "Unknown";
}
#elif defined Q_OS_UNIX
#elif defined(Q_OS_LINUX) || defined(Q_OS_UNIX)
return "UNIX X11";
#else
return "Unknown";
Expand Down

0 comments on commit fb089f6

Please sign in to comment.