Commit 1b2a55f5 authored by Andreas Holzammer's avatar Andreas Holzammer
Browse files

- build the agentserver with buildin resources

svn path=/trunk/KDE/kdepim/runtime/; revision=1190661
parent 005fce45
......@@ -57,17 +57,27 @@ endif (NOT WINCE)
add_subdirectory( maildir )
if (NOT WINCE)
add_subdirectory( mailtransport_dummy )
endif (NOT WINCE)
add_subdirectory( mbox )
endif (NOT WINCE)
macro_optional_add_subdirectory( microblog )
macro_optional_add_subdirectory( openxchange )
add_subdirectory( pop3 )
if (NOT WINCE)
if ( NEPOMUK_FOUND )
add_subdirectory( nepomuktag )
endif ( NEPOMUK_FOUND )
endif (NOT WINCE)
if (NOT WINCE)
add_subdirectory( nntp )
endif (NOT WINCE)
add_subdirectory( vcard )
if (NOT WINCE)
add_subdirectory( vcarddir )
endif (NOT WINCE)
add_subdirectory( shared )
if(WINCE)
add_subdirectory( agentserver )
endif(WINCE)
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}" )
find_library(AGENT_SERVER_LIB akonadi_agent_server)
kde4_add_executable(akonadi_agent_server dummy_main.cpp)
target_link_libraries(akonadi_agent_server
${AGENT_SERVER_LIB}
${QT_QTCORE_LIBRARY}
${QT_QTGUI_LIBRARY}
${QT_QTDBUS_LIBRARY}
${AKONADI_COMMON_LIBRARIES}
akonadi_ical_resource
akonadi_vcard_resource
)
install(TARGETS akonadi_agent_server
DESTINATION ${BIN_INSTALL_DIR}
)
/*
Copyright (c) 2010 Andreas Holzammer <andreas.holzammer@kdab.com>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to the
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
*/
#include <QtPlugin>
Q_IMPORT_PLUGIN(akonadi_ical_resource)
Q_IMPORT_PLUGIN(akonadi_vcard_resource)
extern int cemain( int argc, char ** argv );
int main( int argc, char ** argv )
{
return cemain( argc, argv );
}
......@@ -27,7 +27,11 @@ qt4_add_dbus_adaptor(icalresource_SRCS
${CMAKE_CURRENT_BINARY_DIR}/org.kde.Akonadi.ICal.Settings.xml settings.h Settings
)
if (NOT WINCE)
kde4_add_plugin(akonadi_ical_resource ${icalresource_SRCS})
else(NOT WINCE)
kde4_add_plugin(akonadi_ical_resource STATIC ${icalresource_SRCS})
endif(NOT WINCE)
if (Q_WS_MAC)
set_target_properties(akonadi_ical_resource PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/../Info.plist.template)
......
......@@ -22,7 +22,11 @@ qt4_add_dbus_adaptor(vcardresource_SRCS
${CMAKE_CURRENT_BINARY_DIR}/org.kde.Akonadi.VCard.Settings.xml settings.h Settings
)
if (NOT WINCE)
kde4_add_plugin(akonadi_vcard_resource ${vcardresource_SRCS})
else(NOT WINCE)
kde4_add_plugin(akonadi_vcard_resource STATIC ${vcardresource_SRCS})
endif (NOT WINCE)
if (Q_WS_MAC)
set_target_properties(akonadi_vcard_resource PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/../Info.plist.template)
......
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