summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-02 00:12:15 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-03-02 00:12:15 +0000
commit25accf192389c28ab778910b894573e87df2d5e1 (patch)
tree2534a897b42c846e5f2197b861f25ae267569336
parent0c7d4bb71f9bb7ec47eccd57523c38dac41abed1 (diff)
downloadtdebase-25accf19.tar.gz
tdebase-25accf19.zip
[kdebase/klipper] added Xfixes support, klipper do not crashing anymore
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1223270 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--CMakeLists.txt1
-rw-r--r--ConfigureChecks.cmake12
-rw-r--r--config.h.cmake4
-rw-r--r--klipper/CMakeLists.txt2
4 files changed, 16 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1756d4487..939814f1e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -49,6 +49,7 @@ option( WITH_SAMBA "Enable SAMBA support" OFF )
option( WITH_OPENEXR "Enable openexr support" OFF )
option( WITH_XCOMPOSITE "Enable xcomposite support" OFF )
option( WITH_XCURSOR "Enable xcursor support" OFF )
+option( WITH_XFIXES "Enable xfixes support" OFF )
option( WITH_XRANDR "Enable xrandr support" OFF )
option( WITH_LIBUSB "Enable control of some mouse models through libusb" OFF )
option( WITH_LIBRAW1394 "Enable visualization of ieee1394 devices through libraw1394" OFF )
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 0533a21a7..21126547e 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -54,7 +54,6 @@ endif( )
# xcursor (kioslave, kcontrol)
-
if( WITH_XCURSOR )
pkg_search_module( XCURSOR xcursor )
if( XCURSOR_FOUND )
@@ -65,6 +64,17 @@ if( WITH_XCURSOR )
endif( )
+# xfixes (klipper)
+if( WITH_XFIXES )
+ pkg_search_module( XFIXES xfixes )
+ if( XFIXES_FOUND )
+ set( HAVE_XFIXES 1 CACHE INTERNAL "" FORCE )
+ else( )
+ tde_message_fatal( "xfixes are requested, but not found on your system" )
+ endif( )
+endif( )
+
+
# GL
if( BUILD_KDESKTOP OR BUILD_KCONTROL OR BUILD_KSCREENSAVER )
check_library_exists( GL glXChooseVisual "" HAVE_GLXCHOOSEVISUAL )
diff --git a/config.h.cmake b/config.h.cmake
index 13d0cfb93..d7e2b4dd6 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -6,6 +6,9 @@
// kdesktop, konsole, kcontrol, kicker
#cmakedefine HAVE_XRENDER 1
+// taskmanager, klipper
+#cmakedefine HAVE_XFIXES 1
+
// kdesktop, kcontrol, ksplashml
#cmakedefine HAVE_XCURSOR 1
@@ -43,7 +46,6 @@
// taskmanager
#cmakedefine HAVE_XCOMPOSITE
-#cmakedefine HAVE_XFIXES
// kcontrol/fonts
#cmakedefine HAVE_FONTCONFIG 1
diff --git a/klipper/CMakeLists.txt b/klipper/CMakeLists.txt
index 7016ae236..f9a9ceafa 100644
--- a/klipper/CMakeLists.txt
+++ b/klipper/CMakeLists.txt
@@ -59,5 +59,5 @@ tde_add_library( klipper_common STATIC_PIC AUTOMOC
toplevel.skel clipboardpoll.cpp history.cpp historyitem.cpp
historystringitem.cpp klipperpopup.cpp popupproxy.cpp
historyimageitem.cpp historyurlitem.cpp
- LINK kio-shared
+ LINK kio-shared ${XFIXES_LIBRARIES}
)