[kdepim] cmake port for kmobile, kitchensync, and doc

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1225672 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
samelian 14 years ago
parent 75f32756ec
commit 87b2ea0ac1

@ -106,6 +106,11 @@ option( BUILD_KARM "Build karm" ${BUILD_ALL} )
option( BUILD_KFILE_PLUGINS "Build kfile-plugins" ${BUILD_ALL} ) option( BUILD_KFILE_PLUGINS "Build kfile-plugins" ${BUILD_ALL} )
option( BUILD_KANDY "Build kandy" ${BUILD_ALL} ) option( BUILD_KANDY "Build kandy" ${BUILD_ALL} )
option( BUILD_KNODE "Build knode" ${BUILD_ALL} ) option( BUILD_KNODE "Build knode" ${BUILD_ALL} )
option( BUILD_KMOBILE "Build kmobile" ${BUILD_ALL} )
option( BUILD_DOC "Build doc" ${BUILD_ALL} )
# deprecated
option( BUILD_KITCHENSYNC "Build kitchensync" OFF )
##### configure checks ########################## ##### configure checks ##########################
@ -173,6 +178,9 @@ tde_conditional_add_subdirectory( BUILD_KARM karm )
tde_conditional_add_subdirectory( BUILD_KFILE_PLUGINS kfile-plugins ) tde_conditional_add_subdirectory( BUILD_KFILE_PLUGINS kfile-plugins )
tde_conditional_add_subdirectory( BUILD_KANDY kandy ) tde_conditional_add_subdirectory( BUILD_KANDY kandy )
tde_conditional_add_subdirectory( BUILD_KNODE knode ) tde_conditional_add_subdirectory( BUILD_KNODE knode )
tde_conditional_add_subdirectory( BUILD_KMOBILE kmobile )
tde_conditional_add_subdirectory( BUILD_KITCHENSYNC kitchensync )
tde_conditional_add_subdirectory( BUILD_DOC doc )
##### write configure files ##################### ##### write configure files #####################

@ -32,6 +32,31 @@ if( BUILD_INDEXLIB OR BUILD_KMAIL )
endif( ) endif( )
if( BUILD_KMOBILE )
# FIXME not checked because Gentoo don't provide baudboy.h
check_include_file( "baudboy.h" HAVE_BAUDBOY_H )
endif( )
if( BUILD_KANDY OR (BUILD_KMOBILE AND NOT HAVE_BAUDBOY_H) )
check_include_file( "lockdev.h" HAVE_LOCKDEV_H )
if( HAVE_LOCKDEV_H )
check_library_exists( lockdev dev_unlock "" HAVE_LOCKDEV )
if( HAVE_LOCKDEV )
set( LOCKDEV_LIBRARY lockdev CACHE INTERNAL "" FORCE )
endif( )
endif( )
endif( )
if( WITH_GNOKII AND (BUILD_KADDRESSBOOK OR BUILD_KMOBILE) )
pkg_search_module( GNOKII gnokii )
if( NOT GNOKII_FOUND )
tde_message_fatal( "gnokii are requested, but was not found on your system" )
endif( )
endif( )
if( BUILD_LIBKDENETWORK OR BUILD_CERTMANAGER OR BUILD_KMAIL OR BUILD_KADDRESSBOOK ) if( BUILD_LIBKDENETWORK OR BUILD_CERTMANAGER OR BUILD_KMAIL OR BUILD_KADDRESSBOOK )
if( NOT HAVE_GPGME_0_4_BRANCH ) if( NOT HAVE_GPGME_0_4_BRANCH )

@ -9,10 +9,5 @@
# #
################################################# #################################################
# gnokii tde_auto_add_subdirectories()
if( WITH_GNOKII )
pkg_search_module( GNOKII gnokii )
if( NOT GNOKII_FOUND )
tde_message_fatal( "gnokii are requested, but was not found on your system" )
endif( )
endif( )

@ -9,10 +9,4 @@
# #
################################################# #################################################
check_include_file( "lockdev.h" HAVE_LOCKDEV_H ) tde_create_handbook( DESTINATION akregator )
if( HAVE_LOCKDEV_H )
check_library_exists( lockdev dev_unlock "" HAVE_LOCKDEV )
if( HAVE_LOCKDEV )
set( LOCKDEV_LIBRARY lockdev CACHE INTERNAL "" FORCE )
endif( )
endif( )

@ -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_create_handbook( DESTINATION kaddressbook )

@ -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_create_handbook( DESTINATION kalarm )

@ -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_create_handbook( DESTINATION kandy )

@ -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_create_handbook( DESTINATION karm )

@ -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_create_handbook( DESTINATION kleopatra )

@ -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_create_handbook( DESTINATION kmail )

@ -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_create_handbook( DESTINATION knode )

@ -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_create_handbook( DESTINATION knotes )

@ -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_create_handbook( DESTINATION konsolekalendar )

@ -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_create_handbook( DESTINATION kontact )

@ -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_create_handbook( DESTINATION korganizer )

@ -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_create_handbook( DESTINATION korn )

@ -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_create_handbook( DESTINATION kpilot )

@ -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_create_handbook( DESTINATION ktnef )

@ -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_create_handbook( DESTINATION kwatchgnupg )

@ -9,8 +9,6 @@
# #
################################################# #################################################
include( ConfigureChecks.cmake )
include_directories( include_directories(
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}

@ -9,7 +9,5 @@
# #
################################################# #################################################
include( ConfigureChecks.cmake )
add_subdirectory( src ) add_subdirectory( src )
add_subdirectory( profiles ) add_subdirectory( profiles )

@ -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( libqopensync )
add_subdirectory( src )

@ -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( ConfigureChecks.cmake )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/..
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${OSENGINE_INCLUDE_DIRS}
${OPENSYNC_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### qopensync (shared) ########################
tde_add_library( qopensync SHARED AUTOMOC
SOURCES
callbackhandler.cpp conversion.cpp engine.cpp environment.cpp
filter.cpp group.cpp member.cpp plugin.cpp result.cpp syncmapping.cpp
syncupdates.cpp syncchange.cpp
VERSION 0.0.0
LINK kdeui-shared ${OSENGINE_LIBRARIES} ${OPENSYNC_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}
)

@ -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
#
#################################################
# NOTE is needed libopensync-0.22
pkg_search_module( OPENSYNC opensync-1.0 )
if( NOT OPENSYNC_FOUND )
tde_message_fatal( "opensync-1.0 is requested, but was not found on your system" )
endif( )
pkg_search_module( OSENGINE osengine-1.0 )
if( NOT OSENGINE_FOUND )
tde_message_fatal( "osengine-1.0 is requested, but was not found on your system" )
endif( )

@ -0,0 +1,76 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
tde_import( libkmime )
tde_import( ktnef )
tde_import( libkcal )
tde_import( libkdepim )
add_subdirectory( about )
add_subdirectory( pics )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/..
${CMAKE_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES kitchensync.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES kitchensyncui.rc kitchensync_part.rc DESTINATION ${DATA_INSTALL_DIR}/kitchensync )
##### libkitchensyncpart (module) ###############
tde_add_kpart( libkitchensyncpart AUTOMOC
SOURCES part.cpp
LINK kitchensync-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
##### kitchensync (executable) ##################
tde_add_executable( kitchensync AUTOMOC
SOURCES main.cpp mainwindow.cpp
LINK kitchensync-shared
DESTINATION ${BIN_INSTALL_DIR}
)
##### kitchensync (shared) ######################
tde_add_library( kitchensync SHARED AUTOMOC
SOURCES
aboutpage.cpp mainwidget.cpp groupconfigdialog.cpp groupconfig.cpp
groupitem.cpp groupview.cpp memberconfig.cpp syncprocess.cpp
syncprocessmanager.cpp connectionwidgets.cpp pluginpicker.cpp
configgui.cpp configguiblank.cpp configguifile.cpp memberinfo.cpp
groupconfigcommon.cpp kwidgetlist.cpp configguipalm.cpp
conflictdialog.cpp singleconflictdialog.cpp addresseediffalgo.cpp
calendardiffalgo.cpp htmldiffalgodisplay.cpp genericdiffalgo.cpp
multiconflictdialog.cpp configguiirmc.cpp configguisyncmlobex.cpp
configguisyncmlhttp.cpp configguiopie.cpp configguignokii.cpp
configguigcalendar.cpp configguildap.cpp configguigpe.cpp
configguijescs.cpp configguievo2.cpp configguimoto.cpp
configguisynce.cpp configguisunbird.cpp
VERSION 0.0.0
LINK qopensync-shared kdepim-shared khtml-shared
DESTINATION ${LIB_INSTALL_DIR}
)

@ -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-kitchensync.png main.html kitchensync.css
DESTINATION ${DATA_INSTALL_DIR}/kitchensync/about )

@ -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
#
#################################################
tde_install_icons( kitchensync )
tde_install_icons( hotsync mobile_phone DESTINATION ${DATA_INSTALL_DIR}/kitchensync/icons )

@ -0,0 +1,64 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
tde_import( libkmime )
tde_import( ktnef )
tde_import( libkcal )
add_subdirectory( devices )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
tde_install_icons( kmobile )
install( FILES kmobile.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES libkmobile.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} )
install( FILES kmobileui.rc DESTINATION ${DATA_INSTALL_DIR}/kmobile )
##### kmobile (executable) ######################
tde_add_executable( kmobile AUTOMOC
SOURCES
main.cpp kmobile.cpp kmobileview.cpp kmobileitem.cpp pref.cpp
kmobileiface.skel kmobile_selectiondialog.ui systemtray.cpp
LINK kmobiledevice-shared
DESTINATION ${BIN_INSTALL_DIR}
)
##### kmobiledevice (shared) ####################
tde_add_library( kmobiledevice SHARED AUTOMOC
SOURCES kmobiledevice.cpp
LINK kcal-shared
DESTINATION ${LIB_INSTALL_DIR}
)
##### kmobileclient (shared) ####################
tde_add_library( kmobileclient SHARED AUTOMOC
SOURCES kmobileclient.cpp
LINK kdecore-shared
DESTINATION ${LIB_INSTALL_DIR}
)

@ -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
#
#################################################
# FIXME gnokii support seems outdated, cannot be compiled
add_subdirectory( pics )
add_subdirectory( skeleton )
# tde_conditional_add_subdirectory( WITH_GNOKII gnokii )
add_subdirectory( digicam )
add_subdirectory( gammu )

@ -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
#
#################################################
install( FILES libkmobile_digicam.desktop DESTINATION ${SERVICES_INSTALL_DIR} )

@ -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
#
#################################################
install( FILES libkmobile_gammu.desktop DESTINATION ${SERVICES_INSTALL_DIR} )

@ -0,0 +1,41 @@
#################################################
#
# (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_CURRENT_SOURCE_DIR}/../..
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${GNOKII_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES
libkmobile_gnokii.desktop
DESTINATION ${SERVICES_INSTALL_DIR} )
##### libkmobile_gnokii (module) ################
tde_add_kpart( libkmobile_gnokii AUTOMOC
SOURCES
gnokii_mobile.cpp gnokiiconfigui.ui gnokiiconfig.cpp
LINK kmobiledevice-shared kcal-shared ${GNOKII_LIBRARIES}
DESTINATION ${PLUGIN_INSTALL_DIR}
)

@ -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
mobile_phone.png mobile_organizer.png mobile_camera.png
mobile_musicplayer.png mobile_unknown.png
DESTINATION ${ICON_INSTALL_DIR}/default.kde/32x32/devices )

@ -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_CURRENT_SOURCE_DIR}/../..
${CMAKE_SOURCE_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### other data ################################
install( FILES
libkmobile_skeleton.desktop
DESTINATION ${SERVICES_INSTALL_DIR} )
##### libkmobile_skeleton (module) ##############
tde_add_kpart( libkmobile_skeleton AUTOMOC
SOURCES skeleton.cpp
LINK kmobiledevice-shared
DESTINATION ${PLUGIN_INSTALL_DIR}
)
Loading…
Cancel
Save