diff options
Diffstat (limited to 'certmanager/lib')
-rw-r--r-- | certmanager/lib/CMakeLists.txt | 52 | ||||
-rw-r--r-- | certmanager/lib/backends/CMakeLists.txt | 13 | ||||
-rw-r--r-- | certmanager/lib/backends/chiasmus/CMakeLists.txt | 33 | ||||
-rw-r--r-- | certmanager/lib/backends/chiasmus/ConfigureChecks.cmake | 15 | ||||
-rw-r--r-- | certmanager/lib/backends/qgpgme/CMakeLists.txt | 38 | ||||
-rw-r--r-- | certmanager/lib/kleo/CMakeLists.txt | 48 | ||||
-rw-r--r-- | certmanager/lib/pics/CMakeLists.txt | 16 | ||||
-rw-r--r-- | certmanager/lib/ui/CMakeLists.txt | 46 |
8 files changed, 261 insertions, 0 deletions
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 +) |