diff --git a/CMakeLists.txt b/CMakeLists.txt index a9866cfaf1..0a97d7a3bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,8 +11,6 @@ include (KDE4Defaults) include (MacroLibrary) include(MacroOptionalAddSubdirectory) -macro_optional_find_package(OpenGL) - include(ConfigureChecks.cmake) configure_file (config-apps.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-apps.h ) include_directories (${CMAKE_CURRENT_BINARY_DIR}) diff --git a/cmake/modules/FindPCIUTILS.cmake b/cmake/modules/FindPCIUTILS.cmake new file mode 100644 index 0000000000..298f95d8ed --- /dev/null +++ b/cmake/modules/FindPCIUTILS.cmake @@ -0,0 +1,20 @@ +# - Try to find the pciutils directory library +# Once done this will define +# +# PCIUTILS_FOUND - system has PCIUtils +# PCIUTILS_INCLUDE_DIR - the PCIUTILS include directory +# PCIUTILS_LIBRARIES - The libraries needed to use FAM + +if(PCIUTILS_INCLUDE_DIR AND PCIUTILS_LIBRARIES) + set(PCIUTILS_FIND_QUIETLY TRUE) +endif(PCIUTILS_INCLUDE_DIR AND PCIUTILS_LIBRARIES) + +FIND_PATH(PCIUTILS_INCLUDE_DIR pci/pci.h) + +FIND_LIBRARY(PCIUTILS_LIBRARIES NAMES pci ) + +include(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(PCIUTILS DEFAULT_MSG PCIUTILS_LIBRARIES PCIUTILS_INCLUDE_DIR) + +MARK_AS_ADVANCED(PCIUTILS_INCLUDE_DIR PCIUTILS_LIBRARIES) + diff --git a/kinfocenter/CMakeLists.txt b/kinfocenter/CMakeLists.txt index 3d70e4ff93..39e6f9cd0b 100644 --- a/kinfocenter/CMakeLists.txt +++ b/kinfocenter/CMakeLists.txt @@ -1,12 +1,32 @@ + +add_definitions( -DKDE_DEFAULT_DEBUG_AREA=1208 ) + add_subdirectory( about ) -add_definitions (-DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS) - add_subdirectory( solidproc ) + add_subdirectory( info ) + add_subdirectory( nics ) add_subdirectory( usbview ) -add_subdirectory( opengl ) +add_subdirectory( memory ) + +macro_optional_find_package(OpenGL) +macro_log_feature(OPENGL_FOUND "OpenGL" "API for developing portable, interactive 2D and 3D graphics applications" "http://mesa3d.sourceforge.net" FALSE "" "View OpenGL details in kinfocenter.") + +if(OPENGL_FOUND AND OPENGL_GLU_FOUND) + add_subdirectory( opengl ) +else(OPENGL_FOUND AND OPENGL_GLU_FOUND) + MESSAGE(STATUS "OpenGL information module has been disabled.") +endif(OPENGL_FOUND AND OPENGL_GLU_FOUND) + + +macro_optional_find_package(PCIUTILS) +macro_log_feature(PCIUTILS_FOUND "PCIUTILS" "PciUtils is a library for direct access to PCI slots" "http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml" FALSE "" "View PCI details in kinfocenter.") + +if(NOT APPLE) + add_subdirectory( pci ) +endif(NOT APPLE) macro_optional_find_package(RAW1394) macro_log_feature(RAW1394_FOUND "RAW1394" "library for direct access to IEEE 1394 bus" "http://www.linux1394.org/" FALSE "" "View FireWire devices in kinfocenter.") @@ -19,25 +39,13 @@ set(kinfocenter_SRCS main.cpp toplevel.cpp indexwidget.cpp - helpwidget.cpp dockcontainer.cpp aboutwidget.cpp - quickhelp.cpp moduletreeview.cpp - moduleiconview.cpp - moduleIface.cpp global.cpp modules.cpp proxywidget.cpp - kcrootonly.cpp - searchwidget.cpp ) - -set(kinfocenter_adaptor ${KDEBASE_APPS_SOURCE_DIR}/kinfocenter/moduleIface.h) -set(kinfocenter_xml ${CMAKE_CURRENT_BINARY_DIR}/org.kde.Kinfocenter.xml) -ADD_CUSTOM_COMMAND(OUTPUT ${kinfocenter_xml} - COMMAND ${QT_DBUSCPP2XML_EXECUTABLE} ${kinfocenter_adaptor} > ${kinfocenter_xml} - DEPENDS ${kinfocenter_adaptor}) -QT4_ADD_DBUS_INTERFACE( kinfocenter_SRCS ${kinfocenter_xml} kinfocenter_interface ) +) set(kinfocenter_KDEINIT_SRCS ${kinfocenter_SRCS}) diff --git a/kinfocenter/about/kinfocenter.css b/kinfocenter/about/kinfocenter.css index 8c646676e5..084d941956 100644 --- a/kinfocenter/about/kinfocenter.css +++ b/kinfocenter/about/kinfocenter.css @@ -44,9 +44,3 @@ font-size: xx-small; } -.kcm_link { - color: #000; -} - -/* vim:set sw=2 et nocindent smartindent: */ - diff --git a/kinfocenter/about/main.html b/kinfocenter/about/main.html index bb9c73cb3d..57a23405bf 100644 --- a/kinfocenter/about/main.html +++ b/kinfocenter/about/main.html @@ -4,13 +4,10 @@
- -