Commit 8c35a1ce authored by Volker Krause's avatar Volker Krause
Browse files

Port akonotes to run in the agent server.

svn path=/trunk/KDE/kdepim/runtime/; revision=1200516
parent c6332871
......@@ -33,15 +33,14 @@ qt4_add_dbus_adaptor(akonotesresource_SRCS
install( FILES akonotesresource.desktop DESTINATION "${CMAKE_INSTALL_PREFIX}/share/akonadi/agents" )
kde4_add_executable(akonadi_akonotes_resource ${akonotesresource_SRCS})
if (NOT WINCE)
kde4_add_plugin(akonadi_akonotes_resource ${akonotesresource_SRCS})
else(NOT WINCE)
kde4_add_plugin(akonadi_akonotes_resource STATIC ${akonotesresource_SRCS})
endif(NOT WINCE)
if (Q_WS_MAC)
set_target_properties(akonadi_akonotes_resource PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/../Info.plist.template)
set_target_properties(akonadi_akonotes_resource PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER "org.kde.Akonadi.Akonotes")
set_target_properties(akonadi_akonotes_resource PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "KDE Akonadi Akonotes Resource")
endif (Q_WS_MAC)
target_link_libraries(akonadi_akonotes_resource ${KDEPIMLIBS_AKONADI_LIBS} ${KDEPIMLIBS_AKONADI_KMIME_LIBS} maildir ${QT_QTDBUS_LIBRARY} ${KDE4_KIO_LIBS} ${KDEPIMLIBS_KMIME_LIBS})
install(TARGETS akonadi_akonotes_resource ${INSTALL_TARGETS_DEFAULT_ARGS})
install(TARGETS akonadi_akonotes_resource DESTINATION ${PLUGIN_INSTALL_DIR})
......@@ -52,3 +52,4 @@ Icon=view-pim-notes
X-Akonadi-MimeTypes=text/x-vnd.akonadi.note
X-Akonadi-Capabilities=Resource,Notes
X-Akonadi-Identifier=akonadi_akonotes_resource
X-Akonadi-LaunchMethod=AgentServer
......@@ -19,4 +19,6 @@
#include "akonotesresource.h"
AKONADI_RESOURCE_MAIN( AkonotesResource )
#include <akonadi/agentfactory.h>
AKONADI_AGENT_FACTORY( AkonotesResource, akonadi_akonotes_resource )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment