From 85c2426f988de375bc666bef5a24529989737470 Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Fri, 1 Jun 2012 12:41:02 -0500 Subject: [PATCH] =?UTF-8?q?Fix=20svg=20thumbnail=20images=20not=20appearin?= =?UTF-8?q?g=20in=20KControl/Appearance=20&=20Themes/=20Background.=20This?= =?UTF-8?q?=20resolves=20bug=20report=20744.=20Thanks=20to=20Sl=E1vek=20Ba?= =?UTF-8?q?nko.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 1 + ConfigureChecks.cmake | 10 ++++++++++ config.h.cmake | 3 +++ kcontrol/background/CMakeLists.txt | 2 ++ kcontrol/icons/CMakeLists.txt | 3 ++- tdm/kfrontend/themer/CMakeLists.txt | 2 ++ 6 files changed, 20 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 437675bbf..b87e76ee7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,6 +67,7 @@ option( WITH_XRENDER "Enable xrender support" ${WITH_ALL_OPTIONS} ) option( WITH_XDAMAGE "Enable xdamage support" ${WITH_ALL_OPTIONS} ) option( WITH_XEXT "Enable xext support" ${WITH_ALL_OPTIONS} ) option( WITH_XTEST "Enable xext support" ${WITH_ALL_OPTIONS} ) +option( WITH_LIBART "Enable libart support (for SVG icons and wallpapers)" ${WITH_ALL_OPTIONS} ) option( WITH_LIBUSB "Enable control of some mouse models through libusb" ${WITH_ALL_OPTIONS} ) option( WITH_LIBRAW1394 "Enable visualization of ieee1394 devices through libraw1394" ${WITH_ALL_OPTIONS} ) option( WITH_SUDO_TDESU_BACKEND "Use sudo as backend for tdesu (default is su)" ${WITH_ALL_OPTIONS} ) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 90d78be21..ded1d0025 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -211,6 +211,16 @@ else( ) set( WITHOUT_ARTS 1 ) endif( ) +# libart + +if( WITH_LIBART ) + pkg_search_module( LIBART libart-2.0 ) + if( NOT LIBART_FOUND ) + message(FATAL_ERROR "\nlibart-2.0 support are requested, but not found on your system" ) + endif( NOT LIBART_FOUND ) + set( HAVE_LIBART 1 ) +endif( WITH_LIBART ) + # required stuff find_package( TQt ) diff --git a/config.h.cmake b/config.h.cmake index bd99f603f..a334fe786 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -21,6 +21,9 @@ // kxkb #cmakedefine HAVE_XTEST 1 +// libart +#cmakedefine HAVE_LIBART 1 + // tdm, kioslave #cmakedefine HAVE_TERMIOS_H 1 diff --git a/kcontrol/background/CMakeLists.txt b/kcontrol/background/CMakeLists.txt index 9f3f492f3..d45c31f19 100644 --- a/kcontrol/background/CMakeLists.txt +++ b/kcontrol/background/CMakeLists.txt @@ -18,6 +18,7 @@ if( BUILD_KCONTROL OR BUILD_KDESKTOP OR BUILD_TDM ) ${CMAKE_SOURCE_DIR}/libkonq ${TDE_INCLUDE_DIR} ${TQT_INCLUDE_DIRS} + ${LIBART_INCLUDE_DIRS} ) link_directories( @@ -28,6 +29,7 @@ if( BUILD_KCONTROL OR BUILD_KDESKTOP OR BUILD_TDM ) tde_add_library( bgnd STATIC_PIC AUTOMOC SOURCES bgrender.cpp bgsettings.cpp + LINK ${LIBART_LIBRARIES} ) endif( ) diff --git a/kcontrol/icons/CMakeLists.txt b/kcontrol/icons/CMakeLists.txt index 4e7a856ce..0a7dfbefb 100644 --- a/kcontrol/icons/CMakeLists.txt +++ b/kcontrol/icons/CMakeLists.txt @@ -14,6 +14,7 @@ include_directories( ${CMAKE_BINARY_DIR} ${TDE_INCLUDE_DIR} ${TQT_INCLUDE_DIRS} + ${LIBART_INCLUDE_DIRS} ) link_directories( @@ -30,6 +31,6 @@ install( FILES uninstall.desktop DESTINATION ${APPS_INSTALL_DIR}/Settings/LookNF tde_add_kpart( kcm_icons AUTOMOC SOURCES iconthemes.cpp icons.cpp main.cpp - LINK kio-shared + LINK kio-shared ${LIBART_LIBRARIES} DESTINATION ${PLUGIN_INSTALL_DIR} ) diff --git a/tdm/kfrontend/themer/CMakeLists.txt b/tdm/kfrontend/themer/CMakeLists.txt index fc0b80fc3..008c5d687 100644 --- a/tdm/kfrontend/themer/CMakeLists.txt +++ b/tdm/kfrontend/themer/CMakeLists.txt @@ -16,6 +16,7 @@ include_directories( ${CMAKE_SOURCE_DIR}/tdmlib ${TDE_INCLUDE_DIR} ${TQT_INCLUDE_DIRS} + ${LIBART_INCLUDE_DIRS} ) link_directories( @@ -38,4 +39,5 @@ tde_add_library( tdmthemer STATIC_PIC AUTOMOC SOURCES tdmthemer.cpp tdmitem.cpp tdmpixmap.cpp tdmrect.cpp tdmlabel.cpp tdmlayout.cpp + LINK ${LIBART_LIBRARIES} )