Fix FTBFS on tdehardwaredevices.cpp with some combinations of options.

This resolves bug report 1594.
pull/16/head
Alexander Golubev 11 years ago committed by Darrell Anderson
parent 6f4fd5e563
commit c8d64e3c7b

@ -19,14 +19,15 @@ if( NOT DBUS_SYSTEM_BUS )
set( DBUS_SYSTEM_BUS "unix:path=/var/run/dbus/system_bus_socket" CACHE INTERNAL "" FORCE ) set( DBUS_SYSTEM_BUS "unix:path=/var/run/dbus/system_bus_socket" CACHE INTERNAL "" FORCE )
endif() endif()
if( WITH_UPOWER OR WITH_UDISKS OR WITH_UDISKS2 OR
WITH_NETWORK_MANAGER_BACKEND OR WITH_CONSOLEKIT )
list( APPEND TDEHW_CUSTOM_INCLUDE_DIRS ${DBUS_TQT_INCLUDE_DIRS} )
list( APPEND TDEHW_CUSTOM_LIBRARY_DIRS ${DBUS_TQT_LIBRARY_DIRS} )
list( APPEND TDEHW_CUSTOM_LIBRARIES ${DBUS_TQT_LIBRARIES} )
endif( )
if( WITH_UPOWER ) if( WITH_UPOWER )
add_definitions( -DWITH_UPOWER ) add_definitions( -DWITH_UPOWER )
set ( TDEUPOWER_INCLUDE_DIRECTORIES
${DBUS_TQT_INCLUDE_DIRS}
)
set ( TDEUPOWER_LIBRARIES
${DBUS_TQT_LIBRARIES}
)
endif( ) endif( )
if( WITH_UDISKS ) if( WITH_UDISKS )
@ -48,14 +49,12 @@ endif( WITH_LIBART )
if( WITH_NETWORK_MANAGER_BACKEND ) if( WITH_NETWORK_MANAGER_BACKEND )
add_subdirectory( networkbackends/network-manager/dbus ) add_subdirectory( networkbackends/network-manager/dbus )
set ( TDENM_INCLUDE_DIRECTORIES list( APPEND TDEHW_CUSTOM_INCLUDE_DIRS
${DBUS_TQT_INCLUDE_DIRS}
${NM_UTIL_INCLUDE_DIRS} ${NM_UTIL_INCLUDE_DIRS}
"${CMAKE_BINARY_DIR}/tdecore/networkbackends/network-manager/dbus" "${CMAKE_CURRENT_BINARY_DIR}/networkbackends/network-manager/dbus"
) )
set ( TDENM_LIBRARIES list( APPEND TDEHW_CUSTOM_LIBRARIES
tdenm_dbus-static tdenm_dbus-static
${DBUS_TQT_LIBRARIES}
) )
set ( TDENM_BACKEND_SOURCES networkbackends/network-manager/network-manager.cpp ) set ( TDENM_BACKEND_SOURCES networkbackends/network-manager/network-manager.cpp )
endif( WITH_NETWORK_MANAGER_BACKEND ) endif( WITH_NETWORK_MANAGER_BACKEND )
@ -75,8 +74,7 @@ include_directories(
${LIBART_INCLUDE_DIRS} ${LIBART_INCLUDE_DIRS}
${LIBIDN_INCLUDE_DIRS} ${LIBIDN_INCLUDE_DIRS}
${GAMIN_INCLUDEDIR} ${GAMIN_INCLUDEDIR}
${TDENM_INCLUDE_DIRECTORIES} ${TDEHW_CUSTOM_INCLUDE_DIRS}
${TDEUPOWER_INCLUDE_DIRECTORIES}
) )
link_directories( link_directories(
@ -84,6 +82,7 @@ link_directories(
${LIBIDN_LIBRARY_DIRS} ${LIBIDN_LIBRARY_DIRS}
${GAMIN_LIBDIR} ${GAMIN_LIBDIR}
${LIBART_LIBRARY_DIRS} ${LIBART_LIBRARY_DIRS}
${TDEHW_CUSTOM_LIBRARY_DIRS}
) )
##### headers ################################### ##### headers ###################################
@ -178,7 +177,7 @@ tde_add_library( ${target} SHARED AUTOMOC
SOURCES ${${target}_SRCS} SOURCES ${${target}_SRCS}
VERSION 4.2.0 VERSION 4.2.0
EMBED tdecorenetwork-static EMBED tdecorenetwork-static
LINK ltdlc-static ${KDESVGICONS} DCOP-shared tdefx-shared ${ZLIB_LIBRARIES} ${LIBIDN_LIBRARIES} ${XCOMPOSITE_LIBRARIES} ICE SM udev ${GAMIN_LIBRARIES} ${TDENM_LIBRARIES} ${TDEUPOWER_LIBRARIES} LINK ltdlc-static ${KDESVGICONS} DCOP-shared tdefx-shared ${ZLIB_LIBRARIES} ${LIBIDN_LIBRARIES} ${XCOMPOSITE_LIBRARIES} ICE SM udev ${GAMIN_LIBRARIES} ${TDEHW_CUSTOM_LIBRARIES}
DEPENDENCIES dcopidl dcopidl2cpp DEPENDENCIES dcopidl dcopidl2cpp
DESTINATION ${LIB_INSTALL_DIR} DESTINATION ${LIB_INSTALL_DIR}
) )

@ -70,7 +70,7 @@ extern "C" {
#endif // WITH_NETWORK_MANAGER_BACKEND #endif // WITH_NETWORK_MANAGER_BACKEND
// uPower and uDisks2 integration // uPower and uDisks2 integration
#if defined(WITH_UPOWER) || defined(WITH_UDISKS) || defined(WITH_UDISKS2) #if defined(WITH_UPOWER) || defined(WITH_UDISKS) || defined(WITH_UDISKS2) || defined(WITH_CONSOLEKIT)
#include <tqdbusdata.h> #include <tqdbusdata.h>
#include <tqdbusmessage.h> #include <tqdbusmessage.h>
#include <tqdbusproxy.h> #include <tqdbusproxy.h>

Loading…
Cancel
Save