summaryrefslogtreecommitdiffstats
path: root/certmanager
diff options
context:
space:
mode:
Diffstat (limited to 'certmanager')
-rw-r--r--certmanager/CMakeLists.txt57
-rw-r--r--certmanager/ConfigureChecks.cmake22
-rw-r--r--certmanager/conf/CMakeLists.txt55
-rw-r--r--certmanager/kwatchgnupg/CMakeLists.txt47
-rw-r--r--certmanager/lib/CMakeLists.txt52
-rw-r--r--certmanager/lib/backends/CMakeLists.txt13
-rw-r--r--certmanager/lib/backends/chiasmus/CMakeLists.txt33
-rw-r--r--certmanager/lib/backends/chiasmus/ConfigureChecks.cmake15
-rw-r--r--certmanager/lib/backends/qgpgme/CMakeLists.txt38
-rw-r--r--certmanager/lib/kleo/CMakeLists.txt48
-rw-r--r--certmanager/lib/pics/CMakeLists.txt16
-rw-r--r--certmanager/lib/ui/CMakeLists.txt46
12 files changed, 442 insertions, 0 deletions
diff --git a/certmanager/CMakeLists.txt b/certmanager/CMakeLists.txt
new file mode 100644
index 000000000..e6f00d9da
--- /dev/null
+++ b/certmanager/CMakeLists.txt
@@ -0,0 +1,57 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+project( certmanager )
+
+include( ConfigureChecks.cmake )
+
+tde_import( libkdenetwork )
+
+add_subdirectory( lib )
+add_subdirectory( conf )
+add_subdirectory( kwatchgnupg )
+
+add_definitions( -DLIBKLEOPATRA_NO_COMPAT )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/lib
+ ${CMAKE_SOURCE_DIR}/libkdepim
+ ${CMAKE_SOURCE_DIR}/libkdenetwork
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kleopatra_import.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+install( FILES kleopatraui.rc DESTINATION ${XDG_APPS_INSTALL_DIR}/kleopatra )
+
+
+##### kleopatra (executable) ####################
+
+tde_add_executable( kleopatra AUTOMOC
+ SOURCES
+ customactions.cpp aboutdata.cpp main.cpp certmanager.cpp
+ hierarchyanalyser.cpp certificatewizard.ui certificatewizardimpl.cpp
+ certificateinfowidget.ui certificateinfowidgetimpl.cpp
+ crlview.cpp storedtransferjob.cpp certlistview.cpp
+ LINK conf-static kleopatra-shared kutils-shared kabc-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+tde_install_export( )
diff --git a/certmanager/ConfigureChecks.cmake b/certmanager/ConfigureChecks.cmake
new file mode 100644
index 000000000..fc51483e8
--- /dev/null
+++ b/certmanager/ConfigureChecks.cmake
@@ -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
+#
+#################################################
+
+# get MAX_CMD_LENGTH
+execute_process(
+ COMMAND getconf ARG_MAX
+ OUTPUT_VARIABLE MAX_CMD_LENGTH
+ RESULT_VARIABLE _result
+ OUTPUT_STRIP_TRAILING_WHITESPACE )
+if( _result )
+ tde_message_fatal( "Unable to run getconf!\n MAX_CMD_LENGTH cannot be determined." )
+endif()
+math( EXPR MAX_CMD_LENGTH "(${MAX_CMD_LENGTH} / 4) * 3" )
+set( MAX_CMD_LENGTH ${MAX_CMD_LENGTH} CACHE INTERNAL "" FORCE )
diff --git a/certmanager/conf/CMakeLists.txt b/certmanager/conf/CMakeLists.txt
new file mode 100644
index 000000000..7b756d3a2
--- /dev/null
+++ b/certmanager/conf/CMakeLists.txt
@@ -0,0 +1,55 @@
+#################################################
+#
+# (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( -DLIBKLEOPATRA_NO_COMPAT )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}/certmanager/lib/ui
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/certmanager/lib
+ ${CMAKE_SOURCE_DIR}/certmanager/lib/ui
+ ${CMAKE_SOURCE_DIR}/libkdepim
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ kleopatra_config_dirserv.desktop
+ kleopatra_config_appear.desktop
+ kleopatra_config_dnorder.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kcm_kleopatra (module) ####################
+
+tde_add_kpart( kcm_kleopatra AUTOMOC
+ SOURCES
+ dirservconfigpage.cpp appearanceconfigpage.cpp
+ appearanceconfigwidgetbase.ui dnorderconfigpage.cpp
+ appearanceconfigwidget.cpp
+ LINK kleopatra-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### conf (static) #############################
+
+tde_add_library( conf STATIC AUTOMOC
+ SOURCES configuredialog.cpp
+)
diff --git a/certmanager/kwatchgnupg/CMakeLists.txt b/certmanager/kwatchgnupg/CMakeLists.txt
new file mode 100644
index 000000000..4267cff5a
--- /dev/null
+++ b/certmanager/kwatchgnupg/CMakeLists.txt
@@ -0,0 +1,47 @@
+#################################################
+#
+# (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( -DLIBKLEOPATRA_NO_COMPAT )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/certmanager/lib
+ ${CMAKE_SOURCE_DIR}/libkdepim
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES
+ kwatchgnupg.png kwatchgnupg2.png
+ DESTINATION ${DATA_INSTALL_DIR}/kwatchgnupg/pics )
+
+install( FILES
+ kwatchgnupgui.rc
+ DESTINATION ${DATA_INSTALL_DIR}/kwatchgnupg )
+
+
+##### kwatchgnupg (executable) ##################
+
+tde_add_executable( kwatchgnupg AUTOMOC
+ SOURCES
+ kwatchgnupgmainwin.cpp kwatchgnupgconfig.cpp
+ aboutdata.cpp tray.cpp main.cpp
+ LINK kleopatra-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/certmanager/lib/CMakeLists.txt b/certmanager/lib/CMakeLists.txt
new file mode 100644
index 000000000..8bdec7a19
--- /dev/null
+++ b/certmanager/lib/CMakeLists.txt
@@ -0,0 +1,52 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( pics )
+add_subdirectory( kleo )
+add_subdirectory( backends )
+add_subdirectory( ui )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/libkdepim
+ ${CMAKE_SOURCE_DIR}/libkdenetwork
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${GPGME_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES libkleopatrarc.desktop DESTINATION ${CONFIG_INSTALL_DIR} RENAME libkleopatrarc )
+
+
+##### kleopatra (shared) ########################
+
+tde_add_library( kleopatra SHARED AUTOMOC
+ SOURCES
+ cryptplug.cpp cryptplugwrapper.cpp
+ cryptplugwrapperlist.cpp cryptplugfactory.cpp
+ VERSION 1.0.0
+ EMBED
+ kleopatra_core-static kleopatra_ui-static
+ LINK
+ kleopatra_backend_qgpgme-static
+ kleopatra_backend_chiasmus-static
+ qgpgme-shared kio-shared
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/certmanager/lib/backends/CMakeLists.txt b/certmanager/lib/backends/CMakeLists.txt
new file mode 100644
index 000000000..8695ad83f
--- /dev/null
+++ b/certmanager/lib/backends/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
+#
+#################################################
+
+add_subdirectory( qgpgme )
+add_subdirectory( chiasmus )
diff --git a/certmanager/lib/backends/chiasmus/CMakeLists.txt b/certmanager/lib/backends/chiasmus/CMakeLists.txt
new file mode 100644
index 000000000..62e71adbf
--- /dev/null
+++ b/certmanager/lib/backends/chiasmus/CMakeLists.txt
@@ -0,0 +1,33 @@
+#################################################
+#
+# (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_definitions( "-DGPG_ERR_SOURCE_DEFAULT=((gpg_err_source_t)176)" )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/certmanager/lib
+ ${CMAKE_SOURCE_DIR}/libkdepim
+ ${CMAKE_SOURCE_DIR}/libkdenetwork
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### kleopatra_backend_chiasmus (static) #######
+
+tde_add_library( kleopatra_backend_chiasmus STATIC_PIC AUTOMOC
+ SOURCES
+ config_data.c obtainkeysjob.cpp symcryptrunprocessbase.cpp
+ chiasmusjob.cpp chiasmuslibrary.cpp chiasmusbackend.cpp
+)
diff --git a/certmanager/lib/backends/chiasmus/ConfigureChecks.cmake b/certmanager/lib/backends/chiasmus/ConfigureChecks.cmake
new file mode 100644
index 000000000..570afff3d
--- /dev/null
+++ b/certmanager/lib/backends/chiasmus/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
+#
+#################################################
+
+check_c_source_compiles("
+ union { int one; const char * two } foo = { .two = \"Hello\" };
+ int main() { return 0; }"
+ HAVE_C99_INITIALIZERS )
diff --git a/certmanager/lib/backends/qgpgme/CMakeLists.txt b/certmanager/lib/backends/qgpgme/CMakeLists.txt
new file mode 100644
index 000000000..ae2789155
--- /dev/null
+++ b/certmanager/lib/backends/qgpgme/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_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/certmanager/lib
+ ${CMAKE_SOURCE_DIR}/libkdenetwork
+ ${CMAKE_SOURCE_DIR}/libkdepim
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${GPGME_INCLUDE_DIRS}
+)
+
+
+##### kleopatra_backend_qgpgme (static) #########
+
+tde_add_library( kleopatra_backend_qgpgme STATIC_PIC AUTOMOC
+ SOURCES
+ gnupgprocessbase.cpp qgpgmeprogresstokenmapper.cpp
+ qgpgmebackend.cpp qgpgmejob.cpp qgpgmekeylistjob.cpp
+ qgpgmekeygenerationjob.cpp qgpgmeimportjob.cpp
+ qgpgmeexportjob.cpp qgpgmesecretkeyexportjob.cpp
+ qgpgmedownloadjob.cpp qgpgmedeletejob.cpp
+ qgpgmeencryptjob.cpp qgpgmedecryptjob.cpp
+ qgpgmesignjob.cpp qgpgmeverifydetachedjob.cpp
+ qgpgmeverifyopaquejob.cpp qgpgmesignencryptjob.cpp
+ qgpgmedecryptverifyjob.cpp qgpgmecryptoconfig.cpp
+ qgpgmerefreshkeysjob.cpp
+)
diff --git a/certmanager/lib/kleo/CMakeLists.txt b/certmanager/lib/kleo/CMakeLists.txt
new file mode 100644
index 000000000..e94b8449c
--- /dev/null
+++ b/certmanager/lib/kleo/CMakeLists.txt
@@ -0,0 +1,48 @@
+#################################################
+#
+# (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_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/certmanager/lib
+ ${CMAKE_SOURCE_DIR}/libkdepim
+ ${CMAKE_SOURCE_DIR}/libkdenetwork
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### headers ###################################
+
+install( FILES
+ enum.h cryptobackend.h cryptobackendfactory.h
+ cryptoconfig.h dn.h job.h keylistjob.h keygenerationjob.h
+ importjob.h exportjob.h downloadjob.h deletejob.h
+ encryptjob.h decryptjob.h signjob.h verifydetachedjob.h
+ verifyopaquejob.h decryptverifyjob.h signencryptjob.h
+ refreshkeysjob.h multideletejob.h hierarchicalkeylistjob.h
+ keyfilter.h keyfiltermanager.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/kleo )
+
+
+##### kleopatra_core (static) ###################
+
+tde_add_library( kleopatra_core STATIC_PIC AUTOMOC
+ SOURCES
+ cryptobackend.cpp cryptobackendfactory.cpp
+ enum.cpp dn.cpp job.cpp multideletejob.cpp
+ hierarchicalkeylistjob.cpp kconfigbasedkeyfilter.cpp
+ keyfiltermanager.cpp
+)
diff --git a/certmanager/lib/pics/CMakeLists.txt b/certmanager/lib/pics/CMakeLists.txt
new file mode 100644
index 000000000..751dcf023
--- /dev/null
+++ b/certmanager/lib/pics/CMakeLists.txt
@@ -0,0 +1,16 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+tde_install_icons( gpg gpgsm )
+
+install( FILES
+ key.png key_ok.png key_bad.png key_unknown.png chiasmus_chi.png
+ DESTINATION ${DATA_INSTALL_DIR}/libkleopatra/pics )
diff --git a/certmanager/lib/ui/CMakeLists.txt b/certmanager/lib/ui/CMakeLists.txt
new file mode 100644
index 000000000..61a46c6f8
--- /dev/null
+++ b/certmanager/lib/ui/CMakeLists.txt
@@ -0,0 +1,46 @@
+#################################################
+#
+# (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_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/certmanager/lib
+ ${CMAKE_SOURCE_DIR}/libkdenetwork
+ ${CMAKE_SOURCE_DIR}/libkdepim
+ ${CMAKE_SOURCE_DIR}/libkpgp
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${GPGME_INCLUDE_DIRS}
+)
+
+
+##### headers ###################################
+
+install( FILES
+ kdhorizontalline.h messagebox.h progressbar.h
+ progressdialog.h keylistview.h keyselectiondialog.h
+ keyrequester.h passphrasedialog.h keyapprovaldialog.h
+ backendconfigwidget.h dnattributeorderconfigwidget.h
+ DESTINATION ${INCLUDE_INSTALL_DIR}/kleo )
+
+
+##### kleopatra_ui (static) #####################
+
+tde_add_library( kleopatra_ui STATIC_PIC AUTOMOC
+ SOURCES
+ kdhorizontalline.cpp messagebox.cpp progressbar.cpp
+ progressdialog.cpp keylistview.cpp keyselectiondialog.cpp
+ keyrequester.cpp passphrasedialog.cpp keyapprovaldialog.cpp
+ backendconfigwidget.cpp dnattributeorderconfigwidget.cpp
+ cryptoconfigmodule.cpp cryptoconfigdialog.cpp
+ directoryserviceswidgetbase.ui directoryserviceswidget.cpp
+ adddirectoryservicedialog.ui adddirectoryservicedialogimpl.cpp
+)