From 804f6a4d46fa519558a321c4f86c72fd11610759 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 3 May 2021 23:28:27 +0900 Subject: Fixed FTBFS when building without tdehw lib but with HAL enabled. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michele Calgaro Signed-off-by: Slávek Banko --- ConfigureChecks.cmake | 10 ++++++++++ libk3bdevice/CMakeLists.txt | 2 +- libk3bdevice/k3bhalconnection.cpp | 15 +++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 03eeb89..b3f7522 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -106,6 +106,16 @@ if( WITH_HAL ) pkg_search_module( HAL hal ) if( HAL_FOUND ) set ( HAVE_HAL 1 ) + # search for dbus + pkg_search_module( DBUS dbus-1 ) + if( NOT DBUS_FOUND ) + tde_message_fatal( "dbus-1 is required, but was not found on your system" ) + endif( ) + # search for dbus-tqt + pkg_search_module( DBUS_TQT dbus-tqt ) + if( NOT DBUS_TQT_FOUND ) + tde_message_fatal( "dbus-tqt is required, but was not found on your system" ) + endif() else ( ) tde_message_fatal( "hal is required, but was not found on your system" ) endif( ) diff --git a/libk3bdevice/CMakeLists.txt b/libk3bdevice/CMakeLists.txt index cfb0e29..90c13ed 100644 --- a/libk3bdevice/CMakeLists.txt +++ b/libk3bdevice/CMakeLists.txt @@ -31,7 +31,7 @@ tde_add_library( k3bdevice SHARED AUTOMOC k3bdeviceglobals.cpp k3bcrc.cpp k3bcdtext.cpp k3bhalconnection.cpp k3bdebug.cpp VERSION 5.0.0 - LINK tdecore-shared + LINK tdecore-shared ${HAL_LIBRARIES} ${DBUS_TQT_LIBRARIES} DESTINATION ${LIB_INSTALL_DIR} ) diff --git a/libk3bdevice/k3bhalconnection.cpp b/libk3bdevice/k3bhalconnection.cpp index 396237e..9111469 100644 --- a/libk3bdevice/k3bhalconnection.cpp +++ b/libk3bdevice/k3bhalconnection.cpp @@ -612,6 +612,21 @@ void K3bDevice::HalConnection::setupDBusTQtConnection( DBusConnection* dbusConne d->dBusTQtConnection->dbus_connection_setup_with_qt_main( dbusConnection ); } +void K3bDevice::HalConnection::AddDeviceHandler(TDEGenericDevice* hwdevice) +{ + // Empty body, only to avoid linking errors +} + +void K3bDevice::HalConnection::RemoveDeviceHandler(TDEGenericDevice* hwdevice) +{ + // Empty body, only to avoid linking errors +} + +void K3bDevice::HalConnection::ModifyDeviceHandler(TDEGenericDevice* hwdevice) +{ + // Empty body, only to avoid linking errors +} + #else // HAVE_HAL #ifdef __TDE_HAVE_TDEHWLIB -- cgit v1.2.3