Commit 9ec59a7c authored by Boudewijn Rempt's avatar Boudewijn Rempt

Only check for DBus on Linux

parent 20d8ec0f
......@@ -257,9 +257,6 @@ find_package(Qt5 ${MIN_QT_VERSION}
set(QT_QTTEST_LIBRARY Qt5::Test)
if (NOT WIN32 AND NOT APPLE)
find_package(Qt5 ${MIN_QT_VERSION} REQUIRED X11Extras)
endif()
include (MacroLibrary)
include (MacroAdditionalCleanFiles)
......@@ -272,37 +269,39 @@ macro_ensure_out_of_source_build("Compiling Krita inside the source directory is
find_package(Qt5Quick ${MIN_QT_VERSION} QUIET)
macro_log_feature(${Qt5Quick_FOUND} "QtQuick" "Qt Quick" "http://www.qt.io" FALSE "" "Necessary to build the tablet gui for Krita")
find_package(Qt5DBus ${MIN_QT_VERSION} QUIET)
set(HAVE_DBUS ${Qt5DBus_FOUND})
macro_log_feature(${Qt5DBus_FOUND} "dbus" "Qt DBUS integration" "http://www.qt.io/" FALSE "" "Optionally used to provide a dbus api on Linux")
if (NOT WIN32 AND NOT APPLE)
find_package(Qt5 ${MIN_QT_VERSION} REQUIRED X11Extras)
if (NOT WIN32 AND NOT APPLE)
find_package(Qt5DBus ${MIN_QT_VERSION} QUIET)
set(HAVE_DBUS ${Qt5DBus_FOUND})
macro_log_feature(${Qt5DBus_FOUND} "dbus" "Qt DBUS integration" "http://www.qt.io/" FALSE "" "Optionally used to provide a dbus api on Linux")
find_package(KF5KIO ${MIN_FRAMEWORKS_VERSION} QUIET)
macro_bool_to_01(KF5KIO_FOUND HAVE_KIO)
macro_log_feature(${KF5KIO_FOUND} "KIO" "KDE's KIO Framework" "http://api.kde.org/frameworks-api/frameworks5-apidocs/kio/html/index.html" FALSE "" "Optionally used for recent document handling")
find_package(KF5KIO ${MIN_FRAMEWORKS_VERSION} QUIET)
macro_bool_to_01(KF5KIO_FOUND HAVE_KIO)
macro_log_feature(${KF5KIO_FOUND} "KIO" "KDE's KIO Framework" "http://api.kde.org/frameworks-api/frameworks5-apidocs/kio/html/index.html" FALSE "" "Optionally used for recent document handling")
find_package(KF5Crash ${MIN_FRAMEWORKS_VERSION} QUIET)
macro_bool_to_01(KF5Crash_FOUND HAVE_KCRASH)
macro_log_feature(${KF5Crash_FOUND} "kcrash" "KDE's Crash Handler" "http://api.kde.org/frameworks-api/frameworks5-apidocs/kcrash/html/index.html" FALSE "" "Optionally used to provide crash reporting on Linux")
find_package(KF5Crash ${MIN_FRAMEWORKS_VERSION} QUIET)
macro_bool_to_01(KF5Crash_FOUND HAVE_KCRASH)
macro_log_feature(${KF5Crash_FOUND} "kcrash" "KDE's Crash Handler" "http://api.kde.org/frameworks-api/frameworks5-apidocs/kcrash/html/index.html" FALSE "" "Optionally used to provide crash reporting on Linux")
find_package(X11)
if(X11_FOUND)
find_package(Qt5 ${MIN_QT_VERSION} REQUIRED NO_MODULE COMPONENTS X11Extras)
set(HAVE_X11 TRUE)
add_definitions(-DHAVE_X11)
else()
set(HAVE_X11 FALSE)
endif()
find_package(X11)
if(X11_FOUND)
find_package(Qt5 ${MIN_QT_VERSION} REQUIRED NO_MODULE COMPONENTS X11Extras)
set(HAVE_X11 TRUE)
add_definitions(-DHAVE_X11)
else()
set(HAVE_X11 FALSE)
endif()
find_package(XCB COMPONENTS XCB ATOM)
if(XCB_FOUND)
set(HAVE_XCB TRUE)
else()
set(HAVE_XCB FALSE)
endif()
find_package(XCB COMPONENTS XCB ATOM)
if(XCB_FOUND)
set(HAVE_XCB TRUE)
else()
set(HAVE_XCB FALSE)
endif()
else()
set(HAVE_DBUS FALSE)
set(HAVE_X11 FALSE)
set(HAVE_XCB FALSE)
endif()
......
if (UNIX AND NOT APPLE AND ${Qt5DBus_FOUND})
if (UNIX AND NOT APPLE AND HAVE_DBUS)
add_subdirectory(colord)
set(kritacolor_LIB_SRCS kis_color_manager.h linux/kis_color_manager.cpp)
set(kritacolor_EXTRA_LIBRARIES kritacolord)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment