summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-09-17 18:00:47 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-09-17 18:00:47 +0000
commit0ce518fe82a953534b57c963893d982c2033c18c (patch)
tree6c4d79082bbb58651f1c5cf9453fc796a57404e0
parentece9abdc38cb8c4cc35fb350e481cc62ef8f71d9 (diff)
downloadtdenetwork-0ce518fe82a953534b57c963893d982c2033c18c.tar.gz
tdenetwork-0ce518fe82a953534b57c963893d982c2033c18c.zip
[kdenetwork/krfb] added cmake support
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1254101 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--CMakeLists.txt2
-rw-r--r--krfb/CMakeLists.txt19
-rw-r--r--krfb/ConfigureChecks.cmake15
-rw-r--r--krfb/kcm_krfb/CMakeLists.txt35
-rw-r--r--krfb/kinetd/CMakeLists.txt38
-rw-r--r--krfb/krfb/CMakeLists.txt54
-rw-r--r--krfb/krfb_httpd/CMakeLists.txt13
-rw-r--r--krfb/libvncserver/CMakeLists.txt22
-rw-r--r--krfb/srvloc/CMakeLists.txt27
9 files changed, 225 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a99e6147..aa8e48c8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -102,6 +102,7 @@ option( BUILD_KOPETE "Build kopete" ${BUILD_ALL} )
option( BUILD_KPF "Build kpf" ${BUILD_ALL} )
option( BUILD_KPPP "Build kppp" ${BUILD_ALL} )
option( BUILD_KRDC "Build krdc" ${BUILD_ALL} )
+option( BUILD_KRFB "Build krfb" ${BUILD_ALL} )
option( BUILD_LIBRSS "Build librss" ${BUILD_ALL} )
@@ -135,6 +136,7 @@ tde_conditional_add_subdirectory( BUILD_KOPETE kopete )
tde_conditional_add_subdirectory( BUILD_KPF kpf )
tde_conditional_add_subdirectory( BUILD_KPPP kppp )
tde_conditional_add_subdirectory( BUILD_KRDC krdc )
+tde_conditional_add_subdirectory( BUILD_KRFB krfb )
tde_conditional_add_subdirectory( BUILD_LIBRSS librss )
diff --git a/krfb/CMakeLists.txt b/krfb/CMakeLists.txt
new file mode 100644
index 00000000..962559bc
--- /dev/null
+++ b/krfb/CMakeLists.txt
@@ -0,0 +1,19 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include( ConfigureChecks.cmake )
+
+add_subdirectory( srvloc )
+add_subdirectory( kinetd )
+add_subdirectory( libvncserver )
+add_subdirectory( krfb )
+add_subdirectory( kcm_krfb )
+add_subdirectory( krfb_httpd )
diff --git a/krfb/ConfigureChecks.cmake b/krfb/ConfigureChecks.cmake
new file mode 100644
index 00000000..9e24956f
--- /dev/null
+++ b/krfb/ConfigureChecks.cmake
@@ -0,0 +1,15 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+pkg_search_module( XTST xtst )
+if( NOT XTST_FOUND )
+ tde_message_fatal( "xtst is required, but was not found on your system" )
+endif( )
diff --git a/krfb/kcm_krfb/CMakeLists.txt b/krfb/kcm_krfb/CMakeLists.txt
new file mode 100644
index 00000000..4edb8d82
--- /dev/null
+++ b/krfb/kcm_krfb/CMakeLists.txt
@@ -0,0 +1,35 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}/../krfb
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kcmkrfb.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+
+
+##### kcm_krfb (module) #########################
+
+tde_add_kpart( kcm_krfb AUTOMOC
+ SOURCES configurationwidget.ui kcm_krfb.cpp
+ LINK krfbconfig-static srvloc-static kdnssd-shared kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/krfb/kinetd/CMakeLists.txt b/krfb/kinetd/CMakeLists.txt
new file mode 100644
index 00000000..d74481af
--- /dev/null
+++ b/krfb/kinetd/CMakeLists.txt
@@ -0,0 +1,38 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/../srvloc
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kinetdmodule.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} )
+install( FILES kinetd.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded )
+install( FILES eventsrc DESTINATION ${DATA_INSTALL_DIR}/kinetd )
+
+
+##### kded_kinetd (module) ######################
+
+tde_add_kpart( kded_kinetd AUTOMOC
+ SOURCES kinetd.cpp kinetd.skel
+ LINK
+ srvloc-static kdnssd-shared kdeinit_kded-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/krfb/krfb/CMakeLists.txt b/krfb/krfb/CMakeLists.txt
new file mode 100644
index 00000000..e95276e1
--- /dev/null
+++ b/krfb/krfb/CMakeLists.txt
@@ -0,0 +1,54 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/../srvloc
+ ${CMAKE_CURRENT_SOURCE_DIR}/../libvncserver
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+tde_install_icons( krfb )
+install( FILES krfb.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+install( FILES eyes-open24.png eyes-closed24.png connection-side-image.png DESTINATION ${DATA_INSTALL_DIR}/krfb/pics )
+install( FILES eventsrc DESTINATION ${DATA_INSTALL_DIR}/krfb )
+install( FILES kinetd_krfb.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### krfb (executable) #########################
+
+tde_add_executable( krfb AUTOMOC
+ SOURCES
+ rfbcontroller.cc xupdatescanner.cc main.cpp connectionwidget.ui
+ krfbifaceimpl.cc krfbiface.skel trayicon.cpp connectiondialog.cc
+ LINK
+ krfbconfig-static vncserver-static srvloc-static kdeui-shared kio-shared ${XTST_LIBRARIES}
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### krfbconfig (static) #######################
+
+tde_add_library( krfbconfig STATIC_PIC AUTOMOC
+ SOURCES
+ configuration.cc configuration.skel invitedialog.cc invitation.cc
+ manageinvitations.ui personalinvitewidget.ui invitewidget.ui
+ personalinvitedialog.cc
+)
diff --git a/krfb/krfb_httpd/CMakeLists.txt b/krfb/krfb_httpd/CMakeLists.txt
new file mode 100644
index 00000000..07631670
--- /dev/null
+++ b/krfb/krfb_httpd/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES kinetd_krfb_httpd.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+install( PROGRAMS krfb_httpd DESTINATION ${BIN_INSTALL_DIR} )
diff --git a/krfb/libvncserver/CMakeLists.txt b/krfb/libvncserver/CMakeLists.txt
new file mode 100644
index 00000000..9f1009c6
--- /dev/null
+++ b/krfb/libvncserver/CMakeLists.txt
@@ -0,0 +1,22 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_definitions( -DHAVE_PTHREADS -DALLOW24BPP )
+
+
+##### vncserver (static) ########################
+
+tde_add_library( vncserver STATIC_PIC
+ SOURCES
+ main.c rfbserver.c sraRegion.c auth.c sockets.c stats.c corre.c
+ hextile.c rre.c translate.c cutpaste.c zlib.c tight.c httpd.c
+ cursor.c font.c draw.c selbox.c d3des.c vncauth.c cargs.c
+)
diff --git a/krfb/srvloc/CMakeLists.txt b/krfb/srvloc/CMakeLists.txt
new file mode 100644
index 00000000..095bcf54
--- /dev/null
+++ b/krfb/srvloc/CMakeLists.txt
@@ -0,0 +1,27 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### srvloc (static) ###########################
+
+tde_add_library( srvloc STATIC_PIC AUTOMOC
+ SOURCES
+ kserviceregistry.cpp uuid.cpp kinetinterface.cpp
+ kinetinterfacewatcher.cpp getifaddrs.cpp
+)