move all tdehw stuff into separate subdir

pull/16/head
Golubev Alexander 11 years ago
parent 70ce443ca3
commit 0984f01947

@ -12,61 +12,20 @@
add_subdirectory( malloc ) add_subdirectory( malloc )
add_subdirectory( network ) add_subdirectory( network )
add_subdirectory( tdeconfig_compiler ) add_subdirectory( tdeconfig_compiler )
add_subdirectory( hwlibdata ) add_subdirectory( tdehw )
add_subdirectory( hwlibdaemons )
if( NOT DBUS_SYSTEM_BUS )
set( DBUS_SYSTEM_BUS "unix:path=/var/run/dbus/system_bus_socket" CACHE INTERNAL "" FORCE )
endif()
if( WITH_UPOWER )
add_definitions( -DWITH_UPOWER )
set ( TDEUPOWER_INCLUDE_DIRECTORIES
${DBUS_TQT_INCLUDE_DIRS}
)
set ( TDEUPOWER_LIBRARIES
${DBUS_TQT_LIBRARIES}
)
endif( )
if( WITH_UDISKS )
add_definitions( -DWITH_UDISKS )
endif( )
if( WITH_UDISKS2 )
add_definitions( -DWITH_UDISKS2 )
endif( )
if( WITH_CONSOLEKIT )
add_definitions( -DWITH_CONSOLEKIT )
endif( )
if( WITH_LIBART ) if( WITH_LIBART )
add_subdirectory( svgicons ) add_subdirectory( svgicons )
set( KDESVGICONS kdesvgicons-static ) set( KDESVGICONS kdesvgicons-static )
endif( WITH_LIBART ) endif( WITH_LIBART )
if( WITH_NETWORK_MANAGER_BACKEND )
add_subdirectory( networkbackends/network-manager/dbus )
set ( TDENM_INCLUDE_DIRECTORIES
${DBUS_TQT_INCLUDE_DIRS}
${NM_UTIL_INCLUDE_DIRS}
"${CMAKE_BINARY_DIR}/tdecore/networkbackends/network-manager/dbus"
)
set ( TDENM_LIBRARIES
tdenm_dbus-static
${DBUS_TQT_LIBRARIES}
)
set ( TDENM_BACKEND_SOURCES networkbackends/network-manager/network-manager.cpp )
endif( WITH_NETWORK_MANAGER_BACKEND )
include_directories( include_directories(
${TQT_INCLUDE_DIRS} ${TQT_INCLUDE_DIRS}
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/network ${CMAKE_CURRENT_SOURCE_DIR}/network
${CMAKE_CURRENT_SOURCE_DIR}/tdehw
${CMAKE_SOURCE_DIR}/dcop ${CMAKE_SOURCE_DIR}/dcop
${CMAKE_SOURCE_DIR}/libltdl ${CMAKE_SOURCE_DIR}/libltdl
${CMAKE_SOURCE_DIR}/tdefx ${CMAKE_SOURCE_DIR}/tdefx
@ -75,8 +34,6 @@ include_directories(
${LIBART_INCLUDE_DIRS} ${LIBART_INCLUDE_DIRS}
${LIBIDN_INCLUDE_DIRS} ${LIBIDN_INCLUDE_DIRS}
${GAMIN_INCLUDEDIR} ${GAMIN_INCLUDEDIR}
${TDENM_INCLUDE_DIRECTORIES}
${TDEUPOWER_INCLUDE_DIRECTORIES}
) )
link_directories( link_directories(
@ -111,8 +68,7 @@ install( FILES
kcalendarsystem.h kcalendarsystemfactory.h kmacroexpander.h kcalendarsystem.h kcalendarsystemfactory.h kmacroexpander.h
kmanagerselection.h kmountpoint.h kuser.h klockfile.h kmanagerselection.h kmountpoint.h kuser.h klockfile.h
kidna.h ktempdir.h kshell.h fixx11h.h kxerrorhandler.h kidna.h ktempdir.h kshell.h fixx11h.h kxerrorhandler.h
tdelibs_export.h kde_file.h ktimezones.h tdehardwaredevices.h tdelibs_export.h kde_file.h ktimezones.h
tdenetworkconnections.h
${CMAKE_CURRENT_BINARY_DIR}/kdemacros.h ${CMAKE_CURRENT_BINARY_DIR}/kdemacros.h
DESTINATION ${INCLUDE_INSTALL_DIR} ) DESTINATION ${INCLUDE_INSTALL_DIR} )
@ -168,16 +124,15 @@ set( ${target}_SRCS
ktempdir.cpp kshell.cpp kmountpoint.cpp kcalendarsystemjalali.cpp ktempdir.cpp kshell.cpp kmountpoint.cpp kcalendarsystemjalali.cpp
kprotocolinfo_tdecore.cpp kprotocolinfofactory.cpp kxerrorhandler.cpp kprotocolinfo_tdecore.cpp kprotocolinfofactory.cpp kxerrorhandler.cpp
kuser.cpp tdeconfigskeleton.cpp tdeconfigdialogmanager.cpp klockfile.cpp kuser.cpp tdeconfigskeleton.cpp tdeconfigdialogmanager.cpp klockfile.cpp
kqiodevicegzip_p.cpp ktimezones.cpp tdehardwaredevices.cpp tdenetworkconnections.cpp kqiodevicegzip_p.cpp ktimezones.cpp ksimpledirwatch.cpp
ksimpledirwatch.cpp
${TDENM_BACKEND_SOURCES}
) )
tde_add_library( ${target} SHARED AUTOMOC 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 tdehw-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 ${GAMIN_LIBRARIES}
DEPENDENCIES dcopidl dcopidl2cpp DEPENDENCIES dcopidl dcopidl2cpp
DESTINATION ${LIB_INSTALL_DIR} DESTINATION ${LIB_INSTALL_DIR}
) )

@ -0,0 +1,82 @@
#################################################
#
# (C) 2013 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( hwlibdata )
add_subdirectory( hwlibdaemons )
add_subdirectory( networkbackends )
if( NOT DBUS_SYSTEM_BUS )
set( DBUS_SYSTEM_BUS "unix:path=/var/run/dbus/system_bus_socket" CACHE INTERNAL "" FORCE )
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 )
add_definitions( -DWITH_UPOWER )
endif( )
if( WITH_UDISKS )
add_definitions( -DWITH_UDISKS )
endif( )
if( WITH_UDISKS2 )
add_definitions( -DWITH_UDISKS2 )
endif( )
if( WITH_CONSOLEKIT )
add_definitions( -DWITH_CONSOLEKIT )
endif( )
if( WITH_NETWORK_MANAGER_BACKEND )
list( APPEND TDEHW_CUSTOM_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR}/networkbackends/network-manager/dbus )
list( APPEND TDEHW_CUSTOM_LIBRARIES network_manager_backend-static )
endif( WITH_NETWORK_MANAGER_BACKEND )
include_directories(
${TQT_INCLUDE_DIRS}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_BINARY_DIR}/tdecore
${CMAKE_SOURCE_DIR}/tdecore
${CMAKE_SOURCE_DIR}/dcop
${TDEHW_CUSTOM_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDEHW_CUSTOM_LIBRARY_DIRS}
)
##### headers ###################################
install( FILES tdehardwaredevices.h tdenetworkconnections.h
DESTINATION ${INCLUDE_INSTALL_DIR} )
##### libtdecore ################################
set( target tdehw )
set( ${target}_SRCS
tdehardwaredevices.cpp tdenetworkconnections.cpp
)
tde_add_library( ${target} STATIC_PIC AUTOMOC
SOURCES ${${target}_SRCS}
LINK udev ${TDENM_LIBRARIES} ${TDEUPOWER_LIBRARIES}
${TDEHW_CUSTOM_LIBRARIES}
)

@ -0,0 +1,12 @@
#################################################
#
# (C) 2013 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
tde_conditional_add_subdirectory( WITH_NETWORK_MANAGER_BACKEND network-manager )

@ -0,0 +1,36 @@
#################################################
#
# (C) 2013 Golubev Alexander
# fatzer2 (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( dbus-introspection )
include_directories (
${TQT_INCLUDE_DIRS}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${DBUS_TQT_INCLUDE_DIRS}
${NM_UTIL_INCLUDE_DIRS}
${CMAKE_BINARY_DIR}/tdecore
${CMAKE_SOURCE_DIR}/tdecore
${CMAKE_SOURCE_DIR}/tdecore/tdehw
${CMAKE_CURRENT_BINARY_DIR}/dbus-introspection
)
link_directories(
${TQT_LIBRARY_DIRS}
${DBUS_TQT_LIBRARY_DIRS}
)
tde_add_library( network_manager_backend STATIC_PIC AUTOMOC
SOURCES network-manager.cpp
EMBED tdenm_dbus-static
LINK tdenm_dbus-static ${DBUS_TQT_LIBRARIES}
)

@ -18,7 +18,7 @@ include_directories(
##### tdenm_dbus (static) ######################### ##### tdenm_dbus (static) #########################
set( INTROSPECTIONPATH "${CMAKE_SOURCE_DIR}/tdecore/networkbackends/network-manager/introspection" ) set( INTROSPECTIONPATH ${CMAKE_CURRENT_SOURCE_DIR} )
# options: # options:
# p - generate proxy files # p - generate proxy files
@ -71,6 +71,11 @@ add_custom_command( OUTPUT mocfiles.cpp
COMMAND cat ${_moc_files} > mocfiles.cpp COMMAND cat ${_moc_files} > mocfiles.cpp
DEPENDS ${_moc_files} ) DEPENDS ${_moc_files} )
# tde_automoc( accesspointproxy.h deviceproxy.h networkmanagerproxy.h
# networkmanagerpppproxy.h bluetoothproxy.h olpcmeshproxy.h
# ethernetproxy.h infinibandproxy.h wifiproxy.h wimaxproxy.h
# activeconnectionproxy.h vpnconnectionproxy.h vpnpluginproxy.h
# modemproxy.h networkmanagersettings.h connectionsettings.h )
# build the library # build the library
Loading…
Cancel
Save