summaryrefslogtreecommitdiffstats
path: root/kioslave/svn
diff options
context:
space:
mode:
authorSerghei Amelian <serghei.amelian@gmail.com>2012-02-14 20:55:22 +0200
committerSlávek Banko <slavek.banko@axis.cz>2012-06-20 05:10:25 +0200
commitcda563da5474eebbc55982297d28bf6425efb2ef (patch)
tree708123188cd67eb21ccce0799aa51d3e271966f3 /kioslave/svn
parent306f685144f95fcddfb6454613071a2e1264eb13 (diff)
downloadtdesdk-cda563da5474eebbc55982297d28bf6425efb2ef.tar.gz
tdesdk-cda563da5474eebbc55982297d28bf6425efb2ef.zip
[tdesdk/cmake] added forgotten files
(cherry picked from commit adee843c4d5c8fbce75abd3a768d643392e4ea90)
Diffstat (limited to 'kioslave/svn')
-rw-r--r--kioslave/svn/CMakeLists.txt46
-rw-r--r--kioslave/svn/ConfigureChecks.cmake50
-rw-r--r--kioslave/svn/icons/CMakeLists.txt12
-rw-r--r--kioslave/svn/ksvnd/CMakeLists.txt36
-rw-r--r--kioslave/svn/svnhelper/CMakeLists.txt38
5 files changed, 182 insertions, 0 deletions
diff --git a/kioslave/svn/CMakeLists.txt b/kioslave/svn/CMakeLists.txt
new file mode 100644
index 00000000..9d3c496c
--- /dev/null
+++ b/kioslave/svn/CMakeLists.txt
@@ -0,0 +1,46 @@
+#################################################
+#
+# (C) 2012 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( ksvnd )
+add_subdirectory( svnhelper )
+add_subdirectory( icons )
+
+include_directories(
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${APR_INCLUDE_DIRS}
+ ${SVN_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${APR_LIBRARY_DIRS}
+ ${SVN_LIBRARY_DIR}
+)
+
+
+##### other data ################################
+
+install( FILES
+ svn+http.protocol svn+https.protocol svn+file.protocol
+ svn+ssh.protocol svn.protocol
+ DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kio_svn (module) ##########################
+
+tde_add_kpart( kio_svn
+ SOURCES svn.cpp
+ LINK kio-shared ${APR_LIBRARIES} ${SVN_LIBRARIES}
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/svn/ConfigureChecks.cmake b/kioslave/svn/ConfigureChecks.cmake
new file mode 100644
index 00000000..81358c60
--- /dev/null
+++ b/kioslave/svn/ConfigureChecks.cmake
@@ -0,0 +1,50 @@
+#################################################
+#
+# (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( APR apr-1 )
+if( APR_FOUND )
+ set( HAVE_APR 1 )
+else( )
+ tde_message_fatal( "apr-1 is required, but was not found on your system" )
+endif( )
+
+
+# check for subversion library
+
+check_library_exists( "svn_client-1" "svn_pool_create_ex" "${SVN_LIBRARY_DIR}" HAVE_SVN_POOL_CREATE_EX )
+
+if( HAVE_SVN_POOL_CREATE_EX )
+ set( SVN_LIBRARIES "svn_client-1;svn_subr-1;svn_ra-1" )
+else( )
+ tde_message_fatal( "svn_client-1 library was not found on your system.\n Subversion is installed?\n Try to set SVN_LIBRARY_DIR to subversion library directory." )
+endif( )
+
+
+# check for subversion headers
+
+tde_save_and_set( CMAKE_REQUIRED_FLAGS "-I${APR_INCLUDE_DIRS}" )
+tde_save_and_set( CMAKE_REQUIRED_DEFINITIONS "${APR_CFLAGS}" )
+
+if( SVN_INCLUDE_DIR )
+ set_and_save( CMAKE_REQUIRED_INCLUDES "${SVN_INCLUDE_DIR}" )
+ check_include_file( "svn_types.h" HAVE_SVN_TYPES_H )
+ tde_restore( CMAKE_REQUIRED_INCLUDES )
+else( )
+ # FIXME must be improved
+ check_include_file( "/usr/include/subversion-1/svn_types.h" HAVE_SVN_TYPES_H )
+ set( SVN_INCLUDE_DIR "/usr/include/subversion-1" )
+endif( )
+
+tde_restore( CMAKE_REQUIRED_FLAGS CMAKE_REQUIRED_DEFINITIONS )
+
+if( NOT HAVE_SVN_TYPES_H )
+ tde_message_fatal( "svn_types.h file was not found on your system.\n Subversion devel files are installed?\n Try to set SVN_INCLUDE_DIR to subversion include directory." )
+endif( )
diff --git a/kioslave/svn/icons/CMakeLists.txt b/kioslave/svn/icons/CMakeLists.txt
new file mode 100644
index 00000000..96bca44c
--- /dev/null
+++ b/kioslave/svn/icons/CMakeLists.txt
@@ -0,0 +1,12 @@
+#################################################
+#
+# (C) 2012 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons( )
diff --git a/kioslave/svn/ksvnd/CMakeLists.txt b/kioslave/svn/ksvnd/CMakeLists.txt
new file mode 100644
index 00000000..b1e369f7
--- /dev/null
+++ b/kioslave/svn/ksvnd/CMakeLists.txt
@@ -0,0 +1,36 @@
+#################################################
+#
+# (C) 2012 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_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES ksvnd.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kded )
+
+
+##### kded_ksvnd (module) #######################
+
+tde_add_kpart( kded_ksvnd AUTOMOC
+ SOURCES commitdlg.ui ksvnd.cpp ksvnd.skel
+ LINK kio-shared kdeinit_kded-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kioslave/svn/svnhelper/CMakeLists.txt b/kioslave/svn/svnhelper/CMakeLists.txt
new file mode 100644
index 00000000..ad82d38e
--- /dev/null
+++ b/kioslave/svn/svnhelper/CMakeLists.txt
@@ -0,0 +1,38 @@
+#################################################
+#
+# (C) 2012 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}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ subversion.desktop subversion_toplevel.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus )
+
+
+##### kio_svn_helper (executable) ###############
+
+tde_add_executable( kio_svn_helper AUTOMOC
+ SOURCES
+ kio_svn_helper.cpp subversioncheckout.ui subversionswitch.ui
+ subversionlog.ui subversiondiff.ui
+ LINK kio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)