diff options
Diffstat (limited to 'kmail')
-rw-r--r-- | kmail/CMakeLists.txt | 225 | ||||
-rw-r--r-- | kmail/ConfigureChecks.cmake | 23 | ||||
-rw-r--r-- | kmail/about/CMakeLists.txt | 14 | ||||
-rw-r--r-- | kmail/avscripts/CMakeLists.txt | 14 | ||||
-rw-r--r-- | kmail/interfaces/CMakeLists.txt | 15 | ||||
-rw-r--r-- | kmail/pics/CMakeLists.txt | 30 | ||||
-rw-r--r-- | kmail/pics/icons/CMakeLists.txt | 12 | ||||
-rw-r--r-- | kmail/profiles/CMakeLists.txt | 18 |
8 files changed, 351 insertions, 0 deletions
diff --git a/kmail/CMakeLists.txt b/kmail/CMakeLists.txt new file mode 100644 index 000000000..9e1e9f36e --- /dev/null +++ b/kmail/CMakeLists.txt @@ -0,0 +1,225 @@ +################################################# +# +# (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 ) + +tde_import( libkdenetwork ) +tde_import( certmanager ) +tde_import( ktnef ) +tde_import( libkcal ) +tde_import( libkmime ) +tde_import( libkpgp ) +tde_import( libkdepim ) +tde_import( mimelib ) +tde_import( libkpimidentities ) +tde_import( libksieve ) + +set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions" ) + +add_subdirectory( interfaces ) +add_subdirectory( about ) +add_subdirectory( pics ) +add_subdirectory( profiles ) +add_subdirectory( avscripts ) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/libemailfunctions + ${CMAKE_SOURCE_DIR}/mimelib + ${CMAKE_SOURCE_DIR}/libkmime + ${CMAKE_SOURCE_DIR}/libkdepim + ${CMAKE_SOURCE_DIR}/libkpgp + ${CMAKE_SOURCE_DIR}/libkdenetwork + ${CMAKE_SOURCE_DIR}/certmanager/lib + ${CMAKE_SOURCE_DIR}/libksieve + ${CMAKE_SOURCE_DIR}/ktnef + ${CMAKE_SOURCE_DIR}/korganizer + ${TDE_INCLUDE_DIR} + ${TQT_INCLUDE_DIRS} + ${GPGME_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + kmailIface.h kmailpartIface.h kmailicalIface.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + + +##### other data ################################ + +tde_install_icons( ) + +install( FILES + KMail.desktop kmail_view.desktop + DESTINATION ${XDG_APPS_INSTALL_DIR} ) + +install( FILES + kmcomposerui.rc kmmainwin.rc kmreadermainwin.rc + eventsrc kmail_part.rc + DESTINATION ${DATA_INSTALL_DIR}/kmail ) + +install( FILES + kmail.upd + DESTINATION ${KCONF_UPDATE_INSTALL_DIR} ) + +install( PROGRAMS + upgrade-transport.pl kmail-pgpidentity.pl + upgrade-signature.pl kmail-upd-identities.pl + kmail-3.1-use-UOID-for-identities.pl + kmail-3.1-update-new-mail-notification-settings.pl + kmail-3.1.4-dont-use-UOID-0-for-any-identity.pl + kmail-3.2-update-loop-on-goto-unread-settings.sh + kmail-3.2-misc.sh kmail-3.3-use-ID-for-accounts.pl + kmail-3.3-move-identities.pl kmail-3.3-aegypten.pl + kmail-3.3-split-sign-encr-keys.sh kmail-3.3-misc.pl + kmail-3.3b1-misc.pl kmail-3.4-misc.pl + kmail-3.4.1-update-status-filters.pl + kmail-3.5-filter-icons.pl kmail-3.5-trigger-flag-migration.pl + DESTINATION ${KCONF_UPDATE_INSTALL_DIR} ) + +install( FILES + kmail.antispamrc kmail.antivirusrc + DESTINATION ${CONFIG_INSTALL_DIR} ) + +install( FILES + tips + DESTINATION ${DATA_INSTALL_DIR}/kmail ) + +install( FILES + dcopmail.desktop dcopimap.desktop + DESTINATION ${SERVICETYPES_INSTALL_DIR} ) + +install( FILES + kmail_config_misc.desktop kmail_config_appearance.desktop + kmail_config_identity.desktop kmail_config_accounts.desktop + kmail_config_composer.desktop kmail_config_security.desktop + DESTINATION ${SERVICES_INSTALL_DIR} ) + +install( FILES + kmail.kcfg replyphrases.kcfg custommimeheader.kcfg + templatesconfiguration_kfg.kcfg customtemplates_kfg.kcfg + DESTINATION ${KCFG_INSTALL_DIR} ) + +install( FILES + application_octetstream.desktop + DESTINATION ${DATA_INSTALL_DIR}/kmail/plugins/bodypartformatter ) + + +##### kmailprivate (shared) ##################### + +set( target kmailprivate ) + +set( ${target}_SRCS + kmmessage.cpp kmmainwin.cpp configuredialog.cpp configuredialog_p.cpp + klistviewindexedsearchline.cpp simplestringlisteditor.cpp index.cpp headeritem.cpp + identitydrag.cpp identitylistview.cpp identitydialog.cpp kmfolderdia.cpp kmmsgdict.cpp + kmfoldertree.cpp kmtransport.cpp kmfoldercombobox.cpp kmaccount.cpp kmheaders.cpp + kmcomposewin.cpp kmfolder.cpp kmmsgpartdlg.cpp kmreaderwin.cpp htmlstatusbar.cpp + kmgroupware.cpp folderstorage.cpp listjob.cpp csshelper.cpp klistboxdialog.cpp + kmmsginfo.cpp actionscheduler.cpp messageproperty.cpp accountmanager.cpp kmacctfolder.cpp + kmdict.cpp kmsystemtray.cpp kmacctlocal.cpp kmfolderdir.cpp kmfoldermgr.cpp + kmfoldernode.cpp kmsender.cpp kmacctseldlg.cpp kmfiltermgr.cpp kmfilterdlg.cpp + filterimporterexporter.cpp kmsearchpatternedit.cpp encodingdetector.cpp encodingdetector_ja.cpp + kmfilteraction.cpp kmsearchpattern.cpp kmfolderimap.cpp kmfolderseldlg.cpp kmfilter.cpp + kmmsgpart.cpp kmmsgbase.cpp kmmsglist.cpp kmaddrbook.cpp signatureconfigurator.cpp + xfaceconfigurator.cpp networkaccount.cpp imapaccountbase.cpp popaccount.cpp kmservertest.cpp + kmacctimap.cpp kmacctcachedimap.cpp kmfawidgets.cpp kmfoldermbox.cpp colorlistbox.cpp + undostack.cpp kmfoldercachedimap.cpp attachmentstrategy.cpp kmfoldermaildir.cpp + kmkernel.cpp accountdialog.cpp searchwindow.cpp vcardviewer.cpp vacationdialog.cpp + vacation.cpp sievedebugdialog.cpp sieveconfig.cpp sievejob.cpp kmpopheaders.cpp + kmpopfiltercnfrmdlg.cpp kmmimeparttree.cpp mailinglist-magic.cpp kmacctmaildir.cpp + headerstyle.cpp headerstrategy.cpp khtmlparthtmlwriter.cpp filehtmlwriter.cpp + teehtmlwriter.cpp mailcomposerIface.skel objecttreeparser.cpp objecttreeparser_p.cpp + attachmentcollector.cpp bodypartformatterfactory.cpp bodypartformatter.cpp partNode.cpp + mailsourceviewer.cpp kmcommands.cpp kmreadermainwin.cpp kmstartup.cpp kmmainwidget.cpp + folderpropertiesdialog.ui kmfolderindex.cpp kmfoldersearch.cpp transportmanager.cpp + imapjob.cpp folderjob.cpp cachedimapjob.cpp maildirjob.cpp mboxjob.cpp subscriptiondialog.cpp + kmailicalifaceimpl.cpp aboutdata.cpp folderIface.cpp folderIface.skel mailserviceimpl.cpp + attachmentlistview.cpp kmedit.cpp kmlineeditspell.cpp kmatmlistview.cpp composer.cpp + isubject.cpp bodyvisitor.cpp antispamwizard.cpp urlhandlermanager.cpp dictionarycombobox.cpp + secondarywindow.cpp filterlog.cpp filterlogdlg.cpp messagecomposer.cpp keyresolver.cpp + globalsettings.cpp globalsettings_base.kcfgc regexplineedit.cpp rulewidgethandlermanager.cpp + headerlistquicksearch.cpp acljobs.cpp folderdiaacltab.cpp quotajobs.cpp expirejob.cpp + folderdiaquotatab.cpp folderdiaquotatab_p.cpp jobscheduler.cpp partnodebodypart.cpp + compactionjob.cpp callback.cpp searchjob.cpp renamejob.cpp composercryptoconfiguration.ui + warningconfiguration.ui smimeconfiguration.ui annotationjobs.cpp accountcombobox.cpp + redirectdialog.cpp foldershortcutdialog.cpp folderrequester.cpp spamheaderanalyzer.cpp + antispamconfig.cpp replyphrases.kcfgc custommimeheader.kcfgc recipientseditor.cpp + recipientspicker.cpp kwindowpositioner.cpp textsource.cpp distributionlistdialog.cpp + expirypropertiesdialog.cpp scalix.cpp mailinglistpropertiesdialog.cpp newfolderdialog.cpp + accountwizard.cpp managesievescriptsdialog.cpp chiasmuskeyselector.cpp + util.cpp templatesinsertcommand.cpp customtemplates_base.ui customtemplates.cpp + customtemplates_kfg.kcfgc templatesconfiguration_base.ui templatesconfiguration.cpp + templatesconfiguration_kfg.kcfgc templateparser.cpp copyfolderjob.cpp messagecopyhelper.cpp + localsubscriptiondialog.cpp editorwatcher.cpp favoritefolderview.cpp + foldertreebase.cpp snippetdlgbase.ui snippetwidget.cpp snippetconfig.cpp + snippetdlg.cpp snippetitem.cpp snippetsettings.cpp snippetsettingsbase.ui + messageactions.cpp korghelper.cpp foldersetselector.cpp stringutil.cpp + treebase.cpp backupjob.cpp importjob.cpp folderutil.cpp archivefolderdialog.cpp + importarchivedialog.cpp ${CMAKE_SOURCE_DIR}/korganizer/kcalendariface.stub + ${CMAKE_SOURCE_DIR}/korganizer/korganizeriface.stub ) + +tde_save( KDE3_DCOPIDL_EXECUTABLE ) +set( KDE3_DCOPIDL_EXECUTABLE ${KDE3_DCOPIDLNG_EXECUTABLE} ) +kde3_add_dcop_skels( ${target}_SRCS kmailIface.h kmailicalIface.h ) +tde_restore( KDE3_DCOPIDL_EXECUTABLE ) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + LINK + emailfunctions-static kmime-shared kpgp-shared kdepim-shared kpimidentities-shared + mimelib-shared ksieve-shared khtml-shared + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### kmail (executable) ######################## + +tde_add_executable( kmail + SOURCES main.cpp + LINK kmailprivate-shared + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### kcm_kmail (module) ######################## + +tde_add_kpart( kcm_kmail AUTOMOC + SOURCES kcm_kmail.cpp + LINK kmailprivate-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### libkmailpart (module) ##################### + +tde_add_kpart( libkmailpart AUTOMOC + SOURCES kmailpartIface.skel kmail_part.cpp + LINK kmailprivate-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### libkmail_bodypartformatter_application_octetstream (module) + +tde_add_kpart( libkmail_bodypartformatter_application_octetstream + SOURCES app_octetstream.cpp + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kmail/ConfigureChecks.cmake b/kmail/ConfigureChecks.cmake new file mode 100644 index 000000000..dbda06e3f --- /dev/null +++ b/kmail/ConfigureChecks.cmake @@ -0,0 +1,23 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +# check for stl coping with namespace std +tde_save( CMAKE_CXX_FLAGS ) +string( REGEX REPLACE "-include tqt.h" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}" ) +check_cxx_source_compiles(" + #include <iterator> + struct s : public std::iterator<std::forward_iterator_tag, int> {}; + int main(int, char**) { return 0; } " + HAVE_STLNAMESPACE ) +tde_restore( CMAKE_CXX_FLAGS ) +if( HAVE_STLNAMESPACE ) + set( STD_NAMESPACE_PREFIX "std::" CACHE INTERNAL "" FORCE ) +endif( ) diff --git a/kmail/about/CMakeLists.txt b/kmail/about/CMakeLists.txt new file mode 100644 index 000000000..44457be7c --- /dev/null +++ b/kmail/about/CMakeLists.txt @@ -0,0 +1,14 @@ +################################################# +# +# (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 + top-right-kmail.png main.html kmail.css + DESTINATION ${DATA_INSTALL_DIR}/kmail/about ) diff --git a/kmail/avscripts/CMakeLists.txt b/kmail/avscripts/CMakeLists.txt new file mode 100644 index 000000000..c2621dca7 --- /dev/null +++ b/kmail/avscripts/CMakeLists.txt @@ -0,0 +1,14 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( PROGRAMS + kmail_clamav.sh kmail_sav.sh kmail_fprot.sh kmail_antivir.sh + DESTINATION ${BIN_INSTALL_DIR} ) diff --git a/kmail/interfaces/CMakeLists.txt b/kmail/interfaces/CMakeLists.txt new file mode 100644 index 000000000..1dd411dfd --- /dev/null +++ b/kmail/interfaces/CMakeLists.txt @@ -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 +# +################################################# + +install( FILES + observer.h observable.h htmlwriter.h bodypart.h + bodypartformatter.h bodyparturlhandler.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kmail/interfaces ) diff --git a/kmail/pics/CMakeLists.txt b/kmail/pics/CMakeLists.txt new file mode 100644 index 000000000..ea728f8b7 --- /dev/null +++ b/kmail/pics/CMakeLists.txt @@ -0,0 +1,30 @@ +################################################# +# +# (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( icons ) + +install( FILES + kmmsgdel.png kmmsgnew.png kmmsgunseen.png kmmsgread.png + kmmsgreplied.png kmmsgforwarded.png kmmsgqueued.png + kmmsgflag.png kmmsgsent.png kmmsgwatched.png kmmsgignored.png + kmmsgtodo.png kmmsgread_fwd.png kmmsgread_replied.png + kmmsgread_fwd_replied.png pgp-keys.png kmmsgpartiallyencrypted.png + kmmsgpartiallysigned.png kmmsgfullyencrypted.png kmmsgfullysigned.png + kmmsgundefinedencrypted.png kmmsgundefinedsigned.png kmmsgspam.png + kmmsgham.png kmmsgattachment.png kmmsginvitation.png kmwizard.png + quotecollapse.png quoteexpand.png enterprise_bottom_left.png + enterprise_bottom.png enterprise_bottom_right.png enterprise_icon.png + enterprise_left.png enterprise_right.png enterprise_s_left.png + enterprise_sbar.png enterprise_s_right.png enterprise_sp_right.png + enterprise_top_left.png enterprise_top.png enterprise_top_right.png + enterprise_sw.png enterprise_w.png attachmentQuicklistClosed.png + attachmentQuicklistOpened.png + DESTINATION ${DATA_INSTALL_DIR}/kmail/pics ) diff --git a/kmail/pics/icons/CMakeLists.txt b/kmail/pics/icons/CMakeLists.txt new file mode 100644 index 000000000..665f509c9 --- /dev/null +++ b/kmail/pics/icons/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (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( DESTINATION ${DATA_INSTALL_DIR}/kmail/icons ) diff --git a/kmail/profiles/CMakeLists.txt b/kmail/profiles/CMakeLists.txt new file mode 100644 index 000000000..2d2367b0b --- /dev/null +++ b/kmail/profiles/CMakeLists.txt @@ -0,0 +1,18 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +set( profiles default html high-contrast purist secure ) + +foreach( profile ${profiles} ) + install( FILES "profile-${profile}-rc.desktop" + DESTINATION ${DATA_INSTALL_DIR}/kmail + RENAME profile-${profile}-rc ) +endforeach( ) |