diff options
author | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-10-05 19:41:05 +0000 |
---|---|---|
committer | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-10-05 19:41:05 +0000 |
commit | 7ffba8afee76edba6433d97864119501731742e8 (patch) | |
tree | 38b5eb5bd019b77b33f7ad8d7de7ef7666ebe8b1 | |
parent | 0db4822126702d04068c5761e63ed9684a08981b (diff) | |
download | tdelibs-7ffba8afee76edba6433d97864119501731742e8.tar.gz tdelibs-7ffba8afee76edba6433d97864119501731742e8.zip |
[kdelibs] added initial cmake support
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1182854 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
185 files changed, 11902 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 000000000..941edae2d --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,797 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +cmake_minimum_required( VERSION 2.6 ) + +# FIXME KDE3_MODULE_DIR is not set; this is cmake bug? +set( KDE3_MODULE_DIR "/usr/share/cmake/Modules" ) + +# directory to our cmake modules +set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" ) + +project( kdelibs ) +set( VERSION "3.5.12" ) + +##### user requested options #################### + +OPTION( KDE_MALLOC "Use own malloc implementation" OFF ) +OPTION( KDE_MALLOC_DEBUG "Enable debugging in fast malloc" OFF ) +OPTION( KDE_MALLOC_FULL "Make alloc as fast as possible" OFF ) + +OPTION( WITH_ARTS "Build with aRts" ON ) +OPTION( WITH_ALSA "Enable ALSA support" ON ) +OPTION( WITH_LIBART "Enable libart support (for SVG icons)" OFF ) +OPTION( WITH_LIBIDN "Enable support for libidn" OFF ) +OPTION( WITH_SSL "Enable support for SSL" ON ) +OPTION( WITH_CUPS "Enable CUPS support" ON ) +OPTION( WITH_LUA "Enable LUA support" OFF ) +OPTION( WITH_TIFF "Enable tiff support" OFF ) +OPTION( WITH_JASPER "Enable jasper (jpeg2k) support" OFF ) +OPTION( WITH_OPENEXR "Enable openexr support" OFF ) + +OPTION( WITH_ASPELL "Enable aspell support" OFF ) +OPTION( WITH_HSPELL "Enable hspell support" OFF ) + + +##### paths setup ############################### + +if( NOT BIN_INSTALL_DIR ) + set( BIN_INSTALL_DIR bin ) +endif ( NOT BIN_INSTALL_DIR ) + +if( NOT LIB_INSTALL_DIR ) + set( LIB_INSTALL_DIR lib ) +endif( NOT LIB_INSTALL_DIR ) + +if( NOT INCLUDE_INSTALL_DIR ) + set( INCLUDE_INSTALL_DIR include ) +endif( NOT INCLUDE_INSTALL_DIR ) + +if( NOT SHARE_INSTALL_DIR ) + set( SHARE_INSTALL_DIR share ) +endif( NOT SHARE_INSTALL_DIR ) + +if( NOT ICONS_INSTALL_DIR ) + set( ICONS_INSTALL_DIR ${SHARE_INSTALL_DIR}/icons ) +endif( NOT ICONS_INSTALL_DIR ) + +if( NOT MIME_INSTALL_DIR ) + set( MIME_INSTALL_DIR ${SHARE_INSTALL_DIR}/mimelnk ) +endif( NOT MIME_INSTALL_DIR ) + +if( NOT PLUGIN_INSTALL_DIR ) + set( PLUGIN_INSTALL_DIR ${LIB_INSTALL_DIR}/kde3 ) +endif( NOT PLUGIN_INSTALL_DIR ) + +if( NOT SERVICES_INSTALL_DIR ) + set( SERVICES_INSTALL_DIR share/services ) +endif( NOT SERVICES_INSTALL_DIR ) + +if( NOT DATA_INSTALL_DIR ) + set( DATA_INSTALL_DIR share/apps ) +endif( NOT DATA_INSTALL_DIR ) + +if( NOT HTML_INSTALL_DIR ) + set( HTML_INSTALL_DIR ${SHARE_INSTALL_DIR}/doc/HTML ) +endif( NOT HTML_INSTALL_DIR ) + +if( NOT CONFIG_INSTALL_DIR ) + set( CONFIG_INSTALL_DIR ${SHARE_INSTALL_DIR}/config ) +endif( NOT CONFIG_INSTALL_DIR ) + +if( NOT LOCALE_INSTALL_DIR ) + set( LOCALE_INSTALL_DIR share/locale ) +endif( NOT LOCALE_INSTALL_DIR ) + +if( NOT PKGCONFIG_INSTALL_DIR ) + set( PKGCONFIG_INSTALL_DIR lib/pkgconfig ) +endif( NOT PKGCONFIG_INSTALL_DIR ) + +if( NOT DCOP_PATH ) + set( DCOP_PATH ${CMAKE_INSTALL_PREFIX}/${BIN_INSTALL_DIR} ) +endif( NOT DCOP_PATH ) + +if( NOT KDEDIR ) + set( KDEDIR ${CMAKE_INSTALL_PREFIX} ) +endif( NOT KDEDIR ) + + +################################################# + + +if( NOT SYSCONFDIR ) + set( SYSCONFDIR ${CMAKE_INSTALL_PREFIX}/etc ) +endif( NOT SYSCONFDIR ) + +if( NOT XDG_MENUDIR ) + set( XDG_MENUDIR ${SYSCONFDIR}/xdg/menus ) +endif( NOT XDG_MENUDIR ) + + +##### include our cmake modules ################# + +include( TDEMacros ) + + +##### check for CPU architecture ################ + +### FIXME fast malloc is also available on x86_64 architecture? +if( ${CMAKE_SYSTEM_PROCESSOR} MATCHES "i?86" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" ) + set( KDE_MALLOC_X86 1 ) + message( STATUS "Found x86 architecture" ) +else( ${CMAKE_SYSTEM_PROCESSOR} MATCHES "i?86" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" ) + if( KDE_MALLOC ) + message( FATAL_ERROR "\nKDE fast malloc is available only on x86 architecture" ) + endif( KDE_MALLOC ) +endif( ${CMAKE_SYSTEM_PROCESSOR} MATCHES "i?86" OR ${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64" ) + + +##### check for operating system ################ + +if( ${CMAKE_SYSTEM_NAME} STREQUAL "Linux" ) + set( KDEINIT_SETUID 1 ) + set( KDEINIT_OOM_PROTECT 1 ) +endif( ${CMAKE_SYSTEM_NAME} STREQUAL "Linux" ) + + +##### check for compiler capabilities ########### + +include( CheckCXXCompilerFlag ) + +check_cxx_compiler_flag( -Woverloaded-virtual WOVERLOADED_VIRTUAL ) +if( WOVERLOADED_VIRTUAL ) + set( WOVERLOADED_VIRTUAL -Woverloaded-virtual ) +endif( WOVERLOADED_VIRTUAL ) + +check_cxx_compiler_flag( -fno-builtin NO_BUILTIN ) +if( NO_BUILTIN ) + +endif( NO_BUILTIN ) + + +##### system checks ############################# + +include( CheckIncludeFile ) +include( CheckSymbolExists ) +include( CheckFunctionExists ) +include( FindPkgConfig ) +include( CheckCSourceCompiles ) +include( CheckTypeSize ) +include( CheckCSourceRuns ) + +check_include_file( "alloca.h" HAVE_ALLOCA_H ) +check_include_file( "arpa/nameser8_compat.h" HAVE_ARPA_NAMESER8_COMPAT_H ) +check_include_file( "awe_voice.h" HAVE_AWE_VOICE_H ) +check_include_file( "Carbon/Carbon.h" HAVE_CARBON_CARBON_H ) +check_include_file( "crt_externs.h" HAVE_CRT_EXTERNS_H ) +check_include_file( "ctype.h" HAVE_CTYPE_H ) +check_include_file( "dirent.h" HAVE_DIRENT_H ) +check_include_file( "dld.h" HAVE_DLD_H ) +check_include_file( "dlfcn.h" HAVE_DLFCN_H ) +check_include_file( "dl.h" HAVE_DL_H ) +check_include_file( "float.h" HAVE_FLOAT_H ) +check_include_file( "fstab.h" HAVE_FSTAB_H ) +check_include_file( "ieeefp.h" HAVE_IEEEFP_H ) +check_include_file( "inttypes.h" HAVE_INTTYPES_H ) +check_include_file( "libutil.h" HAVE_LIBUTIL_H ) +check_include_file( "limits.h" HAVE_LIMITS_H ) +check_include_file( "linux/awe_voice.h" HAVE_LINUX_AWE_VOICE_H ) +check_include_file( "locale.h" HAVE_LOCALE_H ) +check_include_file( "machine/soundcard.h" HAVE_MACHINE_SOUNDCARD_H ) +check_include_file( "malloc.h" HAVE_MALLOC_H ) +check_include_file( "memory.h" HAVE_MEMORY_H ) +check_include_file( "mntent.h" HAVE_MNTENT_H ) +check_include_file( "ndir.h" HAVE_NDIR_H ) +check_include_file( "netinet/in.h" HAVE_NETINET_IN_H ) +check_include_file( "net/if.h" HAVE_NET_IF_H ) +check_include_file( "paths.h" HAVE_PATHS_H ) +check_include_file( "pty.h" HAVE_PTY_H ) +check_include_file( "stdint.h" HAVE_STDINT_H ) +check_include_file( "stdio.h" HAVE_STDIO_H ) +check_include_file( "stdlib.h" HAVE_STDLIB_H ) +check_include_file( "strings.h" HAVE_STRINGS_H ) +check_include_file( "string.h" HAVE_STRING_H ) +check_include_file( "sysent.h" HAVE_SYSENT_H ) +check_include_file( "sys/bitypes.h" HAVE_SYS_BITYPES_H ) +check_include_file( "sys/dir.h" HAVE_SYS_DIR_H ) +check_include_file( "sys/filio.h" HAVE_SYS_FILIO_H ) +check_include_file( "sys/mman.h" HAVE_SYS_MMAN_H ) +check_include_file( "sys/mntent.h" HAVE_SYS_MNTENT_H ) +check_include_file( "sys/mnttab.h" HAVE_SYS_MNTTAB_H ) +check_include_file( "sys/mount.h" HAVE_SYS_MOUNT_H ) +check_include_file( "sys/ndir.h" HAVE_SYS_NDIR_H ) +check_include_file( "sys/param.h" HAVE_SYS_PARAM_H ) +check_include_file( "sys/prctl.h" HAVE_SYS_PRCTL_H ) +check_include_file( "sys/select.h" HAVE_SYS_SELECT_H ) +check_include_file( "sys/soundcard.h" HAVE_SYS_SOUNDCARD_H ) +check_include_file( "sys/stat.h" HAVE_SYS_STAT_H ) +check_include_file( "sys/stropts.h" HAVE_SYS_STROPTS_H ) +check_include_file( "sys/types.h" HAVE_SYS_TYPES_H ) +check_include_file( "sys/ucred.h" HAVE_SYS_UCRED_H ) +check_include_file( "sys/xattr.h" sys/xattr.h ) +check_include_file( "termios.h" HAVE_TERMIOS_H ) +check_include_file( "termio.h" HAVE_TERMIO_H ) +check_include_file( "unistd.h" HAVE_UNISTD_H ) +check_include_file( "util.h" HAVE_UTIL_H ) + +# FIXME I'm not sure if test TIME_WITH_SYS_TIME are correct +check_include_file( "sys/time.h" HAVE_SYS_TIME_H ) +check_include_file( "time.h" HAVE_TIME_H ) +if( HAVE_SYS_TIME_H AND HAVE_TIME_H ) + set( TIME_WITH_SYS_TIME 1 ) +endif( HAVE_SYS_TIME_H AND HAVE_TIME_H ) + +check_include_file( "valgrind/memcheck.h" HAVE_VALGRIND_MEMCHECK_H ) +check_include_file( "values.h" HAVE_VALUES_H ) +check_include_file( "X11/extensions/shape.h" HAVE_X11_EXTENSIONS_SHAPE_H ) +check_include_file( "X11/extensions/Xrandr.h" HAVE_X11_EXTENSIONS_XRANDR_H ) +check_include_file( "X11/extensions/XShm.h" HAVE_X11_EXTENSIONS_XSHM_H ) +check_include_file( "X11/ICE/ICElib.h" HAVE_X11_ICE_ICELIB_H ) +check_include_file( "/usr/src/sys/gnu/i386/isa/sound/awe_voice.h" HAVE__USR_SRC_SYS_GNU_I386_ISA_SOUND_AWE_VOICE_H ) +check_include_file( "/usr/src/sys/i386/isa/sound/awe_voice.h" HAVE__USR_SRC_SYS_I386_ISA_SOUND_AWE_VOICE_H ) + +check_function_exists( random HAVE_RANDOM ) +check_symbol_exists( random "stdlib.h" HAVE_RANDOM_PROTO ) + +check_function_exists( srandom HAVE_SRANDOM ) +check_symbol_exists( srandom "stdlib.h" HAVE_SRANDOM_PROTO ) + +check_function_exists( seteuid HAVE_SETEUID ) + +check_function_exists( gethostname HAVE_GETHOSTNAME ) +check_symbol_exists( gethostname "unistd.h" HAVE_GETHOSTNAME_PROTO ) + +check_function_exists( vsnprintf HAVE_VSNPRINTF ) +check_function_exists( snprintf HAVE_SNPRINTF ) + +check_function_exists( setenv HAVE_SETENV ) +check_symbol_exists( setenv "stdlib.h" HAVE_SETENV_PROTO ) + +check_function_exists( unsetenv HAVE_UNSETENV ) +check_symbol_exists( unsetenv "stdlib.h" HAVE_UNSETENV_PROTO ) + +check_function_exists( mkdtemp HAVE_MKDTEMP ) +check_symbol_exists( mkdtemp "stdlib.h" HAVE_MKDTEMP_PROTO ) + +check_function_exists( mkstemp HAVE_MKSTEMP ) +check_symbol_exists( mkstemp "stdlib.h" HAVE_MKSTEMP_PROTO ) + +check_function_exists( mkstemps HAVE_MKSTEMPS ) +check_symbol_exists( mkstemps "stdlib.h" HAVE_MKSTEMPS_PROTO ) + +check_function_exists( initgroups HAVE_INITGROUPS ) +check_symbol_exists( initgroups "grp.h" HAVE_INITGROUPS_PROTO ) + +check_symbol_exists( S_ISSOCK "sys/stat.h" HAVE_S_ISSOCK ) + +check_symbol_exists( gethostbyname2 "netdb.h" HAVE_GETHOSTBYNAME2 ) +check_symbol_exists( gethostbyname2_r "netdb.h" HAVE_GETHOSTBYNAME2_R ) +check_symbol_exists( gethostbyname_r "netdb.h" HAVE_GETHOSTBYNAME_R ) +check_symbol_exists( gai_strerror "sys/types.h;sys/socket.h;netdb.h" HAVE_GAI_STRERROR ) +check_symbol_exists( getaddrinfo "sys/types.h;sys/socket.h;netdb.h" HAVE_GETADDRINFO ) + +check_function_exists( usleep HAVE_USLEEP ) +check_symbol_exists( usleep "unistd.h" HAVE_USLEEP_PROTO ) + +check_function_exists( getmntinfo HAVE_GETMNTINFO ) +check_function_exists( getnameinfo HAVE_GETNAMEINFO ) +check_function_exists( getpagesize HAVE_GETPAGESIZE ) +check_function_exists( getpeereid HAVE_GETPEEREID ) +check_function_exists( getpeername HAVE_GETPEERNAME ) +check_function_exists( getprotobyname_r HAVE_GETPROTOBYNAME_R ) +check_function_exists( getpt HAVE_GETPT ) +check_function_exists( getservbyname_r HAVE_GETSERVBYNAME_R ) +check_function_exists( getservbyport_r HAVE_GETSERVBYPORT_R ) +check_function_exists( getsockname HAVE_GETSOCKNAME ) +check_function_exists( getsockopt HAVE_GETSOCKOPT ) +check_function_exists( gettimeofday HAVE_GETTIMEOFDAY ) +check_function_exists( grantpt HAVE_GRANTPT ) +check_function_exists( if_nametoindex HAVE_IF_NAMETOINDEX ) +check_function_exists( index HAVE_INDEX) +check_function_exists( inet_ntop HAVE_INET_NTOP ) +check_function_exists( inet_pton HAVE_INET_PTON ) +check_function_exists( setfsent HAVE_SETFSENT ) +check_function_exists( setgroups HAVE_SETGROUPS ) +check_function_exists( setlocale HAVE_SETLOCALE ) +check_function_exists( setmntent HAVE_SETMNTENT ) +check_function_exists( setpriority HAVE_SETPRIORITY ) +check_function_exists( isnan HAVE_FUNC_ISNAN ) +check_function_exists( _finite HAVE_FUNC__FINITE ) +check_function_exists( finite HAVE_FUNC_FINITE ) +check_function_exists( isinf HAVE_FUNC_ISINF ) +check_function_exists( freeaddrinfo HAVE_FREEADDRINFO ) + +check_type_size( "char*" SIZEOF_CHAR_P ) +check_type_size( "int" SIZEOF_INT ) +check_type_size( "long" SIZEOF_LONG ) +check_type_size( "short" SIZEOF_SHORT ) +check_type_size( "size_t" SIZEOF_SIZE_T ) +check_type_size( "unsigned long" SIZEOF_UNSIGNED_LONG ) + +set( CMAKE_EXTRA_INCLUDE_FILES "netdb.h" ) +check_type_size( "struct addrinfo" STRUCT_ADDRINFO ) +set( CMAKE_EXTRA_INCLUDE_FILES "netinet/in.h" ) +check_type_size( "struct sockaddr_in6" HAVE_STRUCT_SOCKADDR_IN6 ) +unset( CMAKE_EXTRA_INCLUDE_FILES ) + +check_c_source_compiles(" + #include <features.h> + #ifndef __GNU_LIBRARY__ + #error + #endif + int main(int argc, char *argv[]) { return 0; } " + _GNU_SOURCE ) + +check_c_source_compiles(" + #include <unistd.h> + int main(int argc, char *argv[]) { revoke(\"/dev/tty\"); return 0; } " + HAVE_REVOKE ) + +check_c_source_runs(" + #include <sys/types.h> + #include <sys/socket.h> + #include <netdb.h> + #include <string.h> + int main() + { + struct addrinfo hint, *res; + int err; + memset(&hint, 0, sizeof(hint)); + hint.ai_family = AF_INET; + hint.ai_protocol = 0; + hint.ai_socktype = SOCK_STREAM; + hint.ai_flags = AI_PASSIVE; + err = getaddrinfo(0, \"18300\", &hint, &res); /* kxmlrpc tries this */ + if (err != 0 || res == 0 || res->ai_family != AF_INET) + return 1; + return 0; + }" + HAVE_GOOD_GETADDRINFO +) + +if( NOT HAVE_GOOD_GETADDRINFO ) + set( HAVE_BROKEN_GETADDRINFO 1 ) +endif( NOT HAVE_GOOD_GETADDRINFO ) + + +# save CMAKE_REQUIRED_LIBRARIES +set( bak_CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ) + +set( CMAKE_REQUIRED_LIBRARIES resolv ) +check_c_source_compiles(" + #include <sys/types.h> + #include <netinet/in.h> + #include <arpa/nameser.h> + #include <resolv.h> + int main(int argc, char *argv[]) { res_init(); return 0; } " + HAVE_RES_INIT ) + +if( HAVE_RES_INIT ) + set( RESOLV_LIBRARIES resolv ) +endif( HAVE_RES_INIT) + +# restore CMAKE_REQUIRED_LIBRARIES +set( CMAKE_REQUIRED_LIBRARIES ${bak_CMAKE_REQUIRED_LIBRARIES} ) +unset( bak_CMAKE_REQUIRED_LIBRARIES ) + + +# FIXME for unknown reason cmake cannot find su +#find_program( __PATH_SU su ) +set( __PATH_SU "/bin/su" ) + +if( __PATH_SU ) + set( DEFAULT_SUPER_USER_COMMAND ${__PATH_SU} ) +else( __PATH_SU ) + message( STATUS "WARNING: su was not found" ) +endif( __PATH_SU ) + +# FIXME for unknown reason cmake cannot find sudo +# find_program( __PATH_SUDO "sudo" ) +set( __PATH_SUDO "/usr/bin/sudo" ) +if( WITH_SUDO_KDESU_BACKEND ) + if( __PATH_SUDO ) + set( DEFAULT_SUPER_USER_COMMAND ${__PATH_SUDO} ) + else( __PATH_SUDO ) + message( FATAL_ERROR "sudo was chosen as kdesu backend, but was not found in path." ) + endif( __PATH_SUDO ) +endif( WITH_SUDO_KDESU_BACKEND ) + + +#### set some constants ######################### + +set( LTDL_OBJDIR \".\" ) +set( KDELIBSUFF "" ) +set( kde_socklen_t socklen_t ) + + +##### check for libdl ########################### + +find_library( HAVE_LIBDL dl ) +if( NOT HAVE_LIBDL-NOTFOUND ) + set( DL_LIBRARIES dl ) +endif( NOT HAVE_LIBDL-NOTFOUND ) + + +##### check for zlib ############################ + +find_package( ZLIB ) +if( NOT ZLIB_FOUND ) + message(FATAL_ERROR "\nzlib are required, but not found on your system" ) +endif( NOT ZLIB_FOUND ) + +set( HAVE_LIBZ 1 ) + + +#### check for bzip2 ############################ + +find_package( BZip2 ) +if( NOT BZIP2_FOUND ) + # FIXME I'm not sure if bzip2 are required; maybe is optional? + message(FATAL_ERROR "\nbzip2 are required, but not found on your system" ) +endif( NOT BZIP2_FOUND ) + +set( HAVE_BZIP2_SUPPORT 1 ) + +if( BZIP2_NEED_PREFIX ) + set( NEED_BZ2_PREFIX 1 ) +endif( BZIP2_NEED_PREFIX ) + + +##### check for jpeg ############################ + +find_package( JPEG ) +if( NOT JPEG_FOUND ) + # FIXME I think jpeg support must be required + message(FATAL_ERROR "\njpeg are required, but not found on your system" ) +endif( NOT JPEG_FOUND ) + +set( HAVE_LIBJPEG 1 ) + + +##### check for png ############################# + +find_package( PNG ) +if( NOT PNG_FOUND ) + # FIXME I think png support must be required + message(FATAL_ERROR "\npng are required, but not found on your system" ) +endif( NOT PNG_FOUND ) + +set( HAVE_LIBPNG 1 ) + + +##### check for tiff ############################ + +if( WITH_TIFF ) + find_package( TIFF ) + if( NOT TIFF_FOUND ) + message(FATAL_ERROR "\ntiff are requested, but not found on your system" ) + endif( NOT TIFF_FOUND ) + set( HAVE_LIBTIFF 1) +endif( WITH_TIFF ) + + +##### check for jasper ########################## + +if( WITH_JASPER ) + find_package( Jasper ) + if( NOT JASPER_FOUND ) + message(FATAL_ERROR "\njasper are requested, but not found on your system" ) + endif( NOT JASPER_FOUND ) + set( HAVE_JASPER 1 ) +endif( WITH_JASPER ) + + +##### check for openexr ######################### + +if( WITH_OPENEXR ) + pkg_search_module( OPENEXR OpenEXR ) + if( NOT OPENEXR_FOUND ) + message(FATAL_ERROR "\nopenexr are requested, but not found on your system" ) + endif( NOT OPENEXR_FOUND ) + set( HAVE_EXR 1 ) +endif( WITH_OPENEXR ) + + +##### check for freetype2 ####################### + +pkg_search_module( FREETYPE freetype2 ) +if( NOT FREETYPE_FOUND ) + message(FATAL_ERROR "\nfreetype2 are required, but not found on your system" ) +endif( NOT FREETYPE_FOUND ) + +set( KDEINIT_USE_FONTCONFIG 1 ) + + +##### check for fontconfig ###################### + +pkg_search_module( FONTCONFIG fontconfig ) +if( NOT FONTCONFIG_FOUND ) + message(FATAL_ERROR "\nfontconfig are required, but not found on your system" ) +endif( NOT FONTCONFIG_FOUND ) + + +##### check for Xrandr ########################## + +pkg_search_module( XRANDR xrandr ) +if( XRANDR_FOUND ) + set( XRANDR_SUPPORT 1 ) +endif( XRANDR_FOUND ) + + +##### check for libxml-2.0 ###################### + +pkg_search_module( LIBXML2 libxml-2.0 ) +if( NOT LIBXML2_FOUND ) + message(FATAL_ERROR "\nlibxml-2.0 are required, but not found on your system" ) +endif( NOT LIBXML2_FOUND ) + + +##### check for libxslt ###################### + +pkg_search_module( LIBXSLT libxslt ) +if( NOT LIBXSLT_FOUND ) + message(FATAL_ERROR "\nlibxslt are required, but not found on your system" ) +endif( NOT LIBXSLT_FOUND ) + + +##### check for Qt3 ############################# + +find_package( Qt3 ) +if( NOT QT_FOUND ) + message(FATAL_ERROR "\nQt3 are required, but not found on your system" ) +endif( NOT QT_FOUND ) + + +##### check for TQt ############################# + +pkg_search_module( TQT TQt ) +if( NOT TQT_FOUND ) + message(FATAL_ERROR "\nTQt are required, but not found on your system" ) +endif( NOT TQT_FOUND ) + +set( QT_MOC_EXECUTABLE "tmoc" ) + +# check if Qt is linked against Xft +set( bak_CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ) +set( CMAKE_REQUIRED_LIBRARIES ${TQT_LDFLAGS} ) +check_function_exists( XftInit KDEINIT_USE_XFT ) +set( CMAKE_REQUIRED_LIBRARIES ${bak_CMAKE_REQUIRED_LIBRARIES} ) +unset( bak_CMAKE_REQUIRED_LIBRARIES ) + + +##### check for ALSA ############################ +# FIXME I propose to drop support for very old ALSA versions (i.e 0.5) + +if( WITH_ALSA ) + find_package( ALSA ) + if( NOT ALSA_FOUND ) + message(FATAL_ERROR "\nALSA support are requested, but not found on your system" ) + endif( NOT ALSA_FOUND ) + set( HAVE_LIBASOUND2 1 ) + + # FIXME I'm not sure if order is correct + check_include_file( "alsa/asoundlib.h" HAVE_ALSA_ASOUNDLIB_H ) + if( NOT HAVE_ALSA_ASOUNDLIB_H ) + check_include_file( "sys/asoundlib.h" HAVE_SYS_ASOUNDLIB_H ) + endif( NOT HAVE_ALSA_ASOUNDLIB_H ) +endif( WITH_ALSA ) + + +##### check for aRts ############################ + +if( WITH_ARTS ) + pkg_search_module( ARTS arts ) + if( ARTS_FOUND ) + set( ARTS_MCOPIDL_EXECUTABLE ${ARTS_PREFIX}/bin/mcopidl ) + else( ARTS_FOUND ) + message(FATAL_ERROR "\naRts are requested, but not found on your system" ) + endif( ARTS_FOUND ) +else( WITH_ARTS ) + set( WITHOUT_ARTS 1 ) +endif( WITH_ARTS ) + + +##### check for Xft ############################# + +if( KDEINIT_USE_XFT ) + pkg_search_module( XFT xft ) + if( NOT XFT_FOUND ) + message(FATAL_ERROR "\nXft are required, but not found on your system" ) + endif( NOT XFT_FOUND ) +endif( KDEINIT_USE_XFT ) + + +##### check for libart ########################## + +if( WITH_LIBART ) + pkg_search_module( LIBART libart-2.0 ) + if( NOT LIBART_FOUND ) + message(FATAL_ERROR "\nlibart-2.0 support are requested, but not found on your system" ) + endif( NOT LIBART_FOUND ) + set( HAVE_LIBART 1 ) +endif( WITH_LIBART ) + + +##### check for libidn ########################## + +if( WITH_LIBIDN ) + pkg_search_module( LIBIDN libidn ) + if( NOT LIBIDN_FOUND ) + message(FATAL_ERROR "\nlibidn support are requested, but not found on your system" ) + endif( NOT LIBIDN_FOUND ) + set( HAVE_LIBIDN 1 ) + check_include_file( "idna.h" HAVE_IDNA_H ) + check_include_file( "punycode.h" HAVE_PUNYCODE_H ) + check_include_file( "stringprep.h" HAVE_STRINGPREP_H ) +endif( WITH_LIBIDN ) + + +##### check for openssl ######################### + +if( WITH_SSL ) + pkg_search_module( SSL openssl ) + if( NOT SSL_FOUND ) + message(FATAL_ERROR "\nSSL support are requested, but openssl is not found on your system" ) + endif( NOT SSL_FOUND ) + set( KSSL_HAVE_SSL 1 ) +endif( WITH_SSL ) + + +##### check for cups ############################ +# FIXME CUPS must be at least 1.1.9 + +if( WITH_CUPS ) + find_package( Cups ) + if( NOT CUPS_FOUND ) + message(FATAL_ERROR "\nCUPS support are requested, but not found on your system" ) + endif( NOT CUPS_FOUND ) + set( HAVE_CUPS 1 ) + # FIXME if CUPS is at least 1.1.20, doesn't have password caching + set( HAVE_CUPS_NO_PWD_CACHE 1 ) +endif( WITH_CUPS ) + + +##### check for LUA ############################# + +if( WITH_LUA ) + message(FATAL_ERROR "\nLUA support are not ready yet" ) + pkg_search_module( LUA lua ) + if( NOT LUA_FOUND ) + message(FATAL_ERROR "\nLUA support are requested, but not found on your system" ) + endif( NOT LUA_FOUND ) + set( HAVE_LUA 1 ) +endif( WITH_LUA ) + + +##### check for avahi ########################### + +pkg_search_module( AVAHI avahi-qt3 ) +if( NOT AVAHI_FOUND ) + message(FATAL_ERROR "\navahi support are requested, but not found on your system" ) +endif( NOT AVAHI_FOUND ) + +set( AVAHI_API_0_6 1 ) + + +##### check for aspell ########################## +# we need ASPELL_DATADIR too + +if( WITH_ASPELL ) + find_package( ASPELL ) + if( NOT ASPELL_FOUND ) + message(FATAL_ERROR "\nASPELL support are requested, but not found on your system" ) + endif( NOT ASPELL_FOUND ) +endif( WITH_ASPELL ) + + +##### check for hspell ########################## + +if( WITH_HSPELL ) + find_package( HSPELL ) + if( NOT HSPELL_FOUND ) + message(FATAL_ERROR "\nHSPELL support are requested, but not found on your system" ) + endif( NOT HSPELL_FOUND ) +endif( WITH_HSPELL ) + + +##### write configure files ##################### + +configure_file( config.h.cmake config.h ) +configure_file( dcop/dcop-path.h.cmake dcop/dcop-path.h ) +configure_file( kdecore/kdemacros.h.cmake kdecore/kdemacros.h ) +configure_file( kjs/global.h.in kjs/global.h ) +configure_file( kio/kssl/ksslconfig.h.cmake kio/kssl/ksslconfig.h ) +configure_file( kdoctools/checkXML.cmake kdoctools/checkXML ) + + +##### tools ##################################### + +set( KDE3_DCOPIDL_EXECUTABLE ${CMAKE_BINARY_DIR}/dcop/dcopidl/dcopidl ) +set( KDE3_DCOPIDL2CPP_EXECUTABLE ${CMAKE_BINARY_DIR}/dcop/dcopidl2cpp/dcopidl2cpp ) +set( KDE3_MEINPROC_EXECUTABLE ${CMAKE_BINARY_DIR}/kdoctools/meinproc ) +set( KDE3_KCFGC_EXECUTABLE ${CMAKE_BINARY_DIR}/kdecore/kconfig_compiler/kconfig_compiler ) + + +##### global compiler settings ################## + +add_definitions( + -DHAVE_CONFIG_H + -DQT_NO_ASCII_CAST + -DQT_CLEAN_NAMESPACE + -DQT_NO_STL + -DQT_NO_COMPAT + -DQT_NO_TRANSLATION +) + +set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" ) +set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" ) + + +##### headers ################################### + +install( FILES + kde.pot + DESTINATION ${INCLUDE_INSTALL_DIR} ) + + +##### subdirectories ############################ + +add_subdirectory( dcop ) +add_subdirectory( libltdl ) +add_subdirectory( kdefx ) +add_subdirectory( kdecore ) +add_subdirectory( kunittest ) +add_subdirectory( kdeui ) +add_subdirectory( kdesu ) +add_subdirectory( kjs ) +add_subdirectory( kwallet ) +add_subdirectory( kio ) +add_subdirectory( kded ) + +# FIXME this directory/target doesn't exists +# add_subdirectory( kded_post ) + +add_subdirectory( kdoctools ) + +# FIXME is not very important, I will back there later +# add_subdirectory( doc ) + +add_subdirectory( kparts ) +add_subdirectory( kutils ) +add_subdirectory( kspell2 ) +add_subdirectory( kmdi ) +add_subdirectory( kinit ) +add_subdirectory( kdeprint ) +add_subdirectory( kab ) +add_subdirectory( kresources ) +add_subdirectory( kabc ) +add_subdirectory( arts ) +add_subdirectory( interfaces ) +add_subdirectory( kate ) +add_subdirectory( kcert ) +if( XRANDR_FOUND ) + add_subdirectory( krandr ) +endif( XRANDR_FOUND ) +add_subdirectory( khtml ) +add_subdirectory( kcmshell ) +add_subdirectory( kconf_update ) +add_subdirectory( kdewidgets ) +add_subdirectory( kimgio ) +add_subdirectory( kioslave ) +add_subdirectory( kstyles ) +add_subdirectory( libkmid ) +add_subdirectory( libkscreensaver ) +add_subdirectory( networkstatus ) +add_subdirectory( knewstuff ) +add_subdirectory( licenses ) +add_subdirectory( dnssd ) +add_subdirectory( pics ) +add_subdirectory( mimetypes ) diff --git a/arts/CMakeLists.txt b/arts/CMakeLists.txt new file mode 100644 index 000000000..706aeadca --- /dev/null +++ b/arts/CMakeLists.txt @@ -0,0 +1,17 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +if( ARTS_FOUND ) + add_subdirectory( kde ) + add_subdirectory( message ) +endif( ARTS_FOUND ) + +add_subdirectory( knotify ) diff --git a/arts/kde/CMakeLists.txt b/arts/kde/CMakeLists.txt new file mode 100644 index 000000000..70282455e --- /dev/null +++ b/arts/kde/CMakeLists.txt @@ -0,0 +1,69 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${ARTS_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + kplayobject.h kplayobjectfactory.h kartsfloatwatch.h + ${CMAKE_CURRENT_BINARY_DIR}/artskde.h kartsdispatcher.h + kaudiorecordstream.h kaudioplaystream.h kartsserver.h + kvideowidget.h kaudiomanagerplay.h + DESTINATION ${INCLUDE_INSTALL_DIR}/arts ) + + +##### artskde ################################### + +set( target artskde ) + +set( ${target}_SRCS + artskde.cc kioinputstream_impl.cpp kplayobject.cc + kplayobjectfactory.cc kartsfloatwatch.cpp kartsdispatcher.cc + kaudiorecordstream.cpp kaudioplaystream.cpp kartsserver.cpp + kdatarequest_impl.cpp kaudioconverter.cc kvideowidget.cpp + kplayobjectcreator.cc kaudiomanagerplay.cpp +) + +add_custom_command( + OUTPUT artskde.cc artskde.h + COMMAND ${ARTS_MCOPIDL_EXECUTABLE} + ARGS -I${ARTS_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR}/artskde.idl + DEPENDS artskde.idl +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 1.2.0 + LINK kio-shared mcop artsflow_idl kmedia2_idl soundserver_idl artsflow qtmcop + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/arts/knotify/CMakeLists.txt b/arts/knotify/CMakeLists.txt new file mode 100644 index 000000000..01d3d41fe --- /dev/null +++ b/arts/knotify/CMakeLists.txt @@ -0,0 +1,56 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${ARTS_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/arts/kde + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES knotify.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +##### knotify ################################### + +set( target knotify ) + +set( ${target}_SRCS + knotify.cpp knotify.skel +) + +if( ARTS_FOUND ) + set( LIBS artskde-shared ) +endif( ARTS_FOUND ) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK ${LIBS} + DEPENDENCIES dcopidl + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/arts/message/CMakeLists.txt b/arts/message/CMakeLists.txt new file mode 100644 index 000000000..b21b42bc1 --- /dev/null +++ b/arts/message/CMakeLists.txt @@ -0,0 +1,40 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### artsmessage ############################### + +set( target artsmessage ) + +set( ${target}_SRCS + artsmessage.cc +) + +tde_add_executable( ${target} + SOURCES ${${target}_SRCS} + LINK kdeui-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/cmake/modules/TDEMacros.cmake b/cmake/modules/TDEMacros.cmake new file mode 100644 index 000000000..adf9d3bae --- /dev/null +++ b/cmake/modules/TDEMacros.cmake @@ -0,0 +1,684 @@ +################################################# +##### +##### tde_install_icons( <icons...> THEME <svgicons> DESTINATION <destdir> ) +##### default theme: hicolor +##### default destination: ${SHARE_INSTALL_DIR}/icons + +macro( tde_install_icons ) + + # clearing + unset( _dest ) + unset( _req_theme ) + unset( _icons ) + set( _var _icons ) + + # parse all arguments + foreach( _arg ${ARGV} ) + # directive DESTINATION + if( _arg STREQUAL "DESTINATION" ) + set( _var _dest ) + set( _directive 1 ) + endif( _arg STREQUAL "DESTINATION" ) + # directive THEME + if( _arg STREQUAL "THEME" ) + set( _var _req_theme ) + set( _directive 1 ) + endif( _arg STREQUAL "THEME" ) + # collect data + if( _directive ) + unset( _directive ) + else( _directive ) + set( ${_var} ${${_var}} ${_arg} ) + set( _var _icons ) + endif( _directive ) + endforeach( _arg ) + + #defaults + if( NOT _icons ) + set( _icons "*" ) + endif( NOT _icons ) + if( NOT _dest ) + set( _dest "${SHARE_INSTALL_DIR}/icons" ) + endif( NOT _dest ) + + foreach( _icon ${_icons} ) + unset( _theme ) # clearing + + file(GLOB _icon_files *-${_icon}.png _icon_files *-${_icon}.svg* ) + foreach( _icon_file ${_icon_files} ) + # FIXME need a review + string( REGEX MATCH "^.*/([a-zA-Z][a-zA-Z])([0-9a-zA-Z]+)\\-([a-z]+)\\-(.+)$" _dummy "${_icon_file}" ) + set( _type "${CMAKE_MATCH_1}" ) + set( _size "${CMAKE_MATCH_2}" ) + set( _group "${CMAKE_MATCH_3}" ) + set( _name "${CMAKE_MATCH_4}" ) + + # autodetect theme + if( NOT _req_theme ) + if( "${_type}" STREQUAL "cr" ) + set( _theme crystalsvg ) + endif( "${_type}" STREQUAL "cr" ) + # defaulting + if( NOT _theme ) + set( _theme hicolor ) + endif( NOT _theme ) + else( NOT _req_theme ) + set( _theme ${_req_theme} ) + endif( NOT _req_theme ) + + # fix "group" name + if( "${_group}" STREQUAL "mime" ) + set( _group "mimetypes" ) + endif( "${_group}" STREQUAL "mime" ) + if( "${_group}" STREQUAL "filesys" ) + set( _group "filesystems" ) + endif( "${_group}" STREQUAL "filesys" ) + if( "${_group}" STREQUAL "device" ) + set( _group "devices" ) + endif( "${_group}" STREQUAL "device" ) + if( "${_group}" STREQUAL "app" ) + set( _group "apps" ) + endif( "${_group}" STREQUAL "app" ) + if( "${_group}" STREQUAL "action" ) + set( _group "actions" ) + endif( "${_group}" STREQUAL "action" ) + + if( "${_size}" STREQUAL "sc" ) + install( FILES ${_icon_file} DESTINATION ${_dest}/${_theme}/scalable/${_group}/ RENAME ${_name} ) + else( "${_size}" STREQUAL "sc" ) + install( FILES ${_icon_file} DESTINATION ${_dest}/${_theme}/${_size}x${_size}/${_group}/ RENAME ${_name} ) + endif( "${_size}" STREQUAL "sc" ) + + endforeach( _icon_file ) + endforeach( _icon ) + +endmacro( tde_install_icons ) + + +################################################# +##### +##### tde_add_lut( <source> <result> [depends] ) +##### default depends: source + +macro( tde_add_lut _src _lut _dep ) + set( create_hash_table ${CMAKE_SOURCE_DIR}/kjs/create_hash_table ) + if( NOT _dep ) + set( _dep ${_src} ) + endif( NOT _dep ) + add_custom_command( OUTPUT ${_lut} + COMMAND perl ARGS ${create_hash_table} ${CMAKE_CURRENT_SOURCE_DIR}/${_src} -i > ${_lut} + DEPENDS ${_src} ) + set_source_files_properties( ${_dep} PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_lut} ) + unset( _dep ) +endmacro( tde_add_lut ) + + +################################################# +##### +##### tde_add_luts( <sources...> ) + +macro( tde_add_luts ) + foreach( _src ${ARGV} ) + get_filename_component( _lut ${_src} NAME_WE ) + set( _lut "${_lut}.lut.h" ) + tde_add_lut( ${_src} ${_lut} ${_src} ) + endforeach( _src ) +endmacro( tde_add_luts ) + + +################################################# +##### +##### tde_install_la_file( <target> <destination> ) + +macro( tde_install_la_file _target _destination ) + + get_target_property( _target_location ${_target} LOCATION ) + get_filename_component( _laname ${_target_location} NAME_WE ) + get_filename_component( _soname ${_target_location} NAME ) + set( _laname ${CMAKE_CURRENT_BINARY_DIR}/${_laname}.la ) + + file( WRITE ${_laname} +"# ${_laname} - a libtool library file, generated by cmake +# The name that we can dlopen(3). +dlname='${_soname}' +# Names of this library +library_names='${_soname} ${_soname} ${_soname}' +# The name of the static archive +old_library='' +# Libraries that this one depends upon. +dependency_libs='' +# Version information.\ncurrent=0\nage=0\nrevision=0 +# Is this an already installed library?\ninstalled=yes +# Should we warn about portability when linking against -modules?\nshouldnotlink=yes +# Files to dlopen/dlpreopen\ndlopen=''\ndlpreopen='' +# Directory that this library needs to be installed in: +libdir='${_destination}' +" ) + + install( FILES ${_laname} DESTINATION ${_destination} ) + +endmacro( tde_install_la_file ) + + +################################################# +##### +##### __tde_internal_process_sources + +macro( __tde_internal_process_sources _sources ) + + unset( ${_sources} ) + + foreach( _arg ${ARGN} ) + get_filename_component( _ext ${_arg} EXT ) + get_filename_component( _name ${_arg} NAME_WE ) + get_filename_component( _path ${_arg} PATH ) + + # if not path, set it to "." + if( NOT _path ) + set( _path "./" ) + endif( NOT _path ) + + # handle .ui files + if( ${_ext} STREQUAL ".ui" ) + kde3_add_ui_files( ${_sources} ${_arg} ) + + # handle .skel files + elseif( ${_ext} STREQUAL ".skel" ) + kde3_add_dcop_skels( ${_sources} ${_name}.h ) + + # handle .stub files + elseif( ${_ext} STREQUAL ".stub" ) + kde3_add_dcop_stubs( ${_sources} ${_path}/${_name}.h ) + + # handle .kcfgc files + elseif( ${_ext} STREQUAL ".kcfgc" ) + kde3_add_kcfg_files( ${_sources} ${_arg} ) + + # handle any other files + else( ${_ext} STREQUAL ".ui" ) + list(APPEND ${_sources} ${_arg} ) + endif( ${_ext} STREQUAL ".ui" ) + endforeach( _arg ) + +endmacro( __tde_internal_process_sources ) + + +################################################# +##### +##### tde_install_libtool_file + +macro( tde_install_libtool_file _target _destination ) + + get_target_property( _target_location ${_target} LOCATION ) + + # get name of target + get_filename_component( _name ${_target_location} NAME_WE ) + + # get .la name + set( _laname ${_name}.la ) + + # get .so name + get_filename_component( _soname ${_target_location} NAME ) + + # get version of target + get_target_property( _target_version ${_target} VERSION ) + get_target_property( _target_soversion ${_target} SOVERSION ) + + # we have so version + if( _target_version ) + set( _library_name_1 "${_soname}.${_target_version}" ) + set( _library_name_2 "${_soname}.${_target_soversion}" ) + set( _library_name_3 "${_soname}" ) + + string( REGEX MATCH "^([0-9]+)\\.([0-9]+)\\.([0-9]+)$" _dummy "${_target_version}" ) + set( _version_current "${CMAKE_MATCH_1}" ) + set( _version_age "${CMAKE_MATCH_2}" ) + set( _version_revision "${CMAKE_MATCH_3}" ) + + # we have no so version (module?) + else( _target_version ) + set( _library_name_1 "${_soname}" ) + set( _library_name_2 "${_soname}" ) + set( _library_name_3 "${_soname}" ) + set( _version_current "0" ) + set( _version_age "0" ) + set( _version_revision "0" ) + endif( _target_version ) + + if( IS_ABSOLUTE ${_destination} ) + set( _libdir "${_destination}" ) + else( IS_ABSOLUTE ${_destination} ) + set( _libdir "${CMAKE_INSTALL_PREFIX}/${_destination}" ) + endif( IS_ABSOLUTE ${_destination} ) + + configure_file( ${CMAKE_SOURCE_DIR}/cmake/modules/template_libtool_file.cmake "${_laname}" @ONLY ) + + install( FILES "${CMAKE_CURRENT_BINARY_DIR}/${_laname}" DESTINATION ${_destination} ) + +endmacro( tde_install_libtool_file ) + + +################################################# +##### +##### tde_add_library + +macro( tde_add_library _arg_target ) + + unset( _target ) + unset( _type ) + unset( _static_pic ) + unset( _automoc ) + unset( _no_libtool_file ) + unset( _version ) + unset( _sources ) + unset( _destination ) + unset( _embed ) + unset( _link ) + unset( _dependencies ) + unset( _storage ) + + set( _shouldnotlink no ) + + foreach( _arg ${ARGV} ) + + # this variable help us to skip + # storing unapropriate values (i.e. directives) + unset( _skip_store ) + + # found one of directives: "SHARED", "STATIC", "MODULE" + if( "${_arg}" STREQUAL "SHARED" OR "${_arg}" STREQUAL "STATIC" OR "${_arg}" STREQUAL "MODULE" ) + set( _skip_store 1 ) + set( _type "${_arg}" ) + endif( "${_arg}" STREQUAL "SHARED" OR "${_arg}" STREQUAL "STATIC" OR "${_arg}" STREQUAL "MODULE" ) + + # found directive "STATIC_PIC" + if( "${_arg}" STREQUAL "STATIC_PIC" ) + set( _skip_store 1 ) + set( _type "STATIC" ) + set( _static_pic 1 ) + endif( "${_arg}" STREQUAL "STATIC_PIC" ) + + # found directive "AUTOMOC" + if( "${_arg}" STREQUAL "AUTOMOC" ) + set( _skip_store 1 ) + set( _automoc 1 ) + endif( "${_arg}" STREQUAL "AUTOMOC" ) + + # found directive "NO_LIBTOOL_FILE" + if( "${_arg}" STREQUAL "NO_LIBTOOL_FILE" ) + set( _skip_store 1 ) + set( _no_libtool_file 1 ) + endif( "${_arg}" STREQUAL "NO_LIBTOOL_FILE" ) + + # found directive "VERSION" + if( "${_arg}" STREQUAL "VERSION" ) + set( _skip_store 1 ) + set( _storage "_version" ) + endif( "${_arg}" STREQUAL "VERSION" ) + + # found directive "SOURCES" + if( "${_arg}" STREQUAL "SOURCES" ) + set( _skip_store 1 ) + set( _storage "_sources" ) + endif( "${_arg}" STREQUAL "SOURCES" ) + + # found directive "EMBED" + if( "${_arg}" STREQUAL "EMBED" ) + set( _skip_store 1 ) + set( _storage "_embed" ) + endif( "${_arg}" STREQUAL "EMBED" ) + + # found directive "LINK" + if( "${_arg}" STREQUAL "LINK" ) + set( _skip_store 1 ) + set( _storage "_link" ) + endif( "${_arg}" STREQUAL "LINK" ) + + # found directive "DEPENDENCIES" + if( "${_arg}" STREQUAL "DEPENDENCIES" ) + set( _skip_store 1 ) + set( _storage "_dependencies" ) + endif( "${_arg}" STREQUAL "DEPENDENCIES" ) + + # found directive "DESTINATION" + if( "${_arg}" STREQUAL "DESTINATION" ) + set( _skip_store 1 ) + set( _storage "_destination" ) + unset( ${_storage} ) + endif( "${_arg}" STREQUAL "DESTINATION" ) + + # storing value + if( _storage AND NOT _skip_store ) + #set( ${_storage} "${${_storage}} ${_arg}" ) + list( APPEND ${_storage} ${_arg} ) + endif( _storage AND NOT _skip_store ) + + endforeach( _arg ) + + # if no type is set, we choose one + # based on BUILD_SHARED_LIBS + if( NOT _type ) + if( BUILD_SHARED_LIBS ) + set( _type "SHARED" ) + else( BUILD_SHARED_LIBS ) + set( _type "STATIC" ) + endif( BUILD_SHARED_LIBS ) + endif( NOT _type ) + + # change target name, based on type + string( TOLOWER "${_type}" _target ) + set( _target "${_arg_target}-${_target}" ) + + # disallow target without sources + if( NOT _sources ) + message( FATAL_ERROR "\nTarget [$_target] have no sources." ) + endif( NOT _sources ) + + # processing different types of sources + __tde_internal_process_sources( _sources ${_sources} ) + + # set automoc + if( _automoc ) + kde3_automoc( ${_sources} ) + endif( _automoc ) + + # add target + add_library( ${_target} ${_type} ${_sources} ) + + # we assume that modules have no prefix and no version + # also, should not link + if( ${_type} STREQUAL "MODULE" ) + set_target_properties( ${_target} PROPERTIES PREFIX "" ) + unset( _version ) + set( _shouldnotlink yes ) + endif( ${_type} STREQUAL "MODULE" ) + + # set real name of target + set_target_properties( ${_target} PROPERTIES OUTPUT_NAME ${_arg_target} ) + + # set -fPIC flag for static libraries + if( _static_pic ) + set_target_properties( ${_target} PROPERTIES COMPILE_FLAGS -fPIC ) + endif( _static_pic ) + + # set version + if( _version ) + string( REGEX MATCH "^[0-9]+" _soversion ${_version} ) + set_target_properties( ${_target} PROPERTIES VERSION ${_version} SOVERSION ${_soversion} ) + endif( _version ) + + # set embedded archives + if( _embed ) + list( INSERT _link 0 "-Wl,-no-whole-archive" ) + list( INSERT _link 0 ${_embed} ) + list( INSERT _link 0 "-Wl,-whole-archive" ) + endif( _embed ) + + # set link libraries + if( _link ) + target_link_libraries( ${_target} ${_link} ) + endif( _link ) + + # set dependencies + if( _dependencies ) + add_dependencies( ${_target} ${_dependencies} ) + endif( _dependencies ) + + # set destination directory + if( _destination ) + install( TARGETS ${_target} DESTINATION ${_destination} ) + if( NOT "STATIC" STREQUAL ${_type} AND NOT _no_libtool_file ) + tde_install_libtool_file( ${_target} ${_destination} ) + endif( NOT "STATIC" STREQUAL ${_type} AND NOT _no_libtool_file ) + endif( _destination ) + +endmacro( tde_add_library ) + + +################################################# +##### +##### tde_add_kpart + +macro( tde_add_kpart _target ) + tde_add_library( ${_target} ${ARGN} MODULE ) +endmacro( tde_add_kpart ) + + +################################################# +##### +##### tde_add_executable + +macro( tde_add_executable _arg_target ) + + unset( _target ) + unset( _automoc ) + unset( _setuid ) + unset( _sources ) + unset( _destination ) + unset( _link ) + unset( _dependencies ) + unset( _storage ) + + foreach( _arg ${ARGV} ) + + # this variable help us to skip + # storing unapropriate values (i.e. directives) + unset( _skip_store ) + + # found directive "AUTOMOC" + if( "${_arg}" STREQUAL "AUTOMOC" ) + set( _skip_store 1 ) + set( _automoc 1 ) + endif( "${_arg}" STREQUAL "AUTOMOC" ) + + # found directive "SETUID" + if( "${_arg}" STREQUAL "SETUID" ) + set( _skip_store 1 ) + set( _setuid 1 ) + endif( "${_arg}" STREQUAL "SETUID" ) + + # found directive "SOURCES" + if( "${_arg}" STREQUAL "SOURCES" ) + set( _skip_store 1 ) + set( _storage "_sources" ) + endif( "${_arg}" STREQUAL "SOURCES" ) + + # found directive "LINK" + if( "${_arg}" STREQUAL "LINK" ) + set( _skip_store 1 ) + set( _storage "_link" ) + endif( "${_arg}" STREQUAL "LINK" ) + + # found directive "DEPENDENCIES" + if( "${_arg}" STREQUAL "DEPENDENCIES" ) + set( _skip_store 1 ) + set( _storage "_dependencies" ) + endif( "${_arg}" STREQUAL "DEPENDENCIES" ) + + # found directive "DESTINATION" + if( "${_arg}" STREQUAL "DESTINATION" ) + set( _skip_store 1 ) + set( _storage "_destination" ) + unset( ${_storage} ) + endif( "${_arg}" STREQUAL "DESTINATION" ) + + # storing value + if( _storage AND NOT _skip_store ) + #set( ${_storage} "${${_storage}} ${_arg}" ) + list( APPEND ${_storage} ${_arg} ) + endif( _storage AND NOT _skip_store ) + + endforeach( _arg ) + + set( _target "${_arg_target}" ) + + # disallow target without sources + if( NOT _sources ) + message( FATAL_ERROR "\nTarget [$_target] have no sources." ) + endif( NOT _sources ) + + # processing different types of sources + __tde_internal_process_sources( _sources ${_sources} ) + + # set automoc + if( _automoc ) + kde3_automoc( ${_sources} ) + endif( _automoc ) + + # add target + add_executable( ${_target} ${_sources} ) + + # set link libraries + if( _link ) + target_link_libraries( ${_target} ${_link} ) + endif( _link ) + + # set dependencies + if( _dependencies ) + add_dependencies( ${_target} ${_dependencies} ) + endif( _dependencies ) + + # set destination directory + if( _destination ) + if( _setuid ) + install( TARGETS ${_target} DESTINATION ${_destination} PERMISSIONS OWNER_READ OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE SETUID ) + else( _setuid ) + install( TARGETS ${_target} DESTINATION ${_destination} ) + endif( _setuid ) + endif( _destination ) + +endmacro( tde_add_executable ) + + +################################################# +##### +##### tde_add_kdeinit_executable + +macro( tde_add_kdeinit_executable _target ) + + configure_file( ${CMAKE_SOURCE_DIR}/cmake/modules/template_kdeinit_executable.cmake ${_target}_kdeinit_executable.cpp COPYONLY ) + configure_file( ${CMAKE_SOURCE_DIR}/cmake/modules/template_kdeinit_module.cmake ${_target}_kdeinit_module.cpp COPYONLY ) + + unset( _sources ) + unset( _runtime_destination ) + unset( _library_destination ) + unset( _plugin_destination ) + + # default storage is _sources + set( _storage _sources ) + + foreach( _arg ${ARGN} ) + + # this variable help us to skip + # storing unapropriate values (i.e. directives) + unset( _skip_store ) + + # found directive "RUNTIME_DESTINATION" + if( "${_arg}" STREQUAL "RUNTIME_DESTINATION" ) + set( _skip_store 1 ) + set( _storage "_runtime_destination" ) + unset( ${_storage} ) + endif( "${_arg}" STREQUAL "RUNTIME_DESTINATION" ) + + # found directive "LIBRARY_DESTINATION" + if( "${_arg}" STREQUAL "LIBRARY_DESTINATION" ) + set( _skip_store 1 ) + set( _storage "_library_destination" ) + unset( ${_storage} ) + endif( "${_arg}" STREQUAL "LIBRARY_DESTINATION" ) + + # found directive "PLUGIN_DESTINATION" + if( "${_arg}" STREQUAL "PLUGIN_DESTINATION" ) + set( _skip_store 1 ) + set( _storage "_plugin_destination" ) + unset( ${_storage} ) + endif( "${_arg}" STREQUAL "PLUGIN_DESTINATION" ) + + # storing value + if( _storage AND NOT _skip_store ) + list( APPEND ${_storage} ${_arg} ) + set( _storage "_sources" ) + endif( _storage AND NOT _skip_store ) + + endforeach( _arg ) + + # if destinations are not set, we using some defaults + # we assume that kdeinit executable MUST be installed + # (otherwise why we build it?) + if( NOT _runtime_destination ) + set( _runtime_destination ${BIN_INSTALL_DIR} ) + endif( NOT _runtime_destination ) + if( NOT _library_destination ) + set( _library_destination ${LIB_INSTALL_DIR} ) + endif( NOT _library_destination ) + if( NOT _plugin_destination ) + set( _plugin_destination ${PLUGIN_INSTALL_DIR} ) + endif( NOT _plugin_destination ) + + # create the library + tde_add_library( kdeinit_${_target} ${_sources} SHARED + DESTINATION ${_library_destination} + ) + + # create the executable + tde_add_executable( ${_target} + SOURCES ${CMAKE_CURRENT_BINARY_DIR}/${_target}_kdeinit_executable.cpp + LINK kdeinit_${_target}-shared + DESTINATION ${_runtime_destination} + ) + + # create the plugin + tde_add_kpart( ${_target} + SOURCES ${CMAKE_CURRENT_BINARY_DIR}/${_target}_kdeinit_module.cpp + LINK kdeinit_${_target}-shared + DESTINATION ${_plugin_destination} + ) + +endmacro( tde_add_kdeinit_executable ) + + +################################################# +##### +##### tde_install_symlink + +macro( tde_install_symlink _target _link ) + + # if path is relative, we must to prefix it with CMAKE_INSTALL_PREFIX + if( IS_ABSOLUTE ${_link} ) + set( _destination "${_link}" ) + else( IS_ABSOLUTE ${_link} ) + set( _destination "${CMAKE_INSTALL_PREFIX}/${_link}" ) + endif( IS_ABSOLUTE ${_link} ) + + # prefix with DESTDIR + set( _destination "$ENV{DESTDIR}${_destination}" ) + + get_filename_component( _path ${_destination} PATH ) + if( NOT IS_DIRECTORY "${_path}" ) + install( CODE "execute_process( COMMAND ${CMAKE_COMMAND} -E make_directory ${_path} )" ) + endif( NOT IS_DIRECTORY "${_path}" ) + + install( CODE "execute_process( COMMAND ${CMAKE_COMMAND} -E create_symlink ${_target} ${_destination} )" ) + +endmacro( tde_install_symlink ) + + +################################################# +##### +##### tde_install_empty_directory + +macro( tde_install_empty_directory _path ) + + # if path is relative, we must to prefix it with CMAKE_INSTALL_PREFIX + if( IS_ABSOLUTE ${_path} ) + set( _destination "${_path}" ) + else( IS_ABSOLUTE ${_path} ) + set( _destination "${CMAKE_INSTALL_PREFIX}/${_path}" ) + endif( IS_ABSOLUTE ${_path} ) + + # prefix with DESTDIR + set( _destination "$ENV{DESTDIR}${_destination}" ) + + install( CODE "execute_process( COMMAND ${CMAKE_COMMAND} -E make_directory ${_destination} )" ) + +endmacro( tde_install_empty_directory ) diff --git a/cmake/modules/template_dummy_cpp.cmake b/cmake/modules/template_dummy_cpp.cmake new file mode 100644 index 000000000..8e1f5ff59 --- /dev/null +++ b/cmake/modules/template_dummy_cpp.cmake @@ -0,0 +1,5 @@ +#ifdef _AIX + namespace { + void *not_empty_file; + } +#endif diff --git a/cmake/modules/template_kdeinit_executable.cmake b/cmake/modules/template_kdeinit_executable.cmake new file mode 100644 index 000000000..3d480c44e --- /dev/null +++ b/cmake/modules/template_kdeinit_executable.cmake @@ -0,0 +1,2 @@ +extern "C" int kdemain(int argc, char* argv[]); +int main(int argc, char* argv[]) { return kdemain(argc,argv); } diff --git a/cmake/modules/template_kdeinit_module.cmake b/cmake/modules/template_kdeinit_module.cmake new file mode 100644 index 000000000..68be1e7c3 --- /dev/null +++ b/cmake/modules/template_kdeinit_module.cmake @@ -0,0 +1,3 @@ +#include <kdemacros.h> +extern "C" int kdemain(int argc, char* argv[]); +extern "C" KDE_EXPORT int kdeinitmain(int argc, char* argv[]) { return kdemain(argc,argv); } diff --git a/cmake/modules/template_libtool_file.cmake b/cmake/modules/template_libtool_file.cmake new file mode 100644 index 000000000..62ccf5372 --- /dev/null +++ b/cmake/modules/template_libtool_file.cmake @@ -0,0 +1,35 @@ +# @_laname@ - a libtool library file +# Generated by CMake +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='@_library_name_2@' + +# Names of this library. +library_names='@_library_name_1@ @_library_name_2@ @_library_name_3@' + +# The name of the static archive. +old_library='' + +# Libraries that this one depends upon. +dependency_libs='' + +# Version information for @_name@. +current=@_version_current@ +age=@_version_age@ +revision=@_version_revision@ + +# Is this an already installed library? +installed=yes + +# Should we warn about portability when linking against -modules? +shouldnotlink=@_shouldnotlink@ + +# Files to dlopen/dlpreopen +dlopen='' +dlpreopen='' + +# Directory that this library needs to be installed in: +libdir='@_libdir@' diff --git a/config.h.cmake b/config.h.cmake new file mode 100644 index 000000000..c07e7bba6 --- /dev/null +++ b/config.h.cmake @@ -0,0 +1,1158 @@ +/* config.h.in. Generated from configure.in by autoheader. */ + +/* Define if building universal (internal helper macro) */ +#undef AC_APPLE_UNIVERSAL_BUILD + +/* Define where aspell data dir is */ +#define ASPELL_DATADIR "@ASPELL_DATADIR@" + +/* Avahi API 0.6 */ +#cmakedefine AVAHI_API_0_6 1 + +/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP + systems. This function is required for `alloca.c' support on those systems. + */ +#undef CRAY_STACKSEG_END + +/* Define to 1 if using `alloca.c'. */ +#undef C_ALLOCA + +/* Define where your dcop binary is */ +#cmakedefine DCOP_PATH "@DCOP_PATH@" + +/* Use su or sudo */ +#define DEFAULT_SUPER_USER_COMMAND "@DEFAULT_SUPER_USER_COMMAND@" + +/* Define if getaddrinfo returns AF_UNIX sockets */ +#undef GETADDRINFO_RETURNS_UNIX + +/* getmntinfo() uses struct statvfs */ +#undef GETMNTINFO_USES_STATVFS + +/* Define if you have the MIT Kerberos libraries */ +#undef GSSAPI_MIT + +/* Define to 1 if you have `alloca', as a function or macro. */ +#undef HAVE_ALLOCA + +/* Define to 1 if you have the <alloca.h> header file. */ +#cmakedefine HAVE_ALLOCA_H 1 + +/* Define to 1 if you have the <alsa/asoundlib.h> header file. */ +#cmakedefine HAVE_ALSA_ASOUNDLIB_H 1 + +/* Define to 1 if you have the <arpa/nameser8_compat.h> header file. */ +#cmakedefine HAVE_ARPA_NAMESER8_COMPAT_H 1 + +/* Define to 1 if you have the <awe_voice.h> header file. */ +#cmakedefine HAVE_AWE_VOICE_H 1 + +/* Define if execinfo.h exists and defines backtrace (GLIBC >= 2.1) */ +#undef HAVE_BACKTRACE + +/* Define to 1 if you have the `bcopy' function. */ +#undef HAVE_BCOPY + +/* You _must_ have bool */ +#undef HAVE_BOOL + +/* Define if getaddrinfo is broken and should be replaced */ +#cmakedefine HAVE_BROKEN_GETADDRINFO 1 + +/* Defines if bzip2 is compiled */ +#cmakedefine HAVE_BZIP2_SUPPORT 1 + +/* Define to 1 if you have the <Carbon/Carbon.h> header file. */ +#cmakedefine HAVE_CARBON_CARBON_H 1 + +/* Define if you have the CoreAudio API */ +#undef HAVE_COREAUDIO + +/* Define to 1 if you have the <crt_externs.h> header file. */ +#cmakedefine HAVE_CRT_EXTERNS_H 1 + +/* Defines if your system has the crypt function */ +#undef HAVE_CRYPT + +/* Define to 1 if you have the <ctype.h> header file. */ +#cmakedefine HAVE_CTYPE_H 1 + +/* Defines if you have CUPS (Common UNIX Printing System) */ +#cmakedefine HAVE_CUPS 1 + +/* CUPS doesn't have password caching */ +#cmakedefine HAVE_CUPS_NO_PWD_CACHE 1 + +/* Define to 1 if you have the declaration of `getservbyname_r', and to 0 if you don't. */ +#undef HAVE_DECL_GETSERVBYNAME_R + +/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'. */ +#cmakedefine HAVE_DIRENT_H 1 + +/* Define if you have the GNU dld library. */ +#undef HAVE_DLD + +/* Define to 1 if you have the <dld.h> header file. */ +#cmakedefine HAVE_DLD_H 1 + +/* Define to 1 if you have the `dlerror' function. */ +#undef HAVE_DLERROR + +/* Define to 1 if you have the <dlfcn.h> header file. */ +#cmakedefine HAVE_DLFCN_H 1 + +/* Define to 1 if you have the <dl.h> header file. */ +#cmakedefine HAVE_DL_H 1 + +/* Define if your system has Linux Directory Notification */ +#undef HAVE_DNOTIFY + +/* Define if you have OpenEXR */ +#cmakedefine HAVE_EXR 1 + +/* Define is posix_fadvise is supported */ +#undef HAVE_FADVISE + +/* Define if your system has libfam */ +#undef HAVE_FAM + +/* Define to 1 if you have the <float.h> header file. */ +#cmakedefine HAVE_FLOAT_H 1 + +/* Define to 1 if you have the `freeaddrinfo' function. */ +#cmakedefine HAVE_FREEADDRINFO 1 + +/* Define to 1 if you have the <fstab.h> header file. */ +#cmakedefine HAVE_FSTAB_H 1 + +/* Define if you have finite */ +#cmakedefine HAVE_FUNC_FINITE 1 + +/* Define if you have isinf */ +#cmakedefine HAVE_FUNC_ISINF 1 + +/* Define if you have isnan */ +#cmakedefine HAVE_FUNC_ISNAN 1 + +/* Define if you have _finite */ +#cmakedefine HAVE_FUNC__FINITE 1 + +/* Define to 1 if you have the `gai_strerror' function. */ +#cmakedefine HAVE_GAI_STRERROR 1 + +/* Define to 1 if you have the `getaddrinfo' function. */ +#cmakedefine HAVE_GETADDRINFO 1 + +/* Define to 1 if you have the `getcwd' function. */ +#undef HAVE_GETCWD + +/* Define to 1 if you have the `getgroups' function. */ +#undef HAVE_GETGROUPS + +/* Define to 1 if you have the `gethostbyname2' function. */ +#cmakedefine HAVE_GETHOSTBYNAME2 1 + +/* Define to 1 if you have the `gethostbyname2_r' function. */ +#cmakedefine HAVE_GETHOSTBYNAME2_R 1 + +/* Define to 1 if you have the `gethostbyname_r' function. */ +#cmakedefine HAVE_GETHOSTBYNAME_R 1 + +/* Define if you have gethostname */ +#cmakedefine HAVE_GETHOSTNAME 1 + +/* Define if you have the gethostname prototype */ +#cmakedefine HAVE_GETHOSTNAME_PROTO 1 + +/* Define to 1 if you have the `getmntinfo' function. */ +#cmakedefine HAVE_GETMNTINFO 1 + +/* Define to 1 if you have the `getnameinfo' function. */ +#cmakedefine HAVE_GETNAMEINFO 1 + +/* Define to 1 if you have the `getpagesize' function. */ +#cmakedefine HAVE_GETPAGESIZE 1 + +/* Define to 1 if you have the `getpeereid' function. */ +#cmakedefine HAVE_GETPEEREID 1 + +/* Define to 1 if you have the `getpeername' function. */ +#cmakedefine HAVE_GETPEERNAME 1 + +/* Define to 1 if you have the `getprotobyname_r' function. */ +#cmakedefine HAVE_GETPROTOBYNAME_R 1 + +/* Define to 1 if you have the `getpt' function. */ +#cmakedefine HAVE_GETPT 1 + +/* Define to 1 if you have the `getservbyname_r' function. */ +#cmakedefine HAVE_GETSERVBYNAME_R 1 + +/* Define to 1 if you have the `getservbyport_r' function. */ +#cmakedefine HAVE_GETSERVBYPORT_R 1 + +/* Define to 1 if you have the `getsockname' function. */ +#cmakedefine HAVE_GETSOCKNAME 1 + +/* Define to 1 if you have the `getsockopt' function. */ +#cmakedefine HAVE_GETSOCKOPT 1 + +/* Define to 1 if you have the `gettimeofday' function. */ +#cmakedefine HAVE_GETTIMEOFDAY 1 + +/* Define to 1 if you have the `grantpt' function. */ +#cmakedefine HAVE_GRANTPT 1 + +/* Define to 1 if you have the <idna.h> header file. */ +#cmakedefine HAVE_IDNA_H 1 + +/* Define to 1 if you have the <ieeefp.h> header file. */ +#cmakedefine HAVE_IEEEFP_H 1 + +/* Define to 1 if you have the `if_nametoindex' function. */ +#cmakedefine HAVE_IF_NAMETOINDEX 1 + +/* Define to 1 if you have the `index' function. */ +#cmakedefine HAVE_INDEX 1 + +/* Define to 1 if you have the `inet_ntop' function. */ +#cmakedefine HAVE_INET_NTOP 1 + +/* Define to 1 if you have the `inet_pton' function. */ +#cmakedefine HAVE_INET_PTON 1 + +/* Define to 1 if you have the `initgroups' function. */ +#cmakedefine HAVE_INITGROUPS 1 + +/* Define if you have the initgroups prototype */ +#cmakedefine HAVE_INITGROUPS_PROTO 1 + +/* Define if your system has Linux Inode Notification */ +#undef HAVE_INOTIFY + +/* Define to 1 if you have the <inttypes.h> header file. */ +#cmakedefine HAVE_INTTYPES_H 1 + +/* Define if you have jasper */ +#cmakedefine HAVE_JASPER 1 + +/* Define if your locale.h file contains LC_MESSAGES */ +#undef HAVE_LC_MESSAGES + +/* Defines if your system has the libart library */ +#cmakedefine HAVE_LIBART 1 + +/* Define if you have libasound.so.1 (required for ALSA 0.5.x support) */ +#undef HAVE_LIBASOUND + +/* Define if you have libasound.so.2 (required for ALSA 0.9.x support) */ +#cmakedefine HAVE_LIBASOUND2 1 + +/* Define if you have the libdl library or equivalent. */ +#cmakedefine HAVE_LIBDL 1 + +/* Define if you have GSSAPI libraries */ +#undef HAVE_LIBGSSAPI + +/* Defined if you have libidn in your system */ +#cmakedefine HAVE_LIBIDN 1 + +/* Define if you have libjpeg */ +#cmakedefine HAVE_LIBJPEG 1 + +/* Define if you have libpng */ +#cmakedefine HAVE_LIBPNG 1 + +/* Define if you have a working libpthread (will enable threaded code) */ +#undef HAVE_LIBPTHREAD + +/* Define to 1 if you have the `qt-mt' library (-lqt-mt). */ +#undef HAVE_LIBQT_MT + +/* Defined if you have libthai and want to have it compiled in */ +#undef HAVE_LIBTHAI + +/* Define if you have libtiff */ +#cmakedefine HAVE_LIBTIFF 1 + +/* Define to 1 if you have the <libutil.h> header file. */ +#cmakedefine HAVE_LIBUTIL_H 1 + +/* Define if you have libz */ +#cmakedefine HAVE_LIBZ 1 + +/* Define to 1 if you have the <limits.h> header file. */ +#cmakedefine HAVE_LIMITS_H 1 + +/* Define to 1 if you have the <linux/awe_voice.h> header file. */ +#cmakedefine HAVE_LINUX_AWE_VOICE_H 1 + +/* Define to 1 if you have the <locale.h> header file. */ +#cmakedefine HAVE_LOCALE_H 1 + +/* Define if you have LUA > 5.0 */ +#cmakedefine HAVE_LUA 1 + +/* Define to 1 if you have the <machine/soundcard.h> header file. */ +#cmakedefine HAVE_MACHINE_SOUNDCARD_H 1 + +/* Define to 1 if you have the `madvise' function. */ +#undef HAVE_MADVISE + +/* Define to 1 if you have the <malloc.h> header file. */ +#cmakedefine HAVE_MALLOC_H 1 + +/* Define to 1 if you have the `memcpy' function. */ +#undef HAVE_MEMCPY + +/* Define to 1 if you have the <memory.h> header file. */ +#cmakedefine HAVE_MEMORY_H 1 + +/* Define if you want MIT-SHM support */ +#undef HAVE_MITSHM + +/* Define if you have mkdtemp */ +#cmakedefine HAVE_MKDTEMP 1 + +/* Define if you have the mkdtemp prototype */ +#cmakedefine HAVE_MKDTEMP_PROTO 1 + +/* Define if you have mkstemp */ +#cmakedefine HAVE_MKSTEMP 1 + +/* Define if you have mkstemps */ +#cmakedefine HAVE_MKSTEMPS + +/* Define if you have the mkstemps prototype */ +#cmakedefine HAVE_MKSTEMPS_PROTO + +/* Define if you have the mkstemp prototype */ +#cmakedefine HAVE_MKSTEMP_PROTO + +/* Define to 1 if you have a working `mmap' system call. */ +#undef HAVE_MMAP + +/* Define to 1 if you have the <mntent.h> header file. */ +#cmakedefine HAVE_MNTENT_H 1 + +/* Define to 1 if you have the `munmap' function. */ +#undef HAVE_MUNMAP + +/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */ +#cmakedefine HAVE_NDIR_H 1 + +/* Define to 1 if you have the <netinet/in.h> header file. */ +#cmakedefine HAVE_NETINET_IN_H 1 + +/* Define to 1 if you have the <net/if.h> header file. */ +#cmakedefine HAVE_NET_IF_H 1 + +/* Define to 1 if you have the <nl_types.h> header file. */ +#undef HAVE_NL_TYPES_H + +/* Define if system has non-POSIX extensions to the ACL support. */ +#undef HAVE_NON_POSIX_ACL_EXTENSIONS + +/* Define if your system needs _NSGetEnviron to set up the environment */ +#undef HAVE_NSGETENVIRON + +/* Define if you have OpenSSL < 0.9.6 */ +#undef HAVE_OLD_SSL_API + +/* Define to 1 if you have the `openpty' function. */ +#undef HAVE_OPENPTY + +/* Define to 1 if you have the <paths.h> header file. */ +#cmakedefine HAVE_PATHS_H 1 + +/* Define if you have pcreposix libraries and header files. */ +#undef HAVE_PCREPOSIX + +/* Define to 1 if you have the `poll' function. */ +#undef HAVE_POLL + +/* Define to 1 if the assembler supports AltiVec instructions. */ +#undef HAVE_PPC_ALTIVEC + +/* Define if libtool can extract symbol lists from object files. */ +#undef HAVE_PRELOADED_SYMBOLS + +/* Define to 1 if you have the `ptsname' function. */ +#undef HAVE_PTSNAME + +/* Define to 1 if you have the <pty.h> header file. */ +#cmakedefine HAVE_PTY_H 1 + +/* Define to 1 if you have the <punycode.h> header file. */ +#cmakedefine HAVE_PUNYCODE_H 1 + +/* Define to 1 if you have the `putenv' function. */ +#undef HAVE_PUTENV + +/* Define if you have random */ +#cmakedefine HAVE_RANDOM 1 + +/* Define if you have the random prototype */ +#cmakedefine HAVE_RANDOM_PROTO 1 + +/* Define to 1 if you have the `readdir_r' function. */ +#undef HAVE_READDIR_R + +/* Define if you have res_init */ +#cmakedefine HAVE_RES_INIT 1 + +/* Define if you have the res_init prototype */ +#undef HAVE_RES_INIT_PROTO + +/* Define if revoke(tty) is present in unistd.h */ +#cmakedefine HAVE_REVOKE 1 + +/* Define to 1 if you have the `rindex' function. */ +#undef HAVE_RINDEX + +/* Define if you want sendfile() support */ +#undef HAVE_SENDFILE + +/* Define to 1 if you have the `setegid' function. */ +#undef HAVE_SETEGID + +/* Define if you have setenv */ +#cmakedefine HAVE_SETENV 1 + +/* Define if you have the setenv prototype */ +#cmakedefine HAVE_SETENV_PROTO 1 + +/* Define to 1 if you have the `seteuid' function. */ +#cmakedefine HAVE_SETEUID 1 + +/* Define to 1 if you have the `setfsent' function. */ +#cmakedefine HAVE_SETFSENT 1 + +/* Define to 1 if you have the `setgroups' function. */ +#cmakedefine HAVE_SETGROUPS 1 + +/* Define to 1 if you have the `setlocale' function. */ +#cmakedefine HAVE_SETLOCALE 1 + +/* Define to 1 if you have the `setmntent' function. */ +#cmakedefine HAVE_SETMNTENT 1 + +/* Define to 1 if you have the `setpriority' function. */ +#cmakedefine HAVE_SETPRIORITY 1 + +/* Define if you have a STL implementation by SGI */ +#undef HAVE_SGI_STL + +/* Define if you have the shl_load function. */ +#undef HAVE_SHL_LOAD + +/* if setgroups() takes short *as second arg */ +#undef HAVE_SHORTSETGROUPS + +/* Define if libasound has snd_pcm_resume() */ +#undef HAVE_SND_PCM_RESUME + +/* Define to 1 if you have the `snprintf' function. */ +#cmakedefine HAVE_SNPRINTF 1 + +/* Define to 1 if you have the `socket' function. */ +#undef HAVE_SOCKET + +/* Define if you have srandom */ +#cmakedefine HAVE_SRANDOM 1 + +/* Define if you have the srandom prototype */ +#cmakedefine HAVE_SRANDOM_PROTO 1 + +/* If we are going to use OpenSSL */ +#undef HAVE_SSL + +/* Define to 1 if you have the <stdint.h> header file. */ +#cmakedefine HAVE_STDINT_H 1 + +/* Define to 1 if you have the <stdio.h> header file. */ +#cmakedefine HAVE_STDIO_H 1 + +/* Define to 1 if you have the <stdlib.h> header file. */ +#cmakedefine HAVE_STDLIB_H 1 + +/* Define to 1 if you have the `stpcpy' function. */ +#undef HAVE_STPCPY + +/* Define to 1 if you have the `strcasecmp' function. */ +#undef HAVE_STRCASECMP + +/* Define to 1 if you have the `strchr' function. */ +#undef HAVE_STRCHR + +/* Define to 1 if you have the `strcmp' function. */ +#undef HAVE_STRCMP + +/* Define to 1 if you have the `strfmon' function. */ +#undef HAVE_STRFMON + +/* Define to 1 if you have the <stringprep.h> header file. */ +#cmakedefine HAVE_STRINGPREP_H 1 + +/* Define to 1 if you have the <strings.h> header file. */ +#cmakedefine HAVE_STRINGS_H 1 + +/* Define to 1 if you have the <string.h> header file. */ +#cmakedefine HAVE_STRING_H 1 + +/* Define if you have strlcat */ +#undef HAVE_STRLCAT + +/* Define if you have the strlcat prototype */ +#undef HAVE_STRLCAT_PROTO + +/* Define if you have strlcpy */ +#cmakedefine HAVE_STRLCPY + +/* Define if you have the strlcpy prototype */ +#undef HAVE_STRLCPY_PROTO + +/* Define to 1 if you have the `strrchr' function. */ +#undef HAVE_STRRCHR + +/* Define to 1 if you have the `strtoll' function. */ +#undef HAVE_STRTOLL + +/* Define to 1 if the system has the type `struct addrinfo'. */ +#cmakedefine HAVE_STRUCT_ADDRINFO 1 + +/* Define to 1 if the system has the type `struct sockaddr_in6'. */ +#cmakedefine HAVE_STRUCT_SOCKADDR_IN6 1 + +/* Define to 1 if `sin6_scope_id' is member of `struct sockaddr_in6'. */ +#undef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID + +/* Define to 1 if `sa_len' is member of `struct sockaddr'. */ +#undef HAVE_STRUCT_SOCKADDR_SA_LEN + +/* Define if struct ucred is present from sys/socket.h */ +#undef HAVE_STRUCT_UCRED + +/* Define to 1 if you have the <sysent.h> header file. */ +#cmakedefine HAVE_SYSENT_H 1 + +/* Define to 1 if you have the <sys/asoundlib.h> header file. */ +#cmakedefine HAVE_SYS_ASOUNDLIB_H 1 + +/* Define to 1 if you have the <sys/bitypes.h> header file. */ +#cmakedefine HAVE_SYS_BITYPES_H 1 + +/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'. */ +#cmakedefine HAVE_SYS_DIR_H 1 + +/* Define to 1 if you have the <sys/filio.h> header file. */ +#cmakedefine HAVE_SYS_FILIO_H 1 + +/* Define if your system has glibc support for inotify */ +#undef HAVE_SYS_INOTIFY + +/* Define to 1 if you have the <sys/mman.h> header file. */ +#cmakedefine HAVE_SYS_MMAN_H 1 + +/* Define to 1 if you have the <sys/mntent.h> header file. */ +#cmakedefine HAVE_SYS_MNTENT_H 1 + +/* Define to 1 if you have the <sys/mnttab.h> header file. */ +#cmakedefine HAVE_SYS_MNTTAB_H 1 + +/* Define to 1 if you have the <sys/mount.h> header file. */ +#cmakedefine HAVE_SYS_MOUNT_H 1 + +/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'. */ +#cmakedefine HAVE_SYS_NDIR_H 1 + +/* Define to 1 if you have the <sys/param.h> header file. */ +#cmakedefine HAVE_SYS_PARAM_H 1 + +/* Define to 1 if you have the <sys/prctl.h> header file. */ +#cmakedefine HAVE_SYS_PRCTL_H 1 + +/* Define to 1 if you have the <sys/select.h> header file. */ +#cmakedefine HAVE_SYS_SELECT_H 1 + +/* Define to 1 if you have the <sys/soundcard.h> header file. */ +#cmakedefine HAVE_SYS_SOUNDCARD_H 1 + +/* Define to 1 if you have the <sys/stat.h> header file. */ +#cmakedefine HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the <sys/stropts.h> header file. */ +#cmakedefine HAVE_SYS_STROPTS_H 1 + +/* Define to 1 if you have the <sys/time.h> header file. */ +#cmakedefine HAVE_SYS_TIME_H 1 + +/* Define to 1 if you have the <sys/types.h> header file. */ +#cmakedefine HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the <sys/ucred.h> header file. */ +#cmakedefine HAVE_SYS_UCRED_H 1 + +/* Define if system has the sys/xattr.h header. */ +#cmakedefine HAVE_SYS_XATTR_H 1 + +/* Define if sys/stat.h declares S_ISSOCK. */ +#cmakedefine HAVE_S_ISSOCK 1 + +/* Define to 1 if you have the `tcgetattr' function. */ +#undef HAVE_TCGETATTR + +/* Define to 1 if you have the `tcsetattr' function. */ +#undef HAVE_TCSETATTR + +/* Define to 1 if you have the <termios.h> header file. */ +#cmakedefine HAVE_TERMIOS_H 1 + +/* Define to 1 if you have the <termio.h> header file. */ +#cmakedefine HAVE_TERMIO_H 1 + +/* Define to 1 if you have the <unistd.h> header file. */ +#cmakedefine HAVE_UNISTD_H 1 + +/* Define to 1 if you have the `unlockpt' function. */ +#undef HAVE_UNLOCKPT + +/* Define if you have unsetenv */ +#cmakedefine HAVE_UNSETENV 1 + +/* Define if you have the unsetenv prototype */ +#cmakedefine HAVE_UNSETENV_PROTO 1 + +/* Define to 1 if you have the `usleep' function. */ +#cmakedefine HAVE_USLEEP 1 + +/* Define if you have the usleep prototype */ +#cmakedefine HAVE_USLEEP_PROTO 1 + +/* Define if you have the utempter helper for utmp managment */ +#undef HAVE_UTEMPTER + +/* Define to 1 if you have the <util.h> header file. */ +#cmakedefine HAVE_UTIL_H 1 + +/* Define to 1 if you have the <valgrind/memcheck.h> header file. */ +#cmakedefine HAVE_VALGRIND_MEMCHECK_H 1 + +/* Define to 1 if you have the <values.h> header file. */ +#cmakedefine HAVE_VALUES_H 1 + +/* Define, to enable volume management (Solaris 2.x), if you have -lvolmgt */ +#undef HAVE_VOLMGT + +/* Define to 1 if you have the `vsnprintf' function. */ +#cmakedefine HAVE_VSNPRINTF 1 + +/* Define to 1 if you have the <X11/extensions/shape.h> header file. */ +#cmakedefine HAVE_X11_EXTENSIONS_SHAPE_H 1 + +/* Define to 1 if you have the <X11/extensions/Xrandr.h> header file. */ +#cmakedefine HAVE_X11_EXTENSIONS_XRANDR_H 1 + +/* Define to 1 if you have the <X11/extensions/XShm.h> header file. */ +#cmakedefine HAVE_X11_EXTENSIONS_XSHM_H 1 + +/* Define to 1 if you have the <X11/ICE/ICElib.h> header file. */ +#cmakedefine HAVE_X11_ICE_ICELIB_H 1 + +/* Define to 1 if the assembler supports 3DNOW instructions. */ +#undef HAVE_X86_3DNOW + +/* Define to 1 if the assembler supports MMX instructions. */ +#undef HAVE_X86_MMX + +/* Define to 1 if the assembler supports SSE instructions. */ +#undef HAVE_X86_SSE + +/* Define to 1 if the assembler supports SSE2 instructions. */ +#undef HAVE_X86_SSE2 + +/* Defined if your system has XRender support */ +#undef HAVE_XRENDER + +/* Define to 1 if you have the `_getpty' function. */ +#undef HAVE__GETPTY + +/* Define to 1 if you have the `_IceTransNoListen' function. */ +#undef HAVE__ICETRANSNOLISTEN + +/* Define to 1 if you have the </usr/src/sys/gnu/i386/isa/sound/awe_voice.h> header file. */ +#cmakedefine HAVE__USR_SRC_SYS_GNU_I386_ISA_SOUND_AWE_VOICE_H 1 + +/* Define to 1 if you have the </usr/src/sys/i386/isa/sound/awe_voice.h> header file. */ +#cmakedefine HAVE__USR_SRC_SYS_I386_ISA_SOUND_AWE_VOICE_H 1 + +/* Define to 1 if you have the `__argz_count' function. */ +#undef HAVE___ARGZ_COUNT + +/* Define to 1 if you have the `__argz_next' function. */ +#undef HAVE___ARGZ_NEXT + +/* Define to 1 if you have the `__argz_stringify' function. */ +#undef HAVE___ARGZ_STRINGIFY + +/* The prefix to use as fallback */ +#define KDEDIR "@KDEDIR@" + +/* Enable prevention against poor Linux OOM-killer */ +#cmakedefine KDEINIT_OOM_PROTECT 1 + +/* Use FontConfig in kdeinit */ +#cmakedefine KDEINIT_USE_FONTCONFIG 1 + +/* Use Xft preinitialization in kdeinit */ +#cmakedefine KDEINIT_USE_XFT 1 + +/* Suffix for lib directories */ +#define KDELIBSUFF "@KDELIBSUFF@" + +/* The compiled in system configuration prefix */ +#define KDESYSCONFDIR "@CONFIG_INSTALL_DIR@" + +/* what C++ compiler was used for compilation */ +#define KDE_COMPILER_VERSION "@KDE_COMPILER_VERSION@" + +/* what OS used for compilation */ +#define KDE_COMPILING_OS "@KDE_COMPILING_OS@" + +/* Distribution Text to append to OS */ +#define KDE_DISTRIBUTION_TEXT "@KDE_DISTRIBUTION_TEXT@" + +/* Use own malloc implementation */ +#cmakedefine KDE_MALLOC 1 + +/* Enable debugging in fast malloc */ +#cmakedefine KDE_MALLOC_DEBUG 1 + +/* Make alloc as fast as possible */ +#cmakedefine KDE_MALLOC_FULL 1 + +/* The libc used is glibc */ +#undef KDE_MALLOC_GLIBC + +/* The platform is x86 */ +#cmakedefine KDE_MALLOC_X86 1 + +/* Define if we shall use KSSL */ +#cmakedefine KSSL_HAVE_SSL 1 + +/* Define if the OS needs help to load dependent libraries for dlopen(). */ +#undef LTDL_DLOPEN_DEPLIBS + +/* Define to the sub-directory in which libtool stores uninstalled libraries. */ +#cmakedefine LTDL_OBJDIR @LTDL_OBJDIR@ + +/* Define to the name of the environment variable that determines the dynamic + library search path. */ +#undef LTDL_SHLIBPATH_VAR + +/* Define to the extension used for shared libraries, say, ".so". */ +#undef LTDL_SHLIB_EXT + +/* Define to the system default library search path. */ +#undef LTDL_SYSSEARCHPATH + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#undef LT_OBJDIR + +/* Define the file for mount entries */ +#undef MTAB_FILE + +/* Define if the libbz2 functions need the BZ2_ prefix */ +#cmakedefine NEED_BZ2_PREFIX 1 + +/* Define if dlsym() requires a leading underscode in symbol names. */ +#undef NEED_USCORE + +/* Name of package */ +#undef PACKAGE + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Define if you have POSIX.1b scheduling */ +#undef POSIX1B_SCHEDULING + +/* The size of `char *', as computed by sizeof. */ +#cmakedefine SIZEOF_CHAR_P @SIZEOF_CHAR_P@ + +/* The size of `int', as computed by sizeof. */ +#cmakedefine SIZEOF_INT @SIZEOF_INT@ + +/* The size of `long', as computed by sizeof. */ +#cmakedefine SIZEOF_LONG @SIZEOF_LONG@ + +/* The size of `short', as computed by sizeof. */ +#cmakedefine SIZEOF_SHORT @SIZEOF_SHORT@ + +/* The size of `size_t', as computed by sizeof. */ +#cmakedefine SIZEOF_SIZE_T @SIZEOF_SIZE_T@ + +/* The size of `unsigned long', as computed by sizeof. */ +#cmakedefine SIZEOF_UNSIGNED_LONG @SIZEOF_UNSIGNED_LONG@ + +/* If using the C implementation of alloca, define if you know the + direction of stack growth for your system; otherwise it will be + automatically deduced at runtime. + STACK_DIRECTION > 0 => grows toward higher addresses + STACK_DIRECTION < 0 => grows toward lower addresses + STACK_DIRECTION = 0 => direction of growth unknown */ +#undef STACK_DIRECTION + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */ +#cmakedefine TIME_WITH_SYS_TIME 1 + +/* Define if system has POSIX ACL support. */ +#undef USE_POSIX_ACL + +/* Version number of package */ +#define VERSION "@VERSION@" + +/* Defined if compiling without arts */ +#cmakedefine WITHOUT_ARTS 1 + +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most + significant byte first (like Motorola and SPARC, unlike Intel). */ +#if defined AC_APPLE_UNIVERSAL_BUILD +# if defined __BIG_ENDIAN__ +# define WORDS_BIGENDIAN 1 +# endif +#else +# ifndef WORDS_BIGENDIAN +# undef WORDS_BIGENDIAN +# endif +#endif + +/* where rgb.txt is in */ +#undef X11_RGBFILE + +/* Defines the executable of xmllint */ +#undef XMLLINT + +/* Defined if your system has XRandR support */ +#cmakedefine XRANDR_SUPPORT 1 + +/* + * jpeg.h needs HAVE_BOOLEAN, when the system uses boolean in system + * headers and I'm too lazy to write a configure test as long as only + * unixware is related + */ +#ifdef _UNIXWARE +#define HAVE_BOOLEAN +#endif + + + +/* + * AIX defines FD_SET in terms of bzero, but fails to include <strings.h> + * that defines bzero. + */ + +#if defined(_AIX) +#include <strings.h> +#endif + + + +#if defined(HAVE_NSGETENVIRON) && defined(HAVE_CRT_EXTERNS_H) +# include <sys/time.h> +# include <crt_externs.h> +# define environ (*_NSGetEnviron()) +#endif + + + +#ifdef __osf__ +#ifdef __cplusplus +extern "C" { +#endif +#include <sys/mount.h> +int getmntinfo(struct statfs **mntbufp, int flags); +#include <sys/fs_types.h> /* for mnt_names[] */ +#ifdef __cplusplus +} +#endif +#endif + + +/* Define if you need to use the GNU extensions */ +#cmakedefine _GNU_SOURCE 1 + + +#if !defined(HAVE_GETHOSTNAME_PROTO) +#ifdef __cplusplus +extern "C" { +#endif +int gethostname (char *, unsigned int); +#ifdef __cplusplus +} +#endif +#endif + + + +#if !defined(HAVE_INITGROUPS_PROTO) +#ifdef __cplusplus +extern "C" { +#endif +int initgroups(const char *, gid_t); +#ifdef __cplusplus +} +#endif +#endif + + + +#if !defined(HAVE_MKDTEMP_PROTO) +#ifdef __cplusplus +extern "C" { +#endif +char *mkdtemp(char *); +#ifdef __cplusplus +} +#endif +#endif + + + +#if !defined(HAVE_MKSTEMPS_PROTO) +#ifdef __cplusplus +extern "C" { +#endif +int mkstemps(char *, int); +#ifdef __cplusplus +} +#endif +#endif + + + +#if !defined(HAVE_MKSTEMP_PROTO) +#ifdef __cplusplus +extern "C" { +#endif +int mkstemp(char *); +#ifdef __cplusplus +} +#endif +#endif + + + +#if !defined(HAVE_RANDOM_PROTO) +#ifdef __cplusplus +extern "C" { +#endif +long int random(void); +#ifdef __cplusplus +} +#endif +#endif + + + +#if !defined(HAVE_RES_INIT_PROTO) +#ifdef __cplusplus +extern "C" { +#endif +int res_init(void); +#ifdef __cplusplus +} +#endif +#endif + + + +#if !defined(HAVE_SETENV_PROTO) +#ifdef __cplusplus +extern "C" { +#endif +int setenv (const char *, const char *, int); +#ifdef __cplusplus +} +#endif +#endif + + + +#if !defined(HAVE_SRANDOM_PROTO) +#ifdef __cplusplus +extern "C" { +#endif +void srandom(unsigned int); +#ifdef __cplusplus +} +#endif +#endif + + + +#if !defined(HAVE_STRLCAT_PROTO) +#ifdef __cplusplus +extern "C" { +#endif +unsigned long strlcat(char*, const char*, unsigned long); +#ifdef __cplusplus +} +#endif +#endif + + + +#if !defined(HAVE_STRLCPY_PROTO) +#ifdef __cplusplus +extern "C" { +#endif +unsigned long strlcpy(char*, const char*, unsigned long); +#ifdef __cplusplus +} +#endif +#endif + + + +#if !defined(HAVE_UNSETENV_PROTO) +#ifdef __cplusplus +extern "C" { +#endif +void unsetenv (const char *); +#ifdef __cplusplus +} +#endif +#endif + + + +#if !defined(HAVE_USLEEP_PROTO) +#ifdef __cplusplus +extern "C" { +#endif +int usleep (unsigned int); +#ifdef __cplusplus +} +#endif +#endif + + + +#ifndef HAVE_S_ISSOCK +#define HAVE_S_ISSOCK +#define S_ISSOCK(mode) (1==0) +#endif + + + +/* + * Steven Schultz <sms at to.gd-es.com> tells us : + * BSD/OS 4.2 doesn't have a prototype for openpty in its system header files + */ +#ifdef __bsdi__ +__BEGIN_DECLS +int openpty(int *, int *, char *, struct termios *, struct winsize *); +__END_DECLS +#endif + + + +/* + * On HP-UX, the declaration of vsnprintf() is needed every time ! + */ + +#if !defined(HAVE_VSNPRINTF) || defined(hpux) +#if __STDC__ +#include <stdarg.h> +#include <stdlib.h> +#else +#include <varargs.h> +#endif +#ifdef __cplusplus +extern "C" +#endif +int vsnprintf(char *str, size_t n, char const *fmt, va_list ap); +#ifdef __cplusplus +extern "C" +#endif +int snprintf(char *str, size_t n, char const *fmt, ...); +#endif + + +/* KDE bindir */ +#define __KDE_BINDIR "@BIN_INSTALL_DIR@" + +/* execprefix or NONE if not set, for libloading */ +#undef __KDE_EXECPREFIX + +/* define to 1 if -fvisibility is supported */ +#undef __KDE_HAVE_GCC_VISIBILITY + +/* path to su */ +#define __PATH_SU "@__PATH_SU@" + +/* path to sudo */ +#define __PATH_SUDO "@__PATH_SUDO@" + + +#if defined(__SVR4) && !defined(__svr4__) +#define __svr4__ 1 +#endif + + +/* type to use in place of socklen_t if not defined */ +#cmakedefine kde_socklen_t @kde_socklen_t@ + +/* type to use in place of socklen_t if not defined (deprecated, use kde_socklen_t) */ +#cmakedefine ksize_t @kde_socklen_t@ + +/* Define to `long int' if <sys/types.h> does not define. */ +#undef off_t + +/* Define to `unsigned int' if <sys/types.h> does not define. */ +#undef size_t + + +/* provide a definition for a 32 bit entity, usable as a typedef, possibly + extended by "unsigned" */ +#undef INT32_BASETYPE +#ifdef SIZEOF_INT +#if SIZEOF_INT == 4 +#define INT32_BASETYPE int +#endif +#endif +#if !defined(INT32_BASETYPE) && defined(SIZEOF_LONG) +#if SIZEOF_LONG == 4 +#define INT32_BASETYPE long +#endif +#endif +#ifndef INT32_BASETYPE +#define INT32_BASETYPE int +#endif + +#ifndef HAVE_SETEUID +#define HAVE_SETEUID +#define HAVE_SETEUID_FAKE +#ifdef __cplusplus +extern "C" +#endif +int seteuid(INT32_BASETYPE euid); /* defined in fakes.c */ +#endif + diff --git a/dcop/CMakeLists.txt b/dcop/CMakeLists.txt new file mode 100644 index 000000000..7c53395a9 --- /dev/null +++ b/dcop/CMakeLists.txt @@ -0,0 +1,82 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( KDE-ICE ) +add_subdirectory( dcopidl ) +add_subdirectory( dcopidlng ) +add_subdirectory( dcopidl2cpp ) +add_subdirectory( client ) + + +include( KDE3Macros ) + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + dcopclient.h dcopobject.h dcopstub.h dcopref.h + dcoptypes.h kdatastream.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + + +##### libDCOP ################################### + +set( target DCOP ) + +set( ${target}_SRCS + dcopstub.cpp dcopref.cpp dcopobject.cpp dcopclient.cpp +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 4.2.0 + LINK kICE-static ${TQT_LIBRARIES} + DESTINATION ${LIB_INSTALL_DIR} +) + + +#### dcopserver (kdeinit) ####################### + +set( target dcopserver ) + +set( ${target}_SRCS + dcopserver.cpp dcopsignals.cpp +) + +tde_add_kdeinit_executable( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK DCOP-shared +) + + +#### dcopserver_shutdown ######################## + +tde_add_executable( dcopserver_shutdown + SOURCES dcopserver_shutdown.c + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/dcop/KDE-ICE/CMakeLists.txt b/dcop/KDE-ICE/CMakeLists.txt new file mode 100644 index 000000000..17e2dab86 --- /dev/null +++ b/dcop/KDE-ICE/CMakeLists.txt @@ -0,0 +1,39 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + -DICE_t + -DTRANS_SERVER + -DTRANS_CLIENT + -DUNIXCONN + -DANSICPP +) + +include_directories( + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/dcop +) + + +##### kICE ###################################### + +set( target kICE ) + +set( ${target}_SRCS + accept.c authutil.c connect.c error.c getauth.c + iceauth.c listen.c listenwk.c locking.c misc.c + ping.c process.c protosetup.c register.c replywait.c + setauth.c shutdown.c watch.c transport.c globals.c +) + +tde_add_library( ${target} STATIC_PIC + SOURCES ${${target}_SRCS} +) diff --git a/dcop/client/CMakeLists.txt b/dcop/client/CMakeLists.txt new file mode 100644 index 000000000..3ed31360c --- /dev/null +++ b/dcop/client/CMakeLists.txt @@ -0,0 +1,61 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_BINARY_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +#### dcop ####################################### + +tde_add_executable( dcop SOURCES dcop.cpp LINK DCOP-shared DESTINATION ${BIN_INSTALL_DIR} ) + + +#### dcopfind ################################### + +tde_add_executable( dcopfind SOURCES dcopfind.cpp LINK DCOP-shared DESTINATION ${BIN_INSTALL_DIR} ) + + +#### dcopclient ################################# + +tde_add_executable( dcopclient SOURCES dcopclient.c DESTINATION ${BIN_INSTALL_DIR} ) + + +#### dcopobject ################################# + +tde_add_executable( dcopobject SOURCES dcopobject.c DESTINATION ${BIN_INSTALL_DIR} ) + + +#### dcopref #################################### + +tde_add_executable( dcopref SOURCES dcopref.c DESTINATION ${BIN_INSTALL_DIR} ) + + +#### dcopstart ################################## + +tde_add_executable( dcopstart SOURCES dcopstart.cpp LINK DCOP-shared DESTINATION ${BIN_INSTALL_DIR} ) + + +#### dcopquit ################################### + +tde_add_executable( dcopquit SOURCES dcopquit.cpp LINK DCOP-shared DESTINATION ${BIN_INSTALL_DIR} ) diff --git a/dcop/dcopidl/CMakeLists.txt b/dcop/dcopidl/CMakeLists.txt new file mode 100644 index 000000000..ec2752bc0 --- /dev/null +++ b/dcop/dcopidl/CMakeLists.txt @@ -0,0 +1,39 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} + -include tqt.h +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### dcopidl ################################### + +set( target dcopidl ) + +set( ${target}_SRCS + main.cpp yacc.cc scanner.cc +) + +tde_add_executable( ${target} + SOURCES ${${target}_SRCS} + LINK DCOP-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/dcop/dcopidl2cpp/CMakeLists.txt b/dcop/dcopidl2cpp/CMakeLists.txt new file mode 100644 index 000000000..4b0f7d97c --- /dev/null +++ b/dcop/dcopidl2cpp/CMakeLists.txt @@ -0,0 +1,36 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + +##### dcopidl2cpp ############################### + +set( target dcopidl2cpp ) + +set( ${target}_SRCS + main.cpp skel.cpp stub.cpp stubimpl.cpp +) + +tde_add_executable( ${target} + SOURCES ${${target}_SRCS} + LINK ${TQT_LIBRARIES} + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/dcop/dcopidlng/CMakeLists.txt b/dcop/dcopidlng/CMakeLists.txt new file mode 100644 index 000000000..574da8a80 --- /dev/null +++ b/dcop/dcopidlng/CMakeLists.txt @@ -0,0 +1,25 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +install( PROGRAMS + dcopidlng + DESTINATION ${BIN_INSTALL_DIR} ) + +install( PROGRAMS + kalyptus + DESTINATION ${DATA_INSTALL_DIR}/dcopidlng ) + +install( FILES + Ast.pm Iter.pm kalyptusCxxToDcopIDL.pm kdocAstUtil.pm + kdocParseDoc.pm kdocUtil.pm + DESTINATION ${DATA_INSTALL_DIR}/dcopidlng ) diff --git a/dnssd/CMakeLists.txt b/dnssd/CMakeLists.txt new file mode 100644 index 000000000..d2ec354cd --- /dev/null +++ b/dnssd/CMakeLists.txt @@ -0,0 +1,54 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + +##### headers ################################### + +install( FILES + domainbrowser.h query.h remoteservice.h + publicservice.h servicebase.h servicebrowser.h + ${CMAKE_CURRENT_BINARY_DIR}/settings.h + DESTINATION ${INCLUDE_INSTALL_DIR}/dnssd ) + + +##### kdnssd #################################### + +set( target kdnssd ) + +set( ${target}_SRCS + remoteservice.cpp responder.cpp servicebase.cpp + settings.kcfgc publicservice.cpp query.cpp + domainbrowser.cpp servicebrowser.cpp +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 1.0.0 + LINK kdecore-shared + DEPENDENCIES kconfig_compiler + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt new file mode 100644 index 000000000..930db3e21 --- /dev/null +++ b/doc/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( common ) diff --git a/doc/common/CMakeLists.txt b/doc/common/CMakeLists.txt new file mode 100644 index 000000000..a54894234 --- /dev/null +++ b/doc/common/CMakeLists.txt @@ -0,0 +1,28 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +install( FILES + artistic-license.html bottom1.png bottom2.png + bsd-license.html doctop1.png doctop2.png fdl-license + fdl-license.html gpl-license gpl-license.html + kde-common.css kde-default.css kde-web.css kde-localised.css.template + lgpl-license lgpl-license.html qpl-license.html shadow.png + web-docbottom.png x11-license.html xml.dcl web-doctop.png + doctop1a.png doctop1b.png 1.png 2.png 3.png 4.png + 5.png 6.png 7.png 8.png 9.png 10.png doxygen.css + header.html footer.html mainheader.html appheader.html + mainfooter.html fdl-notice.html favicon.ico kde_gear_64.png + docheadergears.png headerbg.png grad.png kmenu.png + kde_logo.png kde_logo_bg.png bottom-left.png bottom-middle.png + bottom-right.png top-left.png top-middle.png top-right-konqueror.png + DESTINATION ${HTML_INSTALL_DIR}/en/common ) diff --git a/doc/kspell/CMakeLists.txt b/doc/kspell/CMakeLists.txt new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/doc/kspell/CMakeLists.txt diff --git a/interfaces/CMakeLists.txt b/interfaces/CMakeLists.txt new file mode 100644 index 000000000..99d359979 --- /dev/null +++ b/interfaces/CMakeLists.txt @@ -0,0 +1,20 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( ktexteditor ) +add_subdirectory( kscript ) +add_subdirectory( kregexpeditor ) +add_subdirectory( kmediaplayer ) +add_subdirectory( kio ) +add_subdirectory( terminal ) +add_subdirectory( khexedit ) +add_subdirectory( kimproxy ) +add_subdirectory( kspeech ) diff --git a/interfaces/khexedit/CMakeLists.txt b/interfaces/khexedit/CMakeLists.txt new file mode 100644 index 000000000..94f2e8f30 --- /dev/null +++ b/interfaces/khexedit/CMakeLists.txt @@ -0,0 +1,22 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### headers ################################### + +install( FILES + byteseditinterface.h valuecolumninterface.h + charcolumninterface.h zoominterface.h clipboardinterface.h + DESTINATION ${INCLUDE_INSTALL_DIR}/khexedit ) + + +##### other data ################################ + +install( FILES kbytesedit.desktop DESTINATION ${SHARE_INSTALL_DIR}/servicetypes ) diff --git a/interfaces/kimproxy/CMakeLists.txt b/interfaces/kimproxy/CMakeLists.txt new file mode 100644 index 000000000..f52118353 --- /dev/null +++ b/interfaces/kimproxy/CMakeLists.txt @@ -0,0 +1,13 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( interface ) +add_subdirectory( library ) diff --git a/interfaces/kimproxy/interface/CMakeLists.txt b/interfaces/kimproxy/interface/CMakeLists.txt new file mode 100644 index 000000000..f1335c5f4 --- /dev/null +++ b/interfaces/kimproxy/interface/CMakeLists.txt @@ -0,0 +1,22 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### headers ################################### + +install( FILES + kimiface.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + + +##### other data ################################ + +install( FILES kcm_instantmessenger.desktop DESTINATION ${DATA_INSTALL_DIR}/kcm_componentchooser ) +install( FILES dcopinstantmessenger.desktop DESTINATION ${SHARE_INSTALL_DIR}/servicetypes ) diff --git a/interfaces/kimproxy/library/CMakeLists.txt b/interfaces/kimproxy/library/CMakeLists.txt new file mode 100644 index 000000000..4f5d0b17a --- /dev/null +++ b/interfaces/kimproxy/library/CMakeLists.txt @@ -0,0 +1,55 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( icons ) + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio/kio +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + kimproxy.h kimproxyiface.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + + +##### kimproxy ################################## + +set( target kimproxy ) + +set( ${target}_SRCS + kimproxy.cpp kimproxyiface.skel + ${CMAKE_SOURCE_DIR}/interfaces/kimproxy/interface/kimiface.stub +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 0.0.0 + LINK kio-shared + DESTINATION ${LIB_INSTALL_DIR} + DEPENDENCIES dcopidl +) diff --git a/interfaces/kimproxy/library/icons/CMakeLists.txt b/interfaces/kimproxy/library/icons/CMakeLists.txt new file mode 100644 index 000000000..ac95aa58c --- /dev/null +++ b/interfaces/kimproxy/library/icons/CMakeLists.txt @@ -0,0 +1,13 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +tde_install_icons( ) + diff --git a/interfaces/kio/CMakeLists.txt b/interfaces/kio/CMakeLists.txt new file mode 100644 index 000000000..efcecf65e --- /dev/null +++ b/interfaces/kio/CMakeLists.txt @@ -0,0 +1,17 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### headers ################################### + +install( FILES + http.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kio ) + diff --git a/interfaces/kmediaplayer/CMakeLists.txt b/interfaces/kmediaplayer/CMakeLists.txt new file mode 100644 index 000000000..03523c36e --- /dev/null +++ b/interfaces/kmediaplayer/CMakeLists.txt @@ -0,0 +1,65 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +if( ARTS_FOUND ) + add_subdirectory( kfileaudiopreview ) +endif( ARTS_FOUND ) + + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/interfaces + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + player.h playerdcopobject.h view.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kmediaplayer ) + + +##### other data ################################ + +install( FILES + kmediaplayerengine.desktop kmediaplayer.desktop + DESTINATION ${SHARE_INSTALL_DIR}/servicetypes ) + + +##### kmediaplayer ############################## + +set( target kmediaplayer ) + +set( ${target}_SRCS + player.cpp view.cpp playerdcopobject.skel +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 0.0.0 + LINK kparts-shared + DESTINATION ${LIB_INSTALL_DIR} + DEPENDENCIES dcopidl +) diff --git a/interfaces/kmediaplayer/kfileaudiopreview/CMakeLists.txt b/interfaces/kmediaplayer/kfileaudiopreview/CMakeLists.txt new file mode 100644 index 000000000..031ffddb8 --- /dev/null +++ b/interfaces/kmediaplayer/kfileaudiopreview/CMakeLists.txt @@ -0,0 +1,50 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${ARTS_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/interfaces + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfile + ${CMAKE_SOURCE_DIR}/arts/kde +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ARTS_LIBRARY_DIRS} +) + + +##### kfileaudiopreview ######################### + +set( target kfileaudiopreview ) + +set( ${target}_SRCS + kfileaudiopreview.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kmediaplayer-shared artskde-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/interfaces/kregexpeditor/CMakeLists.txt b/interfaces/kregexpeditor/CMakeLists.txt new file mode 100644 index 000000000..5b2f370c8 --- /dev/null +++ b/interfaces/kregexpeditor/CMakeLists.txt @@ -0,0 +1,20 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### headers ################################### + +install( FILES + kregexpeditorinterface.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + +##### other data ################################ + +install( FILES kregexpeditor.desktop DESTINATION ${SHARE_INSTALL_DIR}/servicetypes ) diff --git a/interfaces/kscript/CMakeLists.txt b/interfaces/kscript/CMakeLists.txt new file mode 100644 index 000000000..8a5290c5c --- /dev/null +++ b/interfaces/kscript/CMakeLists.txt @@ -0,0 +1,61 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( sample ) + + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + scriptinterface.h scriptclientinterface.h scriptmanager.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + + +##### other data ################################ + +install( FILES scriptinterface.desktop DESTINATION ${SHARE_INSTALL_DIR}/servicetypes ) + + +##### kscript ################################### + +set( target kscript ) + +set( ${target}_SRCS + scriptmanager.cpp +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 0.0.0 + LINK kio-shared + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/interfaces/kscript/sample/CMakeLists.txt b/interfaces/kscript/sample/CMakeLists.txt new file mode 100644 index 000000000..ac5eb479b --- /dev/null +++ b/interfaces/kscript/sample/CMakeLists.txt @@ -0,0 +1,47 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/interfaces/kscript + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES shellscript.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +##### libshellscript ############################ + +set( target libshellscript ) + +set( ${target}_SRCS + shellscript.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kscript-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/interfaces/kspeech/CMakeLists.txt b/interfaces/kspeech/CMakeLists.txt new file mode 100644 index 000000000..5bf284687 --- /dev/null +++ b/interfaces/kspeech/CMakeLists.txt @@ -0,0 +1,21 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### headers ################################### + +install( FILES + kspeech.h kspeechsink.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + + +##### other data ################################ + +install( FILES dcoptexttospeech.desktop DESTINATION ${SHARE_INSTALL_DIR}/servicetypes ) diff --git a/interfaces/ktexteditor/CMakeLists.txt b/interfaces/ktexteditor/CMakeLists.txt new file mode 100644 index 000000000..249535a47 --- /dev/null +++ b/interfaces/ktexteditor/CMakeLists.txt @@ -0,0 +1,101 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} + -include tqt.h +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_BINARY_DIR}/kabc + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kabc + ${CMAKE_SOURCE_DIR}/interfaces +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + document.h view.h editor.h plugin.h editinterface.h + undointerface.h selectioninterface.h cursorinterface.h + clipboardinterface.h popupmenuinterface.h viewcursorinterface.h + searchinterface.h highlightinginterface.h blockselectioninterface.h + codecompletioninterface.h configinterface.h markinterface.h + printinterface.h wordwrapinterface.h dynwordwrapinterface.h + markinterfaceextension.h configinterfaceextension.h + encodinginterface.h viewstatusmsginterface.h + sessionconfiginterface.h editorchooser.h documentinfo.h + selectioninterfaceext.h selectionextdcopinterface.h + texthintinterface.h editinterfaceext.h variableinterface.h + templateinterface.h + DESTINATION ${INCLUDE_INSTALL_DIR}/ktexteditor ) + + +##### other data ################################ + +install( FILES + ktexteditor.desktop ktexteditoreditor.desktop + ktexteditorplugin.desktop + DESTINATION ${SHARE_INSTALL_DIR}/servicetypes ) + +install( FILES + kcm_ktexteditor.desktop + DESTINATION ${DATA_INSTALL_DIR}/kcm_componentchooser ) + + + +##### ktexteditor ############################### + +set( target ktexteditor ) + +set( ${target}_SRCS + ktexteditor.cpp + editinterface.cpp clipboardinterface.cpp selectioninterface.cpp searchinterface.cpp + codecompletioninterface.cpp wordwrapinterface.cpp blockselectioninterface.cpp + configinterface.cpp cursorinterface.cpp dynwordwrapinterface.cpp + printinterface.cpp highlightinginterface.cpp markinterface.cpp + popupmenuinterface.cpp undointerface.cpp viewcursorinterface.cpp + editdcopinterface.cpp editdcopinterface.skel clipboarddcopinterface.cpp + clipboarddcopinterface.skel selectiondcopinterface.cpp selectiondcopinterface.skel + searchdcopinterface.cpp searchdcopinterface.skel markinterfaceextension.cpp + configinterfaceextension.cpp encodinginterface.cpp sessionconfiginterface.cpp + viewstatusmsginterface.cpp editorchooser_ui.ui editorchooser.cpp + blockselectiondcopinterface.cpp documentinfo.cpp documentdcopinfo.cpp + blockselectiondcopinterface.skel documentdcopinfo.skel encodingdcopinterface.cpp + encodingdcopinterface.skel printdcopinterface.cpp printdcopinterface.skel + undodcopinterface.cpp undodcopinterface.skel viewcursordcopinterface.cpp + viewcursordcopinterface.skel viewstatusmsgdcopinterface.cpp + viewstatusmsgdcopinterface.skel selectioninterfaceext.cpp selectionextdcopinterface.skel + texthintinterface.cpp editinterfaceext.cpp variableinterface.cpp templateinterface.cpp +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 0.0.0 + LINK kdeui-shared kabc-shared kparts-shared + DEPENDENCIES dcopidl dcopidl2cpp + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/interfaces/terminal/CMakeLists.txt b/interfaces/terminal/CMakeLists.txt new file mode 100644 index 000000000..439c3ec29 --- /dev/null +++ b/interfaces/terminal/CMakeLists.txt @@ -0,0 +1,16 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### headers ################################### + +install( FILES + kde_terminal_interface.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) diff --git a/kab/CMakeLists.txt b/kab/CMakeLists.txt new file mode 100644 index 000000000..e588f442b --- /dev/null +++ b/kab/CMakeLists.txt @@ -0,0 +1,40 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kab ####################################### + +set( target kab ) + +set( ${target}_SRCS + kabapi.cc addressbook.cc qconfigDB.cc +) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} + DEPENDENCIES dcopidl +) diff --git a/kabc/CMakeLists.txt b/kabc/CMakeLists.txt new file mode 100644 index 000000000..0cddd4770 --- /dev/null +++ b/kabc/CMakeLists.txt @@ -0,0 +1,128 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( vcard ) +add_subdirectory( vcardparser ) +add_subdirectory( formats ) +add_subdirectory( plugins ) + + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/vcard/include + ${CMAKE_CURRENT_SOURCE_DIR}/vcard/include/generated + ${CMAKE_CURRENT_SOURCE_DIR}/vcardparser + + # external includes + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kab +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + address.h addressbook.h addresseedialog.h + agent.h distributionlist.h distributionlistdialog.h + distributionlisteditor.h errorhandler.h field.h + format.h formatfactory.h formatplugin.h geo.h key.h + phonenumber.h picture.h plugin.h resource.h secrecy.h + resourceselectdialog.h sound.h stdaddressbook.h + timezone.h vcardconverter.h vcardformat.h lock.h + vcardformatplugin.h ldifconverter.h addresslineedit.h + ldapclient.h addresseelist.h locknull.h ldif.h + ldapurl.h ldapconfigwidget.h sortmode.h + ${CMAKE_CURRENT_BINARY_DIR}/addressee.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kabc ) + + +##### other data ################################ + +install( FILES kab2kabc.desktop DESTINATION ${SHARE_INSTALL_DIR}/autostart ) +install( FILES kabc_manager.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources ) +install( FILES countrytransl.map DESTINATION ${DATA_INSTALL_DIR}/kabc ) + + +##### generated files ########################### +# FIXME this hack make compatibility with out-of-source mode + +file( COPY + scripts/makeaddressee scripts/addressee.src.cpp + scripts/addressee.src.h scripts/entrylist scripts/field.src.cpp + DESTINATION scripts ) + +add_custom_command( + OUTPUT addressee.cpp addressee.h field.cpp + COMMAND perl + ARGS makeaddressee + DEPENDS scripts/addressee.src.cpp scripts/addressee.src.h scripts/entrylist scripts/field.src.cpp + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/scripts +) + + +##### kabc ###################################### + +set( target kabc ) + +set( ${target}_SRCS + address.cpp addressbook.cpp addressee.cpp addresseedialog.cpp + agent.cpp distributionlist.cpp distributionlistdialog.cpp + distributionlisteditor.cpp errorhandler.cpp field.cpp + formatfactory.cpp geo.cpp key.cpp phonenumber.cpp + picture.cpp plugin.cpp resource.cpp resourceselectdialog.cpp + secrecy.cpp sound.cpp stdaddressbook.cpp timezone.cpp + vcard21parser.cpp vcardconverter.cpp vcardformat.cpp + vcardformatimpl.cpp vcardformatplugin.cpp ldifconverter.cpp + addresslineedit.cpp ldapclient.cpp addresseelist.cpp + vcardtool.cpp addresseehelper.cpp lock.cpp locknull.cpp + ldif.cpp ldapurl.cpp ldapconfigwidget.cpp sortmode.cpp + addresseehelper.skel +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 1.2.0 + LINK vcards-static vcard-shared kio-shared kresources-shared + DEPENDENCIES addressee.h dcopidl + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### kab2kabc ################################## + +set( target kab2kabc ) + +set( ${target}_SRCS + kab2kabc.cpp +) + +tde_add_executable( ${target} + SOURCES ${${target}_SRCS} + LINK kab-static kabc-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/kabc/formats/CMakeLists.txt b/kabc/formats/CMakeLists.txt new file mode 100644 index 000000000..23ae73fc0 --- /dev/null +++ b/kabc/formats/CMakeLists.txt @@ -0,0 +1,51 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${CMAKE_BINARY_DIR}/kabc + ${CMAKE_SOURCE_DIR}/kabc + + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES binary.desktop DESTINATION ${DATA_INSTALL_DIR}/kabc/formats ) + + +##### kabcformat_binary ######################### + +set( target kabcformat_binary ) + +set( ${target}_SRCS + binaryformat.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kabc-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kabc/plugins/CMakeLists.txt b/kabc/plugins/CMakeLists.txt new file mode 100644 index 000000000..019afd842 --- /dev/null +++ b/kabc/plugins/CMakeLists.txt @@ -0,0 +1,15 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( file ) +add_subdirectory( dir ) +add_subdirectory( net ) +add_subdirectory( ldapkio ) diff --git a/kabc/plugins/dir/CMakeLists.txt b/kabc/plugins/dir/CMakeLists.txt new file mode 100644 index 000000000..094af3789 --- /dev/null +++ b/kabc/plugins/dir/CMakeLists.txt @@ -0,0 +1,77 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kabc + ${CMAKE_SOURCE_DIR}/kabc + + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfile +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + resourcedir.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kabc ) + + +##### other data ################################ + +install( FILES dir.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kabc ) + + +##### kabc_dir (library) ######################## + +set( target kabc_dir ) + +set( ${target}_SRCS + resourcedir.cpp resourcedirconfig.cpp +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 1.0.0 + LINK kabc-shared + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### kabc_dir (module) ######################### + +set( target kabc_dir ) + +set( ${target}_SRCS + resourcedirplugin.cpp +) + +tde_add_kpart( ${target} + SOURCES ${${target}_SRCS} + LINK kabc_dir-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kabc/plugins/file/CMakeLists.txt b/kabc/plugins/file/CMakeLists.txt new file mode 100644 index 000000000..9304e9865 --- /dev/null +++ b/kabc/plugins/file/CMakeLists.txt @@ -0,0 +1,77 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kabc + ${CMAKE_SOURCE_DIR}/kabc + + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfile +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + resourcefile.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kabc ) + + +##### other data ################################ + +install( FILES file.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kabc ) + + +##### kabc_file (library) ####################### + +set( target kabc_file ) + +set( ${target}_SRCS + resourcefile.cpp resourcefileconfig.cpp +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 1.0.0 + LINK kabc-shared + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### kabc_file (module) ######################## + +set( target kabc_file ) + +set( ${target}_SRCS + resourcefileplugin.cpp +) + +tde_add_kpart( ${target} + SOURCES ${${target}_SRCS} + LINK kabc_file-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kabc/plugins/ldapkio/CMakeLists.txt b/kabc/plugins/ldapkio/CMakeLists.txt new file mode 100644 index 000000000..4d80738e4 --- /dev/null +++ b/kabc/plugins/ldapkio/CMakeLists.txt @@ -0,0 +1,77 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kabc + ${CMAKE_SOURCE_DIR}/kabc + + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfiles +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + resourceldapkio.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kabc ) + + +##### other data ################################ + +install( FILES ldapkio.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kabc ) + + +##### kabc_ldapkio ############################## + +set( target kabc_ldapkio ) + +set( ${target}_SRCS + resourceldapkio.cpp resourceldapkioconfig.cpp +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 1.0.0 + LINK kabc-shared + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### kabc_ldapkio ############################## + +set( target kabc_ldapkio ) + +set( ${target}_SRCS + resourceldapkioplugin.cpp +) + +tde_add_kpart( ${target} + SOURCES ${${target}_SRCS} + LINK kabc_ldapkio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kabc/plugins/net/CMakeLists.txt b/kabc/plugins/net/CMakeLists.txt new file mode 100644 index 000000000..6e7161691 --- /dev/null +++ b/kabc/plugins/net/CMakeLists.txt @@ -0,0 +1,77 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kabc + ${CMAKE_SOURCE_DIR}/kabc + + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfile +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + resourcenet.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kabc ) + + +##### other data ################################ + +install( FILES net.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kresources/kabc ) + + +##### kabc_net (library) ######################## + +set( target kabc_net ) + +set( ${target}_SRCS + resourcenet.cpp resourcenetconfig.cpp +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 1.0.0 + LINK kabc-shared + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### kabc_net (module) ######################### + +set( target kabc_net ) + +set( ${target}_SRCS + resourcenetplugin.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kabc_net-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kabc/vcard/CMakeLists.txt b/kabc/vcard/CMakeLists.txt new file mode 100644 index 000000000..99f6ab4f5 --- /dev/null +++ b/kabc/vcard/CMakeLists.txt @@ -0,0 +1,44 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/include + ${CMAKE_CURRENT_SOURCE_DIR}/include/generated + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### vcard ##################################### + +set( target vcard ) + +set( ${target}_SRCS + vCard-all.cpp +) + +tde_add_library( ${target} SHARED + SOURCES ${${target}_SRCS} + VERSION 0.0.0 + LINK kdecore-shared + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/kabc/vcardparser/CMakeLists.txt b/kabc/vcardparser/CMakeLists.txt new file mode 100644 index 000000000..4aace67f0 --- /dev/null +++ b/kabc/vcardparser/CMakeLists.txt @@ -0,0 +1,44 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + vcard.h vcardline.h vcardparser.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kabc ) + + +##### vcards #################################### + +set( target vcards ) + +set( ${target}_SRCS + vcard.cpp vcardline.cpp vcardparser.cpp +) + +tde_add_library( ${target} STATIC_PIC + SOURCES ${${target}_SRCS} +) diff --git a/kate/CMakeLists.txt b/kate/CMakeLists.txt new file mode 100644 index 000000000..1b920c92d --- /dev/null +++ b/kate/CMakeLists.txt @@ -0,0 +1,16 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( interfaces ) +add_subdirectory( part ) +add_subdirectory( data ) +add_subdirectory( scripts ) +add_subdirectory( plugins ) diff --git a/kate/data/CMakeLists.txt b/kate/data/CMakeLists.txt new file mode 100644 index 000000000..212dfafcd --- /dev/null +++ b/kate/data/CMakeLists.txt @@ -0,0 +1,83 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +install( FILES + katepart.desktop + DESTINATION ${SERVICES_INSTALL_DIR} ) + +install( FILES + katepartui.rc katepartreadonlyui.rc + DESTINATION ${DATA_INSTALL_DIR}/katepart ) + +install( FILES + katesyntaxhighlightingrc katefiletyperc + DESTINATION ${CONFIG_INSTALL_DIR} ) + +install( FILES + language.dtd syntax.template cpp.xml c.xml html.xml + kbasic.xml objectivec.xml changelog.xml ada.xml + css.xml perl.xml php.xml xml.xml java.xml rpmspec.xml + sql.xml sql-mysql.xml sql-postgresql.xml vhdl.xml + diff.xml bash.xml latex.xml postscript.xml ruby.xml + rhtml.xml desktop.xml eiffel.xml pascal.xml sather.xml + python.xml makefile.xml ferite.xml scheme.xml matlab.xml + tcl.xml ilerpg.xml verilog.xml javascript.xml sml.xml + winehq.xml cs.xml sgml.xml idconsole.xml xmldebug.xml + fortran.xml haskell.xml literate-haskell.xml r.xml + gnuassembler.xml mab.xml mason.xml idl.xml prolog.xml + rsiidl.xml coldfusion.xml picsrc.xml uscript.xml lpc.xml + velocity.xml sci.xml ldif.xml inform.xml xharbour.xml + yacas.xml component-pascal.xml asm6502.xml gdl.xml + bibtex.xml d.xml vrml.xml rexx.xml cue.xml progress.xml + e.xml sieve.xml modula-2.xml awk.xml cisco.xml doxygen.xml + lua.xml pike.xml debianchangelog.xml debiancontrol.xml + fgl-4gl.xml fgl-per.xml alert.xml gettext.xml commonlisp.xml + clipper.xml povray.xml euphoria.xml mup.xml jsp.xml + ocaml.xml lex.xml yacc.xml cg.xml ahdl.xml ansic89.xml + tibasic.xml purebasic.xml mips.xml logtalk.xml txt2tags.xml + xslt.xml stata.xml glsl.xml lilypond.xml abc.xml asp.xml + asm-avr.xml rib.xml cmake.xml octave.xml javadoc.xml + cgis.xml spice.xml nasm.xml mediawiki.xml apache.xml + m3u.xml ini.xml fstab.xml actionscript.xml abap.xml + ansys.xml asn1.xml asterisk.xml bmethod.xml ddoc.xml + djangotemplate.xml doxygenlua.xml dtd.xml email.xml + erlang.xml freebasic.xml gap.xml json.xml maxima.xml + mergetagtext.xml modelica.xml monobasic.xml nemerle.xml + noweb.xml objectivecpp.xml opal.xml pgn.xml rapidq.xml + scala.xml sisu.xml systemc.xml texinfo.xml xorg.xml + xul.xml yaml.xml zonnon.xml + ${CMAKE_CURRENT_BINARY_DIR}/html-php.xml + ${CMAKE_CURRENT_BINARY_DIR}/css-php.xml + ${CMAKE_CURRENT_BINARY_DIR}/javascript-php.xml + DESTINATION ${DATA_INSTALL_DIR}/katepart/syntax ) + + +##### generate php headers ###################### + +add_custom_command( OUTPUT html-php.xml + COMMAND perl ARGS generate-php.pl < html.xml > ${CMAKE_CURRENT_BINARY_DIR}/html-php.xml + DEPENDS html.xml + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} ) + +add_custom_command( OUTPUT css-php.xml + COMMAND perl ARGS generate-php.pl < css.xml > ${CMAKE_CURRENT_BINARY_DIR}/css-php.xml + DEPENDS css.xml + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} ) + +add_custom_command( OUTPUT javascript-php.xml + COMMAND perl ARGS generate-php.pl < javascript.xml > ${CMAKE_CURRENT_BINARY_DIR}/javascript-php.xml + DEPENDS javascript.xml + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} ) + +add_custom_target( php-headers ALL + DEPENDS html-php.xml css-php.xml javascript-php.xml ) diff --git a/kate/interfaces/CMakeLists.txt b/kate/interfaces/CMakeLists.txt new file mode 100644 index 000000000..b7eca5f39 --- /dev/null +++ b/kate/interfaces/CMakeLists.txt @@ -0,0 +1,51 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/interfaces +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + document.h view.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kate ) + + +##### katepartinterfaces ######################## + +set( target katepartinterfaces ) + +set( ${target}_SRCS + interfaces.cpp katecmd.cpp +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 0.0.0 + LINK ktexteditor-shared + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/kate/part/CMakeLists.txt b/kate/part/CMakeLists.txt new file mode 100644 index 000000000..b73ab51ef --- /dev/null +++ b/kate/part/CMakeLists.txt @@ -0,0 +1,81 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kjs + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfile + ${CMAKE_SOURCE_DIR}/kjs + ${CMAKE_SOURCE_DIR}/kutils + ${CMAKE_SOURCE_DIR}/kdeprint + ${CMAKE_SOURCE_DIR}/interfaces + ${CMAKE_SOURCE_DIR}/interfaces/kregexpeditor + ${LUA_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${LUA_LIBRARY_DIRS} +) + +##### kate (static library) ##################### + +set( target kate ) + +set( ${target}_SRCS + katesearch.cpp katebuffer.cpp katecmds.cpp + kateundo.cpp katecursor.cpp katedialogs.cpp katedocument.cpp + katefactory.cpp katehighlight.cpp katesyntaxdocument.cpp + katetextline.cpp kateview.cpp kateconfig.cpp kateviewhelpers.cpp + katecodecompletion.cpp katedocumenthelpers.cpp + katecodefoldinghelpers.cpp kateviewinternal.cpp katebookmarks.cpp + kateprinter.cpp katefont.cpp katelinerange.cpp katesupercursor.cpp + katearbitraryhighlight.cpp katerenderer.cpp kateattribute.cpp + kateautoindent.cpp katefiletype.cpp kateschema.cpp katedocument.skel + katetemplatehandler.cpp katejscript.cpp katespell.cpp kateindentscriptabstracts.cpp + kateluaindentscript.cpp +) + +tde_add_lut( katejscript.cpp katejscript.lut.h katejscript.cpp ) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} + DEPENDENCIES dcopidl +) + + +##### libkatepart (module) ###################### + +set( target libkatepart ) + +configure_file( ${CMAKE_SOURCE_DIR}/cmake/modules/template_dummy_cpp.cmake dummy.cpp COPYONLY ) + +tde_add_kpart( ${target} + SOURCES dummy.cpp + EMBED kate-static + LINK kjs-shared kdeprint-shared katepartinterfaces-shared kutils-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kate/plugins/CMakeLists.txt b/kate/plugins/CMakeLists.txt new file mode 100644 index 000000000..dab636d17 --- /dev/null +++ b/kate/plugins/CMakeLists.txt @@ -0,0 +1,15 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( isearch ) +add_subdirectory( insertfile ) +add_subdirectory( kdatatool ) +add_subdirectory( wordcompletion ) diff --git a/kate/plugins/insertfile/CMakeLists.txt b/kate/plugins/insertfile/CMakeLists.txt new file mode 100644 index 000000000..c09a2bf2b --- /dev/null +++ b/kate/plugins/insertfile/CMakeLists.txt @@ -0,0 +1,52 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfile + ${CMAKE_SOURCE_DIR}/interfaces +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES ktexteditor_insertfile.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES ktexteditor_insertfileui.rc DESTINATION ${DATA_INSTALL_DIR}/ktexteditor_insertfile ) + + +##### ktexteditor_insertfile #################### + +set( target ktexteditor_insertfile ) + +set( ${target}_SRCS + insertfileplugin.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK ktexteditor-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kate/plugins/isearch/CMakeLists.txt b/kate/plugins/isearch/CMakeLists.txt new file mode 100644 index 000000000..ad9441072 --- /dev/null +++ b/kate/plugins/isearch/CMakeLists.txt @@ -0,0 +1,50 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/interfaces +) + + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES ktexteditor_isearch.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES ktexteditor_isearchui.rc DESTINATION ${DATA_INSTALL_DIR}/ktexteditor_isearch ) + + +##### ktexteditor_isearch ####################### + +set( target ktexteditor_isearch ) + +set( ${target}_SRCS + ISearchPlugin.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK ktexteditor-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kate/plugins/kdatatool/CMakeLists.txt b/kate/plugins/kdatatool/CMakeLists.txt new file mode 100644 index 000000000..3eb03ddad --- /dev/null +++ b/kate/plugins/kdatatool/CMakeLists.txt @@ -0,0 +1,52 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/interfaces +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES ktexteditor_kdatatool.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES ktexteditor_kdatatoolui.rc DESTINATION ${DATA_INSTALL_DIR}/ktexteditor_kdatatool ) + + +##### ktexteditor_kdatatool ##################### + +set( target ktexteditor_kdatatool ) + +set( ${target}_SRCS + kate_kdatatool.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK ktexteditor-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kate/plugins/wordcompletion/CMakeLists.txt b/kate/plugins/wordcompletion/CMakeLists.txt new file mode 100644 index 000000000..11c0dd85a --- /dev/null +++ b/kate/plugins/wordcompletion/CMakeLists.txt @@ -0,0 +1,48 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/interfaces +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + +##### other data ################################ + +install( FILES ktexteditor_docwordcompletion.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES docwordcompletionui.rc DESTINATION ${DATA_INSTALL_DIR}/ktexteditor_docwordcompletion ) + + +##### ktexteditor_docwordcompletion ############# + +set( target ktexteditor_docwordcompletion ) + +set( ${target}_SRCS + docwordcompletion.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK ktexteditor-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kate/scripts/CMakeLists.txt b/kate/scripts/CMakeLists.txt new file mode 100644 index 000000000..235cedd48 --- /dev/null +++ b/kate/scripts/CMakeLists.txt @@ -0,0 +1,21 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +install( FILES + jstest.desktop jstest.js script-indent-c-newline.js + script-indent-c-char.js sort.js + DESTINATION ${DATA_INSTALL_DIR}/katepart/scripts ) + +install( FILES + script-indent-c-test.js script-indent-c1-test.lua + DESTINATION ${DATA_INSTALL_DIR}/katepart/scripts/indent ) diff --git a/kcert/CMakeLists.txt b/kcert/CMakeLists.txt new file mode 100644 index 000000000..05e11ea0b --- /dev/null +++ b/kcert/CMakeLists.txt @@ -0,0 +1,54 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_BINARY_DIR}/kio/kssl + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfile + ${CMAKE_SOURCE_DIR}/kio/kssl +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES kcertpart.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES kcertpart.rc DESTINATION ${DATA_INSTALL_DIR}/kcertpart ) + + +##### libkcertpart ############################## + +set( target libkcertpart ) + +set( ${target}_SRCS + kcertpart.cc +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kio-shared kparts-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kcmshell/CMakeLists.txt b/kcmshell/CMakeLists.txt new file mode 100644 index 000000000..e9940a0fd --- /dev/null +++ b/kcmshell/CMakeLists.txt @@ -0,0 +1,45 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kutils +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kcmshell ################################## + +set( target kcmshell ) + +set( ${target}_SRCS + main.cpp main.skel +) + +tde_add_kdeinit_executable( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kutils-shared + DEPENDENCIES dcopidl +) diff --git a/kconf_update/CMakeLists.txt b/kconf_update/CMakeLists.txt new file mode 100644 index 000000000..c6c5e462f --- /dev/null +++ b/kconf_update/CMakeLists.txt @@ -0,0 +1,38 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kconf_update ############################## + +set( target kconf_update ) + +set( ${target}_SRCS + kconf_update.cpp +) + +tde_add_kdeinit_executable( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdecore-shared +) diff --git a/kdecore/CMakeLists.txt b/kdecore/CMakeLists.txt new file mode 100644 index 000000000..1677f4f2a --- /dev/null +++ b/kdecore/CMakeLists.txt @@ -0,0 +1,206 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( malloc ) +add_subdirectory( network ) +add_subdirectory( kconfig_compiler ) + +if( WITH_LIBART ) + add_subdirectory( svgicons ) + set( KDESVGICONS kdesvgicons-static ) +endif( WITH_LIBART ) + +add_definitions( + ${TQT_CFLAGS_OTHER} + -include tqt.h +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/network + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/libltdl + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio/kio + ${LIBART_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + kconfig.h kconfigskeleton.h kconfigdata.h ksimpleconfig.h + kconfigdialogmanager.h kconfigbase.h kdesktopfile.h + kurl.h ksock.h kaboutdata.h kcmdlineargs.h kconfigbackend.h + kapp.h kapplication.h kuniqueapp.h kuniqueapplication.h + kcharsets.h kdeversion.h kpty.h kprocess.h kprocctrl.h + klocale.h kicontheme.h kiconloader.h kdebug.h kwinmodule.h + kwin.h krootprop.h kshortcut.h kkeynative.h kaccel.h + kglobalaccel.h kstdaccel.h kshortcutlist.h kcatalogue.h + kregexp.h kcompletion.h kstringhandler.h kstddirs.h + kstandarddirs.h kglobal.h kglobalsettings.h ksharedptr.h + kallocator.h kvmallocator.h kcrash.h krfcdate.h kinstance.h + kpalette.h kipc.h klibloader.h ktempfile.h ksavefile.h + krandomsequence.h knotifyclient.h kiconeffect.h kaudioplayer.h + kdcoppropertyproxy.h netwm.h kaccelmanager.h netwm_def.h + kpixmapprovider.h kunload.h kstaticdeleter.h kextsock.h + kextendedsocket.h ksockaddr.h kprocio.h kasyncio.h kbufferedio.h + kurldrag.h kmimesourcefactory.h kmdcodec.h ksocks.h ksycoca.h + ksycocaentry.h ksycocatype.h kxmessages.h kstartupinfo.h + klargefile.h kmultipledrag.h kgenericfactory.h kgenericfactory.tcc + ktypelist.h ksortablevaluelist.h kdebugclasses.h kclipboard.h + kcalendarsystem.h kcalendarsystemfactory.h kmacroexpander.h + kmanagerselection.h kmountpoint.h kuser.h klockfile.h + kidna.h ktempdir.h kshell.h fixx11h.h kxerrorhandler.h + kdelibs_export.h kde_file.h ktimezones.h + ${CMAKE_CURRENT_BINARY_DIR}/kdemacros.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + + +##### other data ################################ + +tde_install_empty_directory( ${SHARE_INSTALL_DIR}/locale/all_languages ) + +install( FILES 40.colors Web.colors Royal.colors Rainbow.colors + DESTINATION ${CONFIG_INSTALL_DIR}/colors ) + +install( FILES kdebug.areas kdebugrc language.codes + DESTINATION ${CONFIG_INSTALL_DIR} ) + +install( FILES kmdcodec_compat.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kio RENAME kmdcodec.h ) + +install( FILES eventsrc + DESTINATION ${DATA_INSTALL_DIR}/knotify ) + + +##### libkdecore ################################ + +set( target kdecore ) + +set( ${target}_SRCS + libintl.cpp kapplication.cpp kdebug.cpp netwm.cpp + kconfigbase.cpp kconfig.cpp ksimpleconfig.cpp kconfigbackend.cpp + kmanagerselection.cpp kdesktopfile.cpp kstandarddirs.cpp + ksock.cpp kpty.cpp kprocess.cpp kprocctrl.cpp klocale.cpp + krfcdate.cpp kiconeffect.cpp kicontheme.cpp kiconloader.cpp + kwin.cpp kwinmodule.cpp krootprop.cpp kcharsets.cpp + kckey.cpp kshortcut.cpp kkeynative_x11.cpp kkeyserver_x11.cpp + kaccelaction.cpp kshortcutmenu.cpp kaccelbase.cpp kaccel.cpp + kglobalaccel_x11.cpp kglobalaccel.cpp kstdaccel.cpp kshortcutlist.cpp + kcrash.cpp kurl.cpp kregexp.cpp kglobal.cpp kglobalsettings.cpp + kallocator.cpp kvmallocator.cpp kmimesourcefactory.cpp + kinstance.cpp kpalette.cpp kipc.cpp klibloader.cpp ktempfile.cpp + kuniqueapplication.cpp kaccelmanager.cpp ksavefile.cpp + krandomsequence.cpp kstringhandler.cpp kcompletion.cpp + kcmdlineargs.cpp kaboutdata.cpp kcompletionbase.cpp knotifyclient.cpp + kaudioplayer.cpp kdcoppropertyproxy.cpp ksockaddr.cpp + kextsock.cpp netsupp.cpp kprocio.cpp kbufferedio.cpp + kpixmapprovider.cpp kurldrag.cpp kmdcodec.cpp ksocks.cpp + fakes.c vsnprintf.c ksycoca.cpp ksycocadict.cpp ksycoca.skel + ksycocafactory.cpp kxmessages.cpp kstartupinfo.cpp + kcatalogue.cpp kasyncio.cpp kmultipledrag.cpp kstaticdeleter.cpp + kappdcopiface.cpp kappdcopiface.skel kclipboard.cpp + kcheckaccelerators.cpp kdeversion.cpp kdebugdcopiface.cpp + kdebugdcopiface.skel kcalendarsystem.cpp kcalendarsystemgregorian.cpp + kcalendarsystemhijri.cpp kcalendarsystemhebrew.cpp + kcalendarsystemfactory.cpp kmacroexpander.cpp kidna.cpp + ktempdir.cpp kshell.cpp kmountpoint.cpp kcalendarsystemjalali.cpp + kprotocolinfo_kdecore.cpp kprotocolinfofactory.cpp kxerrorhandler.cpp + kuser.cpp kconfigskeleton.cpp kconfigdialogmanager.cpp klockfile.cpp + kqiodevicegzip_p.cpp ktimezones.cpp +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 4.2.0 + LINK ltdlc-static kdecorenetwork-static DCOP-shared kdefx-shared ${KDESVGICONS} ${ZLIB_LIBRARIES} + DEPENDENCIES dcopidl dcopidl2cpp + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### kdefakes_nonpic ########################### + +set( target kdefakes_nonpic ) + +set( ${target}_SRCS + fakes.c vsnprintf.c +) + +tde_add_library( ${target} STATIC + SOURCES ${${target}_SRCS} + DESTINATION ${LIB_INSTALL_DIR} +) + +##### kdefakes_pic ############################## + +set( target kdefakes_pic ) + +set( ${target}_SRCS + fakes.c vsnprintf.c +) + +tde_add_library( ${target} STATIC_PIC + SOURCES ${${target}_SRCS} + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### libkdefakes ############################### + +set( target kdefakes ) + +set( ${target}_SRCS + fakes.c vsnprintf.c +) + +tde_add_library( ${target} SHARED + SOURCES ${${target}_SRCS} + VERSION 4.2.0 + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### kde-config ################################ + +# FIXME need a little research about these parameters +set( prefix ${CMAKE_INSTALL_PREFIX} ) +set( exec_prefix "\${prefix}" ) +set( libdir ${prefix}/${LIB_INSTALL_DIR} ) +set( incdir ${prefix}/${INCLUDE_INSTALL_DIR} ) +set( datadir ${prefix}/${DATA_INSTALL_DIR} ) +configure_file( kde-config.cpp.in kde-config.cpp @ONLY ) + +tde_add_executable( kde-config + SOURCES ${CMAKE_CURRENT_BINARY_DIR}/kde-config.cpp + LINK kdecore-shared + DESTINATION ${BIN_INSTALL_DIR} +) + +##### kgrantpty ################################# + +# FIXME there is something named KDE_USE_FPIE, I'm not sure what is this +#set_target_properties( kgrantpty PROPERTIES COMPILE_FLAGS ${KDE_USE_FPIE} ) +#set_target_properties( kgrantpty PROPERTIES LINK_FLAGS ${KDE_USE_FPIE} ) + +tde_add_executable(kgrantpty SETUID + SOURCES kgrantpty.c + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/kdecore/kconfig_compiler/CMakeLists.txt b/kdecore/kconfig_compiler/CMakeLists.txt new file mode 100644 index 000000000..314b381cc --- /dev/null +++ b/kdecore/kconfig_compiler/CMakeLists.txt @@ -0,0 +1,33 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kconfig_compiler ########################## + +tde_add_executable( kconfig_compiler + SOURCES kconfig_compiler.cpp + LINK kdecore-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/kdecore/kdemacros.h.cmake b/kdecore/kdemacros.h.cmake new file mode 100644 index 000000000..d0d8126d0 --- /dev/null +++ b/kdecore/kdemacros.h.cmake @@ -0,0 +1,220 @@ +/* This file is part of the KDE libraries + Copyright (c) 2002-2003 KDE Team + + 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. +*/ + +#ifndef _KDE_MACROS_H_ +#define _KDE_MACROS_H_ + +/* Set by configure */ +#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1 + +/** + * The KDE_NO_EXPORT macro marks the symbol of the given variable + * to be hidden. A hidden symbol is stripped during the linking step, + * so it can't be used from outside the resulting library, which is similar + * to static. However, static limits the visibility to the current + * compilation unit. hidden symbols can still be used in multiple compilation + * units. + * + * \code + * int KDE_NO_EXPORT foo; + * int KDE_EXPORT bar; + * \end + */ + +#ifdef __KDE_HAVE_GCC_VISIBILITY +#define KDE_NO_EXPORT __attribute__ ((visibility("hidden"))) +#define KDE_EXPORT __attribute__ ((visibility("default"))) +#elif defined(Q_WS_WIN) +#define KDE_NO_EXPORT +#define KDE_EXPORT __declspec(dllexport) +#else +#define KDE_NO_EXPORT +#define KDE_EXPORT +#endif + +/** + * KDE_Q_EXPORT_PLUGIN is a workaround for Qt not being able to + * cope with symbol visibility. + */ +#define KDE_Q_EXPORT_PLUGIN(PLUGIN) \ + Q_EXTERN_C KDE_EXPORT const char* qt_ucm_query_verification_data(); \ + Q_EXTERN_C KDE_EXPORT QUnknownInterface* ucm_instantiate(); \ + Q_EXPORT_PLUGIN(PLUGIN) + +/** + * The KDE_PACKED can be used to hint the compiler that a particular + * structure or class should not contain unnecessary paddings. + */ + +#ifdef __GNUC__ +#define KDE_PACKED __attribute__((__packed__)) +#else +#define KDE_PACKED +#endif + +/** + * The KDE_DEPRECATED macro can be used to trigger compile-time warnings + * with newer compilers when deprecated functions are used. + * + * For non-inline functions, the macro gets inserted at the very end of the + * function declaration, right before the semicolon: + * + * \code + * DeprecatedConstructor() KDE_DEPRECATED; + * void deprecatedFunctionA() KDE_DEPRECATED; + * int deprecatedFunctionB() const KDE_DEPRECATED; + * \endcode + * + * Functions which are implemented inline are handled differently: for them, + * the KDE_DEPRECATED macro is inserted at the front, right before the return + * type, but after "static" or "virtual": + * + * \code + * KDE_DEPRECATED void deprecatedInlineFunctionA() { .. } + * virtual KDE_DEPRECATED int deprecatedInlineFunctionB() { .. } + * static KDE_DEPRECATED bool deprecatedInlineFunctionC() { .. } + * \end + * + * You can also mark whole structs or classes as deprecated, by inserting the + * KDE_DEPRECATED macro after the struct/class keyword, but before the + * name of the struct/class: + * + * \code + * class KDE_DEPRECATED DeprecatedClass { }; + * struct KDE_DEPRECATED DeprecatedStruct { }; + * \endcode + * + * \note + * It does not make much sense to use the KDE_DEPRECATED keyword for a Qt signal; + * this is because usually get called by the class which they belong to, + * and one'd assume that a class author doesn't use deprecated methods of his + * own class. The only exception to this are signals which are connected to + * other signals; they get invoked from moc-generated code. In any case, + * printing a warning message in either case is not useful. + * For slots, it can make sense (since slots can be invoked directly) but be + * aware that if the slots get triggered by a signal, the will get called from + * moc code as well and thus the warnings are useless. + * + * \par + * Also note that it is not possible to use KDE_DEPRECATED for classes which + * use the k_dcop keyword (to indicate a DCOP interface declaration); this is + * because the dcopidl program would choke on the unexpected declaration + * syntax. + */ + +#ifndef KDE_DEPRECATED +#if __GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MINOR__ - 0 >= 2) + /* gcc >= 3.2 */ +# define KDE_DEPRECATED __attribute__ ((deprecated)) +#elif defined(_MSC_VER) && (_MSC_VER >= 1300) + /* msvc >= 7 */ +# define KDE_DEPRECATED __declspec(deprecated) +#else +# define KDE_DEPRECATED +#endif +#endif + +/** + * The KDE_ISLIKELY macro tags a boolean expression as likely to evaluate to + * 'true'. When used in an if ( ) statement, it gives a hint to the compiler + * that the following codeblock is likely to get executed. Providing this + * information helps the compiler to optimize the code for better performance. + * Using the macro has an insignificant code size or runtime memory footprint impact. + * The code semantics is not affected. + * + * \note + * Providing wrong information ( like marking a condition that almost never + * passes as 'likely' ) will cause a significant runtime slowdown. Therefore only + * use it for cases where you can be sure about the odds of the expression to pass + * in all cases ( independent from e.g. user configuration ). + * + * \par + * The KDE_ISUNLIKELY macro tags an expression as unlikely evaluating to 'true'. + * + * \note + * Do NOT use ( !KDE_ISLIKELY(foo) ) as an replacement for KDE_ISUNLIKELY ! + * + * \code + * if ( KDE_ISUNLIKELY( testsomething() ) ) + * abort(); // assume its unlikely that the application aborts + * \endcode + */ +#if __GNUC__ - 0 >= 3 +# define KDE_ISLIKELY( x ) __builtin_expect(!!(x),1) +# define KDE_ISUNLIKELY( x ) __builtin_expect(!!(x),0) +#else +# define KDE_ISLIKELY( x ) ( x ) +# define KDE_ISUNLIKELY( x ) ( x ) +#endif + +/** + * This macro, and it's friends going up to 10 reserve a fixed number of virtual + * functions in a class. Because adding virtual functions to a class changes the + * size of the vtable, adding virtual functions to a class breaks binary + * compatibility. However, by using this macro, and decrementing it as new + * virtual methods are added, binary compatibility can still be preserved. + * + * \note The added functions must be added to the header at the same location + * as the macro; changing the order of virtual functions in a header is also + * binary incompatible as it breaks the layout of the vtable. + */ + +#define RESERVE_VIRTUAL_1 \ + virtual void reservedVirtual1() {} +#define RESERVE_VIRTUAL_2 \ + virtual void reservedVirtual2() {} \ + RESERVE_VIRTUAL_1 +#define RESERVE_VIRTUAL_3 \ + virtual void reservedVirtual3() {} \ + RESERVE_VIRTUAL_2 +#define RESERVE_VIRTUAL_4 \ + virtual void reservedVirtual4() {} \ + RESERVE_VIRTUAL_3 +#define RESERVE_VIRTUAL_5 \ + virtual void reservedVirtual5() {} \ + RESERVE_VIRTUAL_4 +#define RESERVE_VIRTUAL_6 \ + virtual void reservedVirtual6() {} \ + RESERVE_VIRTUAL_5 +#define RESERVE_VIRTUAL_7 \ + virtual void reservedVirtual7() {} \ + RESERVE_VIRTUAL_6 +#define RESERVE_VIRTUAL_8 \ + virtual void reservedVirtual8() {} \ + RESERVE_VIRTUAL_7 +#define RESERVE_VIRTUAL_9 \ + virtual void reservedVirtual9() {} \ + RESERVE_VIRTUAL_8 +#define RESERVE_VIRTUAL_10 \ + virtual void reservedVirtual10() {} \ + RESERVE_VIRTUAL_9 + +/** + * The KDE_WEAK_SYMBOL macro can be used to tell the compiler that + * a particular function should be a weak symbol (that e.g. may be overriden + * in another library, -Bdirect will not bind this symbol directly) + */ + +#ifdef __GNUC__ +#define KDE_WEAK_SYMBOL __attribute__((__weak__)) +#else +#define KDE_WEAK_SYMBOL +#endif + +#endif /* _KDE_MACROS_H_ */ diff --git a/kdecore/malloc/CMakeLists.txt b/kdecore/malloc/CMakeLists.txt new file mode 100644 index 000000000..400320c88 --- /dev/null +++ b/kdecore/malloc/CMakeLists.txt @@ -0,0 +1,18 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_BINARY_DIR} +) + +tde_add_library( klmalloc STATIC_PIC + SOURCES malloc.c +) diff --git a/kdecore/network/CMakeLists.txt b/kdecore/network/CMakeLists.txt new file mode 100644 index 000000000..2f1a19b58 --- /dev/null +++ b/kdecore/network/CMakeLists.txt @@ -0,0 +1,58 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_BINARY_DIR}/kdecore +) + + +##### headers ################################### + +install( FILES + kresolver.h kreverseresolver.h ksocketaddress.h + ksocketbase.h ksocketdevice.h kclientsocketbase.h + kstreamsocket.h kserversocket.h kdatagramsocket.h + kmulticastsocketdevice.h kmulticastsocket.h + knetworkinterface.h khttpproxysocketdevice.h + ksockssocketdevice.h kbufferedsocket.h kiobuffer.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + + +##### other files ############################### + +install( FILES ipv6blacklist DESTINATION ${CONFIG_INSTALL_DIR} ) + + +##### kdecorenetwork ############################ + +set( target kdecorenetwork ) + +set( ${target}_SRCS + kresolver.cpp kresolvermanager.cpp kresolverworkerbase.cpp + ksocketaddress.cpp kresolverstandardworkers.cpp + kreverseresolver.cpp ksocketdevice.cpp ksocketbase.cpp + kclientsocketbase.cpp kstreamsocket.cpp kserversocket.cpp + kdatagramsocket.cpp khttpproxysocketdevice.cpp + ksockssocketdevice.cpp kbufferedsocket.cpp ksocketbuffer.cpp + ksrvresolverworker.cpp +) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} +) diff --git a/kdecore/svgicons/CMakeLists.txt b/kdecore/svgicons/CMakeLists.txt new file mode 100644 index 000000000..1b1d43659 --- /dev/null +++ b/kdecore/svgicons/CMakeLists.txt @@ -0,0 +1,42 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore + ${LIBART_INCLUDE_DIRS} +) + + +##### headers ################################### + +install( FILES + ksvgiconengine.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + + +##### kdesvgicons ############################### + +set( target kdesvgicons ) + +set( ${target}_SRCS + ksvgiconengine.cpp ksvgiconpainter.cpp +) + +tde_add_library( ${target} STATIC_PIC + SOURCES ${${target}_SRCS} + LINK ${LIBART_LIBRARIES} +) diff --git a/kded/CMakeLists.txt b/kded/CMakeLists.txt new file mode 100644 index 000000000..e9e1fd3da --- /dev/null +++ b/kded/CMakeLists.txt @@ -0,0 +1,119 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES kdedmodule.h DESTINATION ${INCLUDE_INSTALL_DIR} ) + + +##### other data ################################ + +install( FILES kdedmodule.desktop DESTINATION ${SHARE_INSTALL_DIR}/servicetypes ) +install( FILES applications.menu DESTINATION ${XDG_MENUDIR} ) +install( FILES kded.upd DESTINATION ${DATA_INSTALL_DIR}/kconf_update ) + + +#### kded ####################################### + +set( target kded ) + +set( ${target}_SRCS + kded.cpp kdedmodule.cpp +) + +tde_add_kdeinit_executable( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kio-shared +) + + +#### kbuildsycoca ############################### + +set( target kbuildsycoca ) + +set( ${target}_SRCS + kbuildsycoca.cpp kbuildservicetypefactory.cpp + kbuildservicefactory.cpp kbuildservicegroupfactory.cpp + kbuildimageiofactory.cpp kbuildprotocolinfofactory.cpp + kctimefactory.cpp vfolder_menu.cpp +) + +tde_add_kdeinit_executable( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kio-shared +) + + +#### kdontchangethehostname ##################### + +set( target kdontchangethehostname ) + +set( ${target}_SRCS + khostname.cpp +) + +tde_add_executable( ${target} + SOURCES ${${target}_SRCS} + LINK kdecore-shared + DESTINATION ${BIN_INSTALL_DIR} +) + + +#### kde-menu ################################### + +set( target kde-menu ) + +set( ${target}_SRCS + kde-menu.cpp +) + +tde_add_executable( ${target} + SOURCES ${${target}_SRCS} + LINK kio-shared + DESTINATION ${BIN_INSTALL_DIR} +) + + +#### kmimelist ################################## + +set( target kmimelist ) + +set( ${target}_SRCS + kmimelist.cpp +) + +tde_add_executable( ${target} + SOURCES ${${target}_SRCS} + LINK kio-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/kdefx/CMakeLists.txt b/kdefx/CMakeLists.txt new file mode 100644 index 000000000..7e89cd047 --- /dev/null +++ b/kdefx/CMakeLists.txt @@ -0,0 +1,52 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + kpixmap.h kpixmapsplitter.h kpixmapeffect.h + kimageeffect.h kdrawutil.h kstyle.h kcpuinfo.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + + +##### libkdefx ################################## + +set( target kdefx ) + +set( ${target}_SRCS + kpixmap.cpp kpixmapsplitter.cpp kpixmapeffect.cpp + kimageeffect.cpp kdrawutil.cpp kstyle.cpp kcpuinfo.cpp +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 4.2.0 + LINK ${TQT_LIBRARIES} + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/kdeprint/CMakeLists.txt b/kdeprint/CMakeLists.txt new file mode 100644 index 000000000..d4c2ed26d --- /dev/null +++ b/kdeprint/CMakeLists.txt @@ -0,0 +1,129 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( management ) +add_subdirectory( lpdunix ) +if( CUPS_FOUND ) + add_subdirectory( cups ) +endif( CUPS_FOUND ) +add_subdirectory( lpr ) +add_subdirectory( rlpr ) +add_subdirectory( ext ) +add_subdirectory( filters ) +add_subdirectory( pics ) +add_subdirectory( tools ) + + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfile + ${CMAKE_SOURCE_DIR}/kded +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + kprinter.h kprintaction.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + +install( FILES + kprintdialogpage.h kpreloadobject.h kmmanager.h + kmprinter.h kmobject.h kprintdialog.h driver.h + kmjobmanager.h kmjob.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kdeprint ) + + +##### other data ################################ + +install( FILES kprintpreviewui.rc DESTINATION ${CONFIG_INSTALL_DIR}/ui ) +install( FILES testprint.ps specials.desktop DESTINATION ${DATA_INSTALL_DIR}/kdeprint ) +install( FILES kdeprintd.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded ) +install( FILES kdeprintrc DESTINATION ${CONFIG_INSTALL_DIR} ) +install( FILES kdeprintrc.upd DESTINATION ${DATA_INSTALL_DIR}/kconf_update ) + + +##### driverparse ############################### + +set( target driverparse ) + +tde_add_library( ${target} STATIC_PIC + SOURCES driverparse.c +) + + +##### kded_kdeprintd ############################ + +set( target kded_kdeprintd ) + +set( ${target}_SRCS + kdeprintd.cpp kprintprocess.cpp kdeprintd.skel +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kio-shared kdeinit_kded-shared + DEPENDENCIES dcopidl dcopidl2cpp + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +#### kdeprint ################################### + +set( target kdeprint ) + +set( ${target}_SRCS + kmfactory.cpp kmjob.cpp kmjobmanager.cpp kmmanager.cpp + kmprinter.cpp kmuimanager.cpp kmvirtualmanager.cpp + driver.cpp driveritem.cpp droptionview.cpp driverview.cpp + kmdbentry.cpp kprintpreview.cpp kprintdialog.cpp + kprinter.cpp kprinterimpl.cpp kprintdialogpage.cpp + kpcopiespage.cpp kpdriverpage.cpp kprinterpropertydialog.cpp + kpgeneralpage.cpp kpqtpage.cpp kmthreadjob.cpp + kpipeprocess.cpp kpfilterpage.cpp kmspecialmanager.cpp + kdeprintcheck.cpp plugincombobox.cpp kpreloadobject.cpp + kfilelist.cpp kprintaction.cpp kpfileselectpage.cpp + treecombobox.cpp kxmlcommand.cpp util.cpp printerfilter.cpp + marginpreview.cpp marginvaluewidget.cpp marginwidget.cpp + kpmarginpage.cpp messagewindow.cpp posterpreview.cpp + kpposterpage.cpp foomatic2loader.cpp fooparser.cpp + fooscanner.cpp ppdparser.cpp ppdscanner.cpp ppdloader.cpp + kmfactory.skel +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 4.2.0 + LINK kio-shared + DEPENDENCIES dcopidl dcopidl2cpp + DESTINATION ${LIB_INSTALL_DIR} +) + +set_target_properties( ${target}-shared PROPERTIES COMPILE_FLAGS -D_KDEPRINT_COMPILE ) diff --git a/kdeprint/cups/CMakeLists.txt b/kdeprint/cups/CMakeLists.txt new file mode 100644 index 000000000..195b396d6 --- /dev/null +++ b/kdeprint/cups/CMakeLists.txt @@ -0,0 +1,98 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( cupsdconf2 ) + +add_definitions( + ${TQT_CFLAGS_OTHER} + -D_KDEPRINT_COMPILE +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore/network + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfile + ${CMAKE_SOURCE_DIR}/kdeprint + ${CMAKE_SOURCE_DIR}/kdeprint/management +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES cups.print DESTINATION ${DATA_INSTALL_DIR}/kdeprint/plugins ) +install( FILES preview.png preview-mini.png DESTINATION ${DATA_INSTALL_DIR}/kdeprint ) + + +#### kdeprint_cups ############################## + +set( target kdeprint_cups ) + +set( ${target}_SRCS + cupsinfos.cpp ipprequest.cpp kmcupsfactory.cpp + kmcupsjobmanager.cpp kmcupsmanager.cpp kmcupsuimanager.cpp + kmpropbanners.cpp kmwbanners.cpp kmwipp.cpp kmwippselect.cpp + kcupsprinterimpl.cpp kmcupsconfigwidget.cpp kmconfigcups.cpp + kmconfigcupsdir.cpp kmwippprinter.cpp kmwfax.cpp kmwquota.cpp + kmpropquota.cpp kmwusers.cpp kmpropusers.cpp kpschedulepage.cpp + image.cpp imagepreview.cpp imageposition.cpp kpimagepage.cpp + kptextpage.cpp kphpgl2page.cpp cupsaddsmb2.cpp + kmwother.cpp ippreportdlg.cpp kptagspage.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdeprint_management-shared ${CUPS_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +#### make_driver_db_cups ######################## + +set( target make_driver_db_cups ) + +set( ${target}_SRCS + make_driver_db_cups.c +) + +tde_add_executable( ${target} + SOURCES ${${target}_SRCS} + LINK driverparse-static kdefakes-shared ${ZLIB_LIBRARIES} ${DL_LIBRARIES} + DESTINATION ${BIN_INSTALL_DIR} +) + + +#### cupsdoprint ################################ + +set( target cupsdoprint ) + +set( ${target}_SRCS + cupsdoprint.c +) + +tde_add_executable( ${target} + SOURCES ${${target}_SRCS} + LINK kdefakes-shared ${CUPS_LIBRARIES} + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/kdeprint/cups/cupsdconf2/CMakeLists.txt b/kdeprint/cups/cupsdconf2/CMakeLists.txt new file mode 100644 index 000000000..19e8cbe46 --- /dev/null +++ b/kdeprint/cups/cupsdconf2/CMakeLists.txt @@ -0,0 +1,58 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfile +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES + kde_logo.png cups_logo.png cupsd.conf.template + DESTINATION ${DATA_INSTALL_DIR}/kdeprint ) + + +#### cupsdconf ################################## + +set( target cupsdconf ) + +set( ${target}_SRCS + cupsdconf.cpp cupsddialog.cpp cupsdpage.cpp cupsdcomment.cpp + cupsdsplash.cpp cupsdserverpage.cpp cupsdlogpage.cpp + cupsdjobspage.cpp cupsdfilterpage.cpp qdirlineedit.cpp + cupsddirpage.cpp portdialog.cpp cupsdnetworkpage.cpp + editlist.cpp cupsdbrowsingpage.cpp browsedialog.cpp + cupsdsecuritypage.cpp locationdialog.cpp addressdialog.cpp + cups-util.c qdirmultilineedit.cpp sizewidget.cpp main.cpp +) + +tde_add_kdeinit_executable( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kio-shared ${CUPS_LIBRARIES} +) diff --git a/kdeprint/ext/CMakeLists.txt b/kdeprint/ext/CMakeLists.txt new file mode 100644 index 000000000..fbc633e55 --- /dev/null +++ b/kdeprint/ext/CMakeLists.txt @@ -0,0 +1,51 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} + -D_KDEPRINT_COMPILE +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kdeprint +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES ext.print DESTINATION ${DATA_INSTALL_DIR}/kdeprint/plugins ) + + +##### kdeprint_ext ############################## + +set( target kdeprint_ext ) + +set( ${target}_SRCS + kmextfactory.cpp kmextmanager.cpp kextprinterimpl.cpp + kmextuimanager.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdeprint-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kdeprint/filters/CMakeLists.txt b/kdeprint/filters/CMakeLists.txt new file mode 100644 index 000000000..a19bb1f93 --- /dev/null +++ b/kdeprint/filters/CMakeLists.txt @@ -0,0 +1,23 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +install( FILES + enscript.desktop enscript.xml psnup.desktop psnup.xml + imagetops.desktop imagetops.xml pdfwrite.desktop + pdfwrite.xml psbook1.desktop psbook1.xml psbook2.desktop + psbook2.xml psbook.desktop psbook.xml psselect.desktop + psselect.xml ps2pdf.desktop ps2pdf.xml pdf2ps.desktop + pdf2ps.xml poster.desktop poster.xml + DESTINATION ${DATA_INSTALL_DIR}/kdeprint/filters ) + +install( PROGRAMS imagetops DESTINATION ${BIN_INSTALL_DIR} ) diff --git a/kdeprint/lpdunix/CMakeLists.txt b/kdeprint/lpdunix/CMakeLists.txt new file mode 100644 index 000000000..0dfee8ebf --- /dev/null +++ b/kdeprint/lpdunix/CMakeLists.txt @@ -0,0 +1,53 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} + -D_KDEPRINT_COMPILE +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kdeprint +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES lpdunix.print DESTINATION ${DATA_INSTALL_DIR}/kdeprint/plugins ) + + +#### kdeprint_lpdunix ########################### + +set( target kdeprint_lpdunix ) + +set( ${target}_SRCS + kmlpdunixfactory.cpp kmlpdunixmanager.cpp + klpdunixprinterimpl.cpp kmlpdunixuimanager.cpp +) + +tde_add_kpart( ${target} + SOURCES ${${target}_SRCS} + LINK kdeprint-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kdeprint/lpr/CMakeLists.txt b/kdeprint/lpr/CMakeLists.txt new file mode 100644 index 000000000..7af784249 --- /dev/null +++ b/kdeprint/lpr/CMakeLists.txt @@ -0,0 +1,81 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} + -D_KDEPRINT_COMPILE +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kdeprint + ${CMAKE_SOURCE_DIR}/kdeprint/management +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + printcapentry.h lprhandler.h lprsettings.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kdeprint/lpr ) + + +##### other data ################################ + +install( FILES lpr.print DESTINATION ${DATA_INSTALL_DIR}/kdeprint/plugins ) +install( FILES apsdriver1 apsdriver2 lprngtooldriver1 DESTINATION ${DATA_INSTALL_DIR}/kdeprint ) + + +#### kdeprint_lpr ############################### + +set( target kdeprint_lpr ) + +set( ${target}_SRCS + printcapreader.cpp lprhandler.cpp matichandler.cpp + klprfactory.cpp kmlprmanager.cpp kmlpruimanager.cpp + lpchelper.cpp lpqhelper.cpp kmlprjobmanager.cpp + matichelper.cpp klprprinterimpl.cpp printcapentry.cpp + lprsettings.cpp kmconfiglpr.cpp apshandler.cpp + lprngtoolhandler.cpp editentrydialog.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdeprint_management-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +#### make_driver_db_lpr ######################### + +set( target make_driver_db_lpr ) + +set( ${target}_SRCS + make_driver_db_lpr.c +) + +tde_add_executable( ${target} + SOURCES ${${target}_SRCS} + LINK driverparse-static kdefakes-shared ${DL_LIBRARIES} + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/kdeprint/management/CMakeLists.txt b/kdeprint/management/CMakeLists.txt new file mode 100644 index 000000000..a3d578d3d --- /dev/null +++ b/kdeprint/management/CMakeLists.txt @@ -0,0 +1,112 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} + -D_KDEPRINT_COMPILE +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfile + ${CMAKE_SOURCE_DIR}/kdeprint +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + kmmainview.h kmjobviewer.h kmprinterpage.h + kiconselectaction.h kmtimer.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kdeprint ) + + +##### other data ################################ + +install( FILES + tileup.png tiledown.png side.png + DESTINATION ${DATA_INSTALL_DIR}/kdeprint ) + + +#### kdeprint_management ######################## + +set( target kdeprint_management ) + +set( ${target}_SRCS + kmdbcreator.cpp kmdriverdb.cpp kmdriverdbwidget.cpp + kmiconview.cpp kminfopage.cpp kmmainview.cpp kmpages.cpp + kmprinterview.cpp kmjobviewer.cpp jobitem.cpp kmpropwidget.cpp + kmpropcontainer.cpp kmpropertypage.cpp kmpropgeneral.cpp + cjanuswidget.cpp kmpropmembers.cpp kmpropbackend.cpp + kmpropdriver.cpp kmlistview.cpp kminstancepage.cpp + kmtimer.cpp kmwizard.cpp kmwizardpage.cpp kmwinfopage.cpp + kmwpassword.cpp kmwsocketutil.cpp kmwbackend.cpp + kmwsocket.cpp kmwdriver.cpp kmwdriverselect.cpp + kmwdrivertest.cpp kmwinfobase.cpp kmwname.cpp kmwend.cpp + kmwclass.cpp kmwlpd.cpp kmwfile.cpp kmdriverdialog.cpp + kmwsmb.cpp smbview.cpp kmconfigdialog.cpp kmconfigpage.cpp + kmconfiggeneral.cpp kmspecialprinterdlg.cpp kmwlocal.cpp + kiconselectaction.cpp kmconfigpreview.cpp sidepixmap.cpp + pluginaction.cpp kxmlcommanddlg.cpp kxmlcommandselector.cpp + kmconfigcommand.cpp kmconfigfilter.cpp kmconfigfonts.cpp + kmconfigjobs.cpp networkscanner.cpp +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 4.2.0 + LINK kdeprint-shared + DESTINATION ${LIB_INSTALL_DIR} +) + + +#### libkdeprint_management_module ############## + +set( target libkdeprint_management_module ) + +set( ${target}_SRCS + kdeprint_management_module.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdeprint_management-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +#### kaddprinterwizard ########################## + +set( target kaddprinterwizard ) + +set( ${target}_SRCS + kaddprinterwizard.cpp +) + +tde_add_kdeinit_executable( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdeprint-shared +) diff --git a/kdeprint/pics/CMakeLists.txt b/kdeprint/pics/CMakeLists.txt new file mode 100644 index 000000000..ed6478325 --- /dev/null +++ b/kdeprint/pics/CMakeLists.txt @@ -0,0 +1,41 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +install( FILES + kdeprint_collate.png kdeprint_collate_reverse.png + kdeprint_color.png kdeprint_duplex_none.png + kdeprint_duplex_long.png kdeprint_duplex_short.png + kdeprint_grayscale.png kdeprint_landscape.png + kdeprint_nup1.png kdeprint_nup2.png kdeprint_nup4.png + kdeprint_portrait.png kdeprint_revlandscape.png + kdeprint_revportrait.png kdeprint_uncollate.png + kdeprint_uncollate_reverse.png kdeprint_nupother.png + kdeprint_prettyprint.png + DESTINATION ${DATA_INSTALL_DIR}/kdeprint/pics ) + +tde_install_icons( + kdeprint_job kdeprint_job_error kdeprint_job_process + kdeprint_job_stopped kdeprint_printer kdeprint_printer_class + kdeprint_printer_class_stopped kdeprint_printer_defect + kdeprint_printer_remote kdeprint_printer_remote_stopped + kdeprint_printer_stopped kdeprint_printer_remote_process + kdeprint_printer_process kdeprint_printer_class_process + kdeprint_computer kdeprint_printer_infos history + kdeprint_printer_users filterstop kdeprint_job_completed + kdeprint_job_cancelled package_utilities kdeprint_enableprinter + kdeprint_stopprinter kdeprint_addprinter kdeprint_addpseudo + kdeprint_configmgr kdeprint_configsrv kdeprint_defaulthard + kdeprint_defaultsoft kdeprint_report kdeprint_testprinter + kdeprint_uploadsmb kdeprint_restartsrv kdeprint_inklevel + kdeprint_printstate kdeprint_queuestate + DESTINATION ${DATA_INSTALL_DIR}/kdeprint/icons ) diff --git a/kdeprint/rlpr/CMakeLists.txt b/kdeprint/rlpr/CMakeLists.txt new file mode 100644 index 000000000..683bbdb0e --- /dev/null +++ b/kdeprint/rlpr/CMakeLists.txt @@ -0,0 +1,55 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} + -D_KDEPRINT_COMPILE +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kdeprint + ${CMAKE_SOURCE_DIR}/kdeprint/management +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES rlpr.print DESTINATION ${DATA_INSTALL_DIR}/kdeprint/plugins ) + + +##### kdeprint_rlpr ############################# + +set( target kdeprint_rlpr ) + +set( ${target}_SRCS + kmrlprfactory.cpp kmrlprmanager.cpp krlprprinterimpl.cpp + kmrlpruimanager.cpp kmwrlpr.cpp kmproprlpr.cpp + kmproxywidget.cpp kmconfigproxy.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdeprint_management-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kdeprint/tools/CMakeLists.txt b/kdeprint/tools/CMakeLists.txt new file mode 100644 index 000000000..4c2682eee --- /dev/null +++ b/kdeprint/tools/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( escputil ) diff --git a/kdeprint/tools/escputil/CMakeLists.txt b/kdeprint/tools/escputil/CMakeLists.txt new file mode 100644 index 000000000..e38a04210 --- /dev/null +++ b/kdeprint/tools/escputil/CMakeLists.txt @@ -0,0 +1,46 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES escputil.desktop DESTINATION ${DATA_INSTALL_DIR}/kdeprint/tools ) + + +##### kdeprint_tool_escputil #################### + +set( target kdeprint_tool_escputil ) + +set( ${target}_SRCS + escpwidget.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdeui-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kdesu/CMakeLists.txt b/kdesu/CMakeLists.txt new file mode 100644 index 000000000..eff5c36e3 --- /dev/null +++ b/kdesu/CMakeLists.txt @@ -0,0 +1,61 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + defaults.h client.h process.h kdesu_pty.h + kcookie.h su.h ssh.h stub.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kdesu ) + + +##### libkdesu ################################## + +set( target kdesu ) + +set( ${target}_SRCS + client.cpp process.cpp kcookie.cpp + su.cpp ssh.cpp stub.cpp kdesu_pty.cpp +) + +tde_add_library( ${target} SHARED + SOURCES ${${target}_SRCS} + VERSION 4.2.0 + LINK kdecore-shared + DESTINATION ${LIB_INSTALL_DIR} +) + +tde_install_symlink( kdesu_pty.h ${INCLUDE_INSTALL_DIR}/kdesu/pty.h ) + + +##### kdesu_stub ################################ + +tde_add_executable( kdesu_stub + SOURCES kdesu_stub.c + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/kdeui/CMakeLists.txt b/kdeui/CMakeLists.txt new file mode 100644 index 000000000..3a4c8e8dc --- /dev/null +++ b/kdeui/CMakeLists.txt @@ -0,0 +1,172 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +if( BUILD_KDEUI_TESTS ) + add_subdirectory( tests ) +endif( BUILD_KDEUI_TESTS ) + +add_subdirectory( about ) +add_subdirectory( kdetrayproxy ) + +add_definitions( + ${TQT_CFLAGS_OTHER} + -include tqt.h +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfile + ${FREETYPE_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + kprogressbox.h kprogress.h kcolordlg.h + kcolordialog.h kselect.h + kdatepik.h kdatepicker.h kdatetbl.h kfontdialog.h kpopupmenu.h + kfontrequester.h ktabctl.h kstatusbar.h + kmainwindow.h kmainwindowiface.h ktoolbar.h kmenubar.h + knuminput.h kseparator.h klineedit.h + krestrictedline.h kcolorbutton.h kcolorbtn.h + ksystemtray.h kdockwindow.h kbuttonbox.h + keditcl.h kled.h keditlistbox.h + kwizard.h kkeydialog.h kkeybutton.h + kurllabel.h kruler.h kcursor.h + klineeditdlg.h kinputdialog.h kactivelabel.h + kcharselect.h kcolordrag.h qxembed.h + knumvalidator.h kdialog.h kdialogbase.h + kjanuswidget.h kaboutdialog.h + kauthicon.h kmessagebox.h ksharedpixmap.h + kdualcolorbtn.h kdualcolorbutton.h ktoolbarbutton.h + ktoolbarradiogroup.h ktextbrowser.h + kaction.h kactioncollection.h kactionclasses.h khelpmenu.h kswitchlanguagedialog.h + kcmodule.h kcmenumngr.h kpanelmenu.h kpanelappmenu.h + kactionshortcutlist.h kstdaction.h kcombobox.h + kiconview.h klistview.h klistbox.h kbugreport.h kpassdlg.h + kxmlguiclient.h kxmlgui.h kxmlguibuilder.h kxmlguifactory.h + kpixmapio.h kwordwrap.h + kedittoolbar.h kdockwidget.h kanimwidget.h + krootpixmap.h kaboutkde.h kaboutapplication.h + kpanelapplet.h kpushbutton.h kdcopactionproxy.h kcolorcombo.h + kpanelextension.h kcompletionbox.h ksqueezedtextlabel.h + kcommand.h kwindowlistmenu.h kfontcombo.h kaccelgen.h ktip.h + kdatewidget.h karrowbutton.h kguiitem.h kstdguiitem.h + kstringvalidator.h kwindowinfo.h + ktextedit.h kpassivepopup.h + kdatetimewidget.h ktimewidget.h ktimezonewidget.h kscrollview.h + kspell.h ksconfig.h kspelldlg.h ksyntaxhighlighter.h + ktabbar.h ktabwidget.h ksplashscreen.h kconfigdialog.h + kactionselector.h klanguagebutton.h klistviewsearchline.h + kpixmapregionselectorwidget.h kpixmapregionselectordialog.h + kiconviewsearchline.h ktoolbarlabelaction.h kshortcutdialog.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + + +##### other data ################################ + +install( FILES + aboutkde.png ktip-bulb.png ktip-background.png + DESTINATION ${DATA_INSTALL_DIR}/kdeui/pics ) + +install( FILES + ui_standards.rc + DESTINATION ${CONFIG_INSTALL_DIR}/ui ) + +install( PROGRAMS + preparetips + DESTINATION ${BIN_INSTALL_DIR} ) + + +##### libkdeui ################################## + +set( target kdeui ) + +set( ${target}_SRCS + qxembed.cpp ksharedpixmap.cpp kpixmapio.cpp + kpopupmenu.cpp ktoolbar.cpp kaction.cpp kstdaction.cpp + kactioncollection.cpp kactionclasses.cpp + kurllabel.cpp kmenubar.cpp kinputdialog.cpp + knuminput.cpp klineedit.cpp klistview.cpp kprogress.cpp + kprogressbox.cpp kcolordialog.cpp kselect.cpp kdatepicker.cpp + kdatetbl.cpp kfontrequester.cpp kfontdialog.cpp ktabctl.cpp + kstatusbar.cpp kmainwindow.cpp + keditlistbox.cpp kscrollview.cpp + kseparator.cpp krestrictedline.cpp + kcolorbutton.cpp ksystemtray.cpp + kbuttonbox.cpp keditcl1.cpp keditcl2.cpp kled.cpp + kshortcutdialog_simple.ui kshortcutdialog_advanced.ui + kshortcutdialog.cpp kkeybutton.cpp kkeydialog.cpp + kruler.cpp kcursor.cpp klineeditdlg.cpp + kcharselect.cpp kcolordrag.cpp + knumvalidator.cpp kdialog.cpp kdialogbase.cpp + kjanuswidget.cpp kaboutdialog.cpp + kauthicon.cpp kmessagebox.cpp kdualcolorbutton.cpp + ktoolbarradiogroup.cpp ktoolbarbutton.cpp + ktextbrowser.cpp khelpmenu.cpp kswitchlanguagedialog.cpp + kcmenumngr.cpp kpanelmenu.cpp + kiconview.cpp klistbox.cpp kwordwrap.cpp kbugreport.cpp + kcombobox.cpp kpassdlg.cpp kxmlguiclient.cpp kxmlguifactory.cpp + kxmlguifactory_p.cpp kxmlguibuilder.cpp kedittoolbar.cpp + kpanelappmenu.cpp kdockwidget.cpp kdockwidget_private.cpp + kanimwidget.cpp krootpixmap.cpp kaboutkde.cpp + kaboutapplication.cpp kpanelapplet.cpp kdcopactionproxy.cpp + kcolorcombo.cpp kpushbutton.cpp kpanelextension.cpp + kcompletionbox.cpp ksqueezedtextlabel.cpp kcmodule.cpp + kcommand.cpp kwindowlistmenu.cpp kfontcombo.cpp ktip.cpp + kdatewidget.cpp karrowbutton.cpp kmainwindowiface.cpp + kmainwindowiface.skel kguiitem.cpp kstdguiitem.cpp + kstringvalidator.cpp kactivelabel.cpp + kwindowinfo.cpp ktextedit.cpp kwizard.cpp kpassivepopup.cpp + ktoolbarhandler.cpp kdatetimewidget.cpp ktimewidget.cpp ktimezonewidget.cpp + ksconfig.cpp kspelldlg.cpp + kspell.cpp ksyntaxhighlighter.cpp ktabbar.cpp ktabwidget.cpp + ksplashscreen.cpp kspellui.ui kconfigdialog.cpp + kactionselector.cpp klanguagebutton.cpp klistviewsearchline.cpp + kpixmapregionselectorwidget.cpp kpixmapregionselectordialog.cpp + kwhatsthismanager.cpp kiconviewsearchline.cpp + ktoolbarlabelaction.cpp +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 4.2.0 + LINK kdecore-shared ${FREETYPE_LIBRARIES} ${FONTCONFIG_LIBRARIES} + DEPENDENCIES dcopidl + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### libkspell ################################# + +set( target kspell ) + +configure_file( dummy.cpp.cmake dummy.cpp COPYONLY ) + +tde_add_library( ${target} SHARED + SOURCES ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp + VERSION 4.2.0 + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/kdeui/about/CMakeLists.txt b/kdeui/about/CMakeLists.txt new file mode 100644 index 000000000..63b43e462 --- /dev/null +++ b/kdeui/about/CMakeLists.txt @@ -0,0 +1,21 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +install( FILES + bar-bottom-left.png bar-top-right.png bar-bottom-middle.png bottom-left.png + box-middle-left.png top-left.png bar-bottom-right.png bottom-middle.png + box-middle-right.png top-middle.png bar-middle-left.png bottom-right.png + box-top-left.png bar-middle-right.png box-bottom-left.png box-top-middle.png + bar-top-left.png box-bottom-middle.png box-top-right.png bar-top-middle.png + box-bottom-right.png kde_infopage.css kde_infopage_rtl.css + DESTINATION ${DATA_INSTALL_DIR}/kdeui/about ) diff --git a/kdeui/kdetrayproxy/CMakeLists.txt b/kdeui/kdetrayproxy/CMakeLists.txt new file mode 100644 index 000000000..26353c231 --- /dev/null +++ b/kdeui/kdetrayproxy/CMakeLists.txt @@ -0,0 +1,50 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kded + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES + kdetrayproxy.desktop + DESTINATION ${SERVICES_INSTALL_DIR}/kded ) + + +##### kded_kdetrayproxy ######################### + +set( target kded_kdetrayproxy ) + +set( ${target}_SRCS + kdetrayproxy.cpp module.cpp module.skel +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdecore-shared kdeinit_kded-shared + DEPENDENCIES dcopidl + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kdeui/tests/CMakeLists.txt b/kdeui/tests/CMakeLists.txt new file mode 100644 index 000000000..b47b8e4a3 --- /dev/null +++ b/kdeui/tests/CMakeLists.txt @@ -0,0 +1,54 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} + -include tqt.h +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/dcop +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + +set( test_PROGS + kaboutdialogtest kblendtest kbuttonboxtest kcharselecttest + kcolortest kcolordlgtest kcomboboxtest kcompletiontest + kdatepicktest kdatewidgettest kdialogbasetest + kdockwidgetdemo kdockwidgettest + kdualcolortest keditlistboxtest kfontdialogtest + kgradienttest khashtest kdesattest + kledtest klineedittest klineeditdlgtest + kmessageboxtest knuminputtest + kpalettetest + kpopuptest kprogresstest krulertest kseparatortest + kstatusbartest ktabctltest + kunbalancedgrdtest kwindowtest kwizardtest + itemcontainertest kpanelmenutest kedittest + kxmlguitest kaccelgentest ksystemtraytest klistviewtest + ktextedittest kmainwindowtest kmainwindowrestoretest + kactiontest kdatetimewidgettest ktimewidgettest + kspelltest kinputdialogtest ktabwidgettest kwordwraptest + kdocktest qxembedtest ksqueezedtextlabeltest + kpixmapregionselectordialogtest kjanuswidgettest ktoolbarlabelactiontest +) + +foreach( PROG ${test_PROGS} ) + tde_add_executable( ${PROG} AUTOMOC SOURCES "${PROG}.cpp" LINK kdeui-shared ) +endforeach( PROG ${test_PROGS} ) diff --git a/kdewidgets/CMakeLists.txt b/kdewidgets/CMakeLists.txt new file mode 100644 index 000000000..687ab564b --- /dev/null +++ b/kdewidgets/CMakeLists.txt @@ -0,0 +1,67 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( pics ) + + +add_definitions( + ${TQT_CFLAGS_OTHER} + -DQT_PLUGIN +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kfile +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### makekdewidgets ############################ + +set( target makekdewidgets ) + +set( ${target}_SRCS + makekdewidgets.cpp +) + +tde_add_executable( ${target} + SOURCES ${${target}_SRCS} + LINK kdecore-shared + DESTINATION ${BIN_INSTALL_DIR} +) + +##### kdewidgets ################################ + +set( target kdewidgets ) + +set( ${target}_SRCS + classpreviews.cpp kdewidgets.cpp +) + +add_custom_command( OUTPUT kdewidgets.cpp + COMMAND ./makekdewidgets -o kdewidgets.cpp ${CMAKE_CURRENT_SOURCE_DIR}/kde.widgets + DEPENDS makekdewidgets ${CMAKE_CURRENT_SOURCE_DIR}/kde.widgets +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kabc-shared + DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/designer +) diff --git a/kdewidgets/pics/CMakeLists.txt b/kdewidgets/pics/CMakeLists.txt new file mode 100644 index 000000000..8e7ff6b13 --- /dev/null +++ b/kdewidgets/pics/CMakeLists.txt @@ -0,0 +1,27 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +install( FILES + klineedit.png ktextbrowser.png kpasswordedit.png kdatewidget.png + kfontrequester.png kurlrequester.png kcombobox.png kiconview.png + kintspinbox.png kled.png ksqueezedtextlabel.png kprogress.png + kurllabel.png kruler.png kcmodule.png kdoublespinbox.png + kdoublenuminput.png klistbox.png klistview.png kactivelabel.png + kiconbutton.png kcolorcombo.png khsselector.png kcolorbutton.png + kgradientselector.png kdualcolorbutton.png ktimewidget.png + kpushbutton.png kcharselect.png kdatepicker.png + kdialog.png keditlistbox.png kfontcombo.png khistorycombo.png + kintnuminput.png krestrictedline.png ktextedit.png + kurlcomborequester.png kkeybutton.png kpalettetable.png + kactionselector.png kdatetable.png kdatetimewidget.png + DESTINATION ${DATA_INSTALL_DIR}/kdewidgets/pics ) diff --git a/kdoctools/CMakeLists.txt b/kdoctools/CMakeLists.txt new file mode 100644 index 000000000..7d1b336ba --- /dev/null +++ b/kdoctools/CMakeLists.txt @@ -0,0 +1,109 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kioslave + ${LIBXML2_INCLUDE_DIRS} + ${LIBXSLT_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/checkXML DESTINATION ${BIN_INSTALL_DIR} ) +install( PROGRAMS move_kio_help_cache.sh DESTINATION ${DATA_INSTALL_DIR}/kconf_update ) +install( FILES kio_help.upd DESTINATION ${DATA_INSTALL_DIR}/kconf_update ) +install( FILES help.protocol ghelp.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) + +# FIXME why automake version is so complicated? +# install-data-local: +# @(for subdir in customization docbook; do \ +# for dir in `( cd $(srcdir)/$$subdir && find . -type d ! -name CVS | grep -v '\.svn' )`; do \ +# $(mkinstalldirs) $(DESTDIR)$(kde_datadir)/ksgmltools2/$$subdir/$$dir ;\ +# for file in `(cd $(srcdir)/$$subdir && ls -1 $$dir/*)`; do \ +# if test -f $(srcdir)/$$subdir/$$file; then \ +# $(INSTALL_DATA) $(srcdir)/$$subdir/$$file $(DESTDIR)$(kde_datadir)/ksgmltools2/$$subdir/$$file; fi ;\ +# done ;\ +# done ;\ +# done ) +install( DIRECTORY customization docbook DESTINATION ${DATA_INSTALL_DIR}/ksgmltools2 PATTERN ".svn" EXCLUDE ) + + +##### kbzipfilter_dummy ############################## + +tde_add_library( kbzipfilter_dummy STATIC_PIC + SOURCES ${CMAKE_SOURCE_DIR}/kioslave/bzip2/kbzip2filter.cpp +) + + +#### kio_help ################################### + +set( target kio_help ) + +set( ${target}_SRCS + kio_help.cpp main.cpp xslt.cpp +) + +tde_add_kpart( ${target} SHARED + SOURCES ${${target}_SRCS} + LINK kbzipfilter_dummy-static kio-shared ${BZIP2_LIBRARIES} ${LIBXML2_LIBRARIES} ${LIBXSLT_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +#### kio_ghelp ################################### + +set( target kio_ghelp ) + +set( ${target}_SRCS + kio_help.cpp main_ghelp.cpp xslt.cpp +) + +tde_add_kpart( ${target} SHARED + SOURCES ${${target}_SRCS} + LINK kbzipfilter_dummy-static kio-shared ${BZIP2_LIBRARIES} ${LIBXML2_LIBRARIES} ${LIBXSLT_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +#### meinproc ################################### + +set( target meinproc ) + +set( ${target}_SRCS + meinproc.cpp xslt_pure.cpp +) + +# FIXME I think this can be improved +add_custom_command( OUTPUT xslt_pure.cpp COMMAND cp ARGS ${CMAKE_CURRENT_SOURCE_DIR}/xslt.cpp xslt_pure.cpp ) +set_source_files_properties( xslt_pure.cpp PROPERTIES COMPILE_FLAGS -DSIMPLE_XSLT ) + +tde_add_executable( ${target} + SOURCES ${${target}_SRCS} + LINK kbzipfilter_dummy-static kio-shared ${BZIP2_LIBRARIES} ${LIBXML2_LIBRARIES} ${LIBXSLT_LIBRARIES} + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/kdoctools/checkXML.cmake b/kdoctools/checkXML.cmake new file mode 100644 index 000000000..b986a7b1b --- /dev/null +++ b/kdoctools/checkXML.cmake @@ -0,0 +1,7 @@ +#! /bin/sh + +prefix=@CMAKE_INSTALL_PREFIX@ +# FIXME this must be separate? +exec_prefix=@CMAKE_INSTALL_PREFIX@ +exit `@CMAKE_INSTALL_PREFIX@/@BIN_INSTALL_DIR@/meinproc --check --stdout $@ > /dev/null` + diff --git a/khtml/CMakeLists.txt b/khtml/CMakeLists.txt new file mode 100644 index 000000000..d696ca60c --- /dev/null +++ b/khtml/CMakeLists.txt @@ -0,0 +1,142 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +set( CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${WOVERLOADED_VIRTUAL} ) + +add_subdirectory( misc ) +add_subdirectory( dom ) +add_subdirectory( css ) +add_subdirectory( xml ) +add_subdirectory( html ) +add_subdirectory( rendering ) +add_subdirectory( pics ) +add_subdirectory( java ) +add_subdirectory( ecma ) +add_subdirectory( kmultipart ) + + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kjs + ${CMAKE_BINARY_DIR}/kio/kssl + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfile + ${CMAKE_SOURCE_DIR}/kio/kssl + ${CMAKE_SOURCE_DIR}/kutils + ${CMAKE_SOURCE_DIR}/kwallet/client + ${CMAKE_SOURCE_DIR}/kdeprint +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + khtmlview.h khtml_part.h khtml_events.h + khtml_settings.h khtmldefaults.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + + +##### other data ################################ + +install( FILES khtml.desktop khtmlimage.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES khtml.rc khtml_browser.rc khtml_popupmenu.rc DESTINATION ${DATA_INSTALL_DIR}/khtml ) + + +##### khtml ##################################### + +set( target khtml ) + +set( ${target}_SRCS + khtmlview.cpp khtml_part.cpp khtml_run.cpp + khtml_factory.cpp khtml_settings.cc khtml_events.cpp + khtml_ext.cpp khtml_pagecache.cpp khtml_iface.cc + khtml_printsettings.cpp khtmlimage.cpp kjserrordlg.ui + htmlpageinfo.ui khtml_iface.skel +) + +### FIXME what is this? +### if include_VERSION_SCRIPT +### VSCRIPT = -Wl,--version-script=$(srcdir)/libkhtml.map +### endif + +### FIXME what about java? +### FIXME maybe static libs must be embedded? + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 4.2.0 + LINK ${VSCRIPT} kjava-static kjs_html-static khtmldom-static khtmlcss-static + khtmlhtml-static khtmlxml-static khtmlrender-static khtmlmisc-static + kutils-shared kdeprint-shared kjs-shared ${JPEG_LIBRARIES} + DESTINATION ${LIB_INSTALL_DIR} + DEPENDENCIES dcopidl +) + + +##### libkhtmlpart ############################## + +set( target libkhtmlpart ) + +set( ${target}_SRCS + dummy.cpp +) + +file( WRITE ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp +"#include <kdelibs_export.h> +extern \"C\" KDE_EXPORT void* init_libkhtml(); +extern \"C\" KDE_EXPORT void* init_libkhtmlpart() { return init_libkhtml(); } +" ) + +tde_add_kpart( ${target} + SOURCES ${${target}_SRCS} + LINK khtml-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### khtmlimagepart ############################ + +set( target khtmlimagepart ) + +set( ${target}_SRCS + imgdummy.cpp +) + +file( WRITE ${CMAKE_CURRENT_BINARY_DIR}/imgdummy.cpp +" +#include <kdelibs_export.h> +extern \"C\" KDE_EXPORT void* init_khtmlimagefactory(); +extern \"C\" KDE_EXPORT void* init_khtmlimagepart() { return init_khtmlimagefactory(); } +" ) + +tde_add_kpart( ${target} + SOURCES ${${target}_SRCS} + LINK khtml-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/khtml/css/CMakeLists.txt b/khtml/css/CMakeLists.txt new file mode 100644 index 000000000..53c261559 --- /dev/null +++ b/khtml/css/CMakeLists.txt @@ -0,0 +1,51 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/khtml + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kwallet/client + ${CMAKE_SOURCE_DIR}/kutils +) + + +##### other data ################################ + +install( FILES html4.css quirks.css DESTINATION ${DATA_INSTALL_DIR}/khtml/css ) + + +##### khtmlcss (static) ######################### + +set( target khtmlcss ) + +set( ${target}_SRCS + css_stylesheetimpl.cpp css_ruleimpl.cpp css_valueimpl.cpp + css_base.cpp cssparser.cpp cssstyleselector.cpp + csshelper.cpp parser.cpp css_renderstyledeclarationimpl.cpp +) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} +) + diff --git a/khtml/dom/CMakeLists.txt b/khtml/dom/CMakeLists.txt new file mode 100644 index 000000000..b3e3e0591 --- /dev/null +++ b/khtml/dom/CMakeLists.txt @@ -0,0 +1,62 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +set( CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${USE_EXCEPTIONS} ) + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/khtml + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kio +) + + +##### headers ################################### + +install( FILES + dom_exception.h html_base.h html_inline.h + css_rule.h dom_html.h html_block.h html_list.h + css_stylesheet.h dom_misc.h html_document.h html_misc.h + css_value.h dom_node.h html_element.h html_object.h + dom_core.h dom_string.h html_form.h html_table.h + dom_doc.h dom_text.h html_head.h + dom_element.h dom_xml.h html_image.h + dom2_range.h dom2_traversal.h dom2_events.h + dom2_views.h + #css_extensions.h + DESTINATION ${INCLUDE_INSTALL_DIR}/dom ) + + +##### khtmldom-static ############################ + +set( target khtmldom ) + +set( ${target}_SRCS + dom_misc.cpp html_block.cpp html_inline.cpp css_rule.cpp + dom_node.cpp html_document.cpp html_list.cpp css_stylesheet.cpp + dom_string.cpp html_element.cpp html_misc.cpp css_value.cpp + dom_text.cpp html_object.cpp dom_doc.cpp dom_xml.cpp + html_head.cpp dom_element.cpp html_base.cpp html_image.cpp + html_form.cpp dom2_range.cpp html_table.cpp dom2_traversal.cpp + dom2_events.cpp dom2_views.cpp + #css_extensions.cpp +) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} +) diff --git a/khtml/ecma/CMakeLists.txt b/khtml/ecma/CMakeLists.txt new file mode 100644 index 000000000..6f0fa885b --- /dev/null +++ b/khtml/ecma/CMakeLists.txt @@ -0,0 +1,66 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kjs + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/khtml + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/bookmarks + ${CMAKE_SOURCE_DIR}/kjs + ${CMAKE_SOURCE_DIR}/kwallet/client + ${CMAKE_SOURCE_DIR}/kutils +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kjs_html-static ########################### + +set( target kjs_html ) + +set( ${target}_SRCS + kjs_binding.cpp kjs_dom.cpp kjs_html.cpp kjs_window.cpp + kjs_navigator.cpp kjs_proxy.cpp kjs_css.cpp + kjs_range.cpp kjs_traversal.cpp kjs_events.cpp + kjs_views.cpp kjs_debugwin.cpp kjs_mozilla.cpp + xmlhttprequest.cpp xmlserializer.cpp domparser.cpp +) + +set( ${target}_LUTS + kjs_dom.cpp kjs_html.cpp kjs_css.cpp kjs_events.cpp + kjs_navigator.cpp kjs_mozilla.cpp kjs_range.cpp + kjs_traversal.cpp kjs_views.cpp kjs_window.cpp + xmlhttprequest.cpp xmlserializer.cpp domparser.cpp +) + +tde_add_luts( ${${target}_LUTS} ) +kde3_automoc( ${${target}_SRCS} ) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} +) + diff --git a/khtml/html/CMakeLists.txt b/khtml/html/CMakeLists.txt new file mode 100644 index 000000000..4b636dbaa --- /dev/null +++ b/khtml/html/CMakeLists.txt @@ -0,0 +1,48 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/khtml + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfile + ${CMAKE_SOURCE_DIR}/kio/kssl + ${CMAKE_SOURCE_DIR}/kutils + ${CMAKE_SOURCE_DIR}/kwallet/client +) + +##### khtmlhtml-static ########################### + +set( target khtmlhtml ) + +set( ${target}_SRCS + htmlparser.cpp htmltokenizer.cpp dtd.cpp html_headimpl.cpp + html_blockimpl.cpp html_elementimpl.cpp html_inlineimpl.cpp + html_documentimpl.cpp html_baseimpl.cpp html_imageimpl.cpp + html_listimpl.cpp html_miscimpl.cpp html_formimpl.cpp + html_objectimpl.cpp html_tableimpl.cpp +) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} +) diff --git a/khtml/java/CMakeLists.txt b/khtml/java/CMakeLists.txt new file mode 100644 index 000000000..5e2fcafb0 --- /dev/null +++ b/khtml/java/CMakeLists.txt @@ -0,0 +1,79 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( dummy ) + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_BINARY_DIR}/kio/kssl + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/khtml + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kssl +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### configure ################################# + +set( KJAVA_POLICYPATH "${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}/kjava/-" ) +configure_file( kjava.policy.in kjava.policy @ONLY ) + + +##### install data ############################## + +install( FILES kjavaappletviewer.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES kjava.jar ${CMAKE_CURRENT_BINARY_DIR}/kjava.policy pluginsinfo DESTINATION ${DATA_INSTALL_DIR}/kjava ) +tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/kjava/icons ) + + +##### kjava-static ############################## + +set( target kjava ) + +set( ${target}_SRCS + kjavaapplet.cpp kjavaappletcontext.cpp kjavaappletserver.cpp + kjavaappletwidget.cpp kjavaprocess.cpp kjavadownloader.cpp +) + +tde_add_library( ${target} STATIC_PIC + SOURCES ${${target}_SRCS} +) + + +##### kjavaappletviewer ######################### + +set( target kjavaappletviewer ) + +set( ${target}_SRCS + kjavaapplet.cpp kjavaappletcontext.cpp + kjavaappletserver.cpp kjavaappletwidget.cpp kjavaprocess.cpp + kjavadownloader.cpp kjavaappletviewer.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kparts-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/khtml/java/dummy/CMakeLists.txt b/khtml/java/dummy/CMakeLists.txt new file mode 100644 index 000000000..59fc65eb4 --- /dev/null +++ b/khtml/java/dummy/CMakeLists.txt @@ -0,0 +1,22 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### kjava ##################################### + +set( target kjava ) + +configure_file( ${CMAKE_SOURCE_DIR}/cmake/modules/template_dummy_cpp.cmake dummy.cpp COPYONLY ) + +tde_add_library( ${target} SHARED + SOURCES dummy.cpp + VERSION 1.0.0 + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/khtml/kmultipart/CMakeLists.txt b/khtml/kmultipart/CMakeLists.txt new file mode 100644 index 000000000..bcd28ec24 --- /dev/null +++ b/khtml/kmultipart/CMakeLists.txt @@ -0,0 +1,52 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/khtml + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kutils +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES kmultipart.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +##### libkmultipart ############################# + +set( target libkmultipart ) + +set( ${target}_SRCS + kmultipart.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK httpfilter-static kparts-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/khtml/misc/CMakeLists.txt b/khtml/misc/CMakeLists.txt new file mode 100644 index 000000000..93913df3b --- /dev/null +++ b/khtml/misc/CMakeLists.txt @@ -0,0 +1,45 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/khtml + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kutils + ${CMAKE_SOURCE_DIR}/kio/kfile +) + + +##### khtmlmisc-static ########################### + +set( target khtmlmisc ) + +set( ${target}_SRCS + decoder.cpp loader.cpp loader_jpeg.cpp guess_ja.cpp + htmlhashes.cpp helper.cpp arena.cpp stringit.cpp + knsplugininstaller.cpp +) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} +) diff --git a/khtml/pics/CMakeLists.txt b/khtml/pics/CMakeLists.txt new file mode 100644 index 000000000..49e567671 --- /dev/null +++ b/khtml/pics/CMakeLists.txt @@ -0,0 +1,20 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### icons ##################################### + +tde_install_icons( + bug images_display wallet_open + DESTINATION ${DATA_INSTALL_DIR}/khtml/icons ) + +tde_install_icons( + dbgnext dbgrun dbgrunto dbgstep +) diff --git a/khtml/rendering/CMakeLists.txt b/khtml/rendering/CMakeLists.txt new file mode 100644 index 000000000..da4c0c535 --- /dev/null +++ b/khtml/rendering/CMakeLists.txt @@ -0,0 +1,51 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} + -include tqt.h +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/khtml + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfile + ${CMAKE_SOURCE_DIR}/kutils +) + + +##### khtmlrender-static ######################### + +set( target khtmlrender ) + +set( ${target}_SRCS + bidi.cpp break_lines.cpp render_block.cpp render_inline.cpp + render_style.cpp render_object.cpp render_container.cpp render_box.cpp + render_flow.cpp render_text.cpp render_arena.cpp render_layer.cpp + render_image.cpp render_table.cpp table_layout.cpp + render_replaced.cpp render_form.cpp render_list.cpp + render_canvas.cpp render_frames.cpp render_br.cpp + render_body.cpp font.cpp render_line.cpp render_generated.cpp + enumerate.cpp counter_tree.cpp +) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} +) diff --git a/khtml/xml/CMakeLists.txt b/khtml/xml/CMakeLists.txt new file mode 100644 index 000000000..b21335367 --- /dev/null +++ b/khtml/xml/CMakeLists.txt @@ -0,0 +1,47 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kjs + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/khtml + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kwallet/client + ${CMAKE_SOURCE_DIR}/kutils +) + + +##### khtmlxml-static ############################ + +set( target khtmlxml ) + +set( ${target}_SRCS + dom_docimpl.cpp dom_nodeimpl.cpp dom_textimpl.cpp + dom_elementimpl.cpp dom_stringimpl.cpp dom2_rangeimpl.cpp + dom2_traversalimpl.cpp xml_tokenizer.cpp dom_xmlimpl.cpp + dom2_eventsimpl.cpp dom2_viewsimpl.cpp dom_restyler.cpp +) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} +) diff --git a/kimgio/CMakeLists.txt b/kimgio/CMakeLists.txt new file mode 100644 index 000000000..a0ea0dbd8 --- /dev/null +++ b/kimgio/CMakeLists.txt @@ -0,0 +1,181 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +set( CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${USE_EXCEPTIONS} ) + + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kimg_eps ################################## + +set( target kimg_eps ) + +tde_add_kpart( ${target} + SOURCES eps.cpp + LINK kdecore-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### kimg_xview ################################ + +set( target kimg_xview ) + +tde_add_kpart( ${target} + SOURCES xview.cpp + LINK kdecore-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### kimg_tiff ################################# + +if( TIFF_FOUND ) + set( target kimg_tiff ) + tde_add_kpart( ${target} + SOURCES tiffr.cpp + LINK kdecore-shared ${TIFF_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} + ) + install( FILES tiff.kimgio DESTINATION ${SERVICES_INSTALL_DIR} ) +endif( TIFF_FOUND ) + + +##### kimg_ico ################################## + +set( target kimg_ico ) + +tde_add_kpart( ${target} + SOURCES ico.cpp + LINK kdecore-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### kimg_jp2 ################################## + +if( JASPER_FOUND ) + set( target kimg_jp2 ) + tde_add_kpart( ${target} + SOURCES jp2.cpp + LINK kdecore-shared ${JASPER_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} + ) + install( FILES jp2.kimgio DESTINATION ${SERVICES_INSTALL_DIR} ) +endif( JASPER_FOUND ) + + +##### kimg_pcx ################################## + +set( target kimg_pcx ) +tde_add_kpart( ${target} + SOURCES pcx.cpp + LINK kdecore-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### kimg_tga ################################## + +set( target kimg_tga ) +tde_add_kpart( ${target} + SOURCES tga.cpp + LINK kdecore-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### kimg_rgb ################################## + +set( target kimg_rgb ) +tde_add_kpart( ${target} + SOURCES rgb.cpp + LINK kdecore-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### kimg_xcf ################################## + +set( target kimg_xcf ) +tde_add_kpart( ${target} + SOURCES xcf.cpp + LINK kdecore-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### kimg_dds ################################## + +set( target kimg_dds ) +tde_add_kpart( ${target} + SOURCES dds.cpp + LINK kdecore-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### kimg_exr ################################## + +if( OPENEXR_FOUND ) + set( target kimg_exr ) + tde_add_kpart( ${target} + SOURCES exr.cpp + LINK kdecore-shared ${OPENEXR_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} + ) + # FIXME COMPILE_FLAGS must be written a little better + set_target_properties( ${target}-module PROPERTIES COMPILE_FLAGS -I${OPENEXR_INCLUDE_DIRS} ) + install( FILES exr.kimgio DESTINATION ${SERVICES_INSTALL_DIR} ) +endif( OPENEXR_FOUND ) + + +##### kimg_psd ################################## + +set( target kimg_psd ) +tde_add_kpart( ${target} + SOURCES psd.cpp + LINK kdecore-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + +##### kimg_hdr ################################## + +set( target kimg_hdr ) +tde_add_kpart( ${target} + SOURCES hdr.cpp + LINK kdecore-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### other data ################################ + +install( FILES + png.kimgio xpm.kimgio bmp.kimgio pbm.kimgio pgm.kimgio + ppm.kimgio xbm.kimgio jpeg.kimgio xv.kimgio eps.kimgio + ico.kimgio gif.kimgio pcx.kimgio tga.kimgio rgb.kimgio + xcf.kimgio dds.kimgio mng.kimgio psd.kimgio hdr.kimgio + DESTINATION ${SERVICES_INSTALL_DIR} ) diff --git a/kinit/CMakeLists.txt b/kinit/CMakeLists.txt new file mode 100644 index 000000000..1fbab14b9 --- /dev/null +++ b/kinit/CMakeLists.txt @@ -0,0 +1,172 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${FREETYPE_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +#### kdeinit #################################### + +set( target kdeinit ) + +set( ${target}_SRCS + kinit.cpp setproctitle.cpp +) + +tde_add_executable( ${target} + SOURCES ${${target}_SRCS} + LINK kparts-shared + DESTINATION ${BIN_INSTALL_DIR} +) + + +#### kdeinit_wrapper ############################ + +set( target kdeinit_wrapper ) + +tde_add_executable( ${target} + SOURCES wrapper.c + DESTINATION ${BIN_INSTALL_DIR} +) + + +#### kshell ##################################### + +set( target kshell ) + +tde_add_executable( ${target} + SOURCES shell.c + DESTINATION ${BIN_INSTALL_DIR} +) + + +#### kdeinit_shutdown ########################### + +set( target kdeinit_shutdown ) + +tde_add_executable( ${target} + SOURCES wrapper.c + DESTINATION ${BIN_INSTALL_DIR} +) + + +#### lnusertemp ################################# + +set( target lnusertemp ) + +tde_add_executable( ${target} + SOURCES lnusertemp.c + DESTINATION ${BIN_INSTALL_DIR} +) + + +#### kwrapper ################################### + +set( target kwrapper ) + +tde_add_executable( ${target} + SOURCES kwrapper.c + DESTINATION ${BIN_INSTALL_DIR} +) + + +#### kioslave ################################### + +set( target kioslave ) + +tde_add_executable( ${target} AUTOMOC + SOURCES kioslave.cpp + LINK kio-shared + DESTINATION ${BIN_INSTALL_DIR} +) + + +#### kstartupconfig ############################# + +set( target kstartupconfig ) + +tde_add_executable( ${target} AUTOMOC + SOURCES kstartupconfig.cpp + LINK kdefakes-shared + DESTINATION ${BIN_INSTALL_DIR} +) + + +#### kdostartupconfig ########################### + +set( target kdostartupconfig ) + +tde_add_executable( ${target} AUTOMOC + SOURCES kdostartupconfig.cpp + LINK kdecore-shared + DESTINATION ${BIN_INSTALL_DIR} +) + + +#### start_kdeinit ############################## + +set( target start_kdeinit ) + +if( KDEINIT_SETUID ) + set( _setuid SETUID ) +endif( KDEINIT_SETUID ) + +tde_add_executable( ${target} ${_setuid} + SOURCES start_kdeinit.c + DESTINATION ${BIN_INSTALL_DIR} +) + +# FIXME will be a problem when BIN_INSTALL_DIR will be absolute path +set_target_properties( ${target} PROPERTIES COMPILE_FLAGS -DEXECUTE=\\"${CMAKE_INSTALL_PREFIX}/${BIN_INSTALL_DIR}/kdeinit\\" ) + + +#### start_kdeinit_wrapper ###################### + +set( target start_kdeinit_wrapper ) + +tde_add_executable( ${target} + SOURCES start_kdeinit_wrapper.c + DESTINATION ${BIN_INSTALL_DIR} +) + + +#### klauncher ################################## + +set( target klauncher ) + +set( ${target}_SRCS + klauncher.cpp klauncher_main.cpp autostart.cpp +) + +tde_add_kdeinit_executable( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kio-shared +) diff --git a/kio/CMakeLists.txt b/kio/CMakeLists.txt new file mode 100644 index 000000000..9be73d93b --- /dev/null +++ b/kio/CMakeLists.txt @@ -0,0 +1,62 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + -D_LARGEFILE64_SOURCE=1 +) + +add_subdirectory( kssl ) +add_subdirectory( kio ) +add_subdirectory( bookmarks ) +add_subdirectory( kfile ) +add_subdirectory( pics ) +add_subdirectory( kioexec ) +add_subdirectory( httpfilter ) +add_subdirectory( misc ) +add_subdirectory( kpasswdserver ) +add_subdirectory( tests ) + + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES magic DESTINATION ${MIME_INSTALL_DIR} ) + +install( FILES + application.desktop kurifilterplugin.desktop + kcomprfilter.desktop kscan.desktop kdatatool.desktop + kfileplugin.desktop kcmodule.desktop + DESTINATION ${SHARE_INSTALL_DIR}/servicetypes ) + +install( FILES kioslave.upd DESTINATION ${DATA_INSTALL_DIR}/kconf_update ) +install( PROGRAMS useragent.pl proxytype.pl DESTINATION ${DATA_INSTALL_DIR}/kconf_update ) +install( FILES renamedlgplugin.desktop DESTINATION ${SHARE_INSTALL_DIR}/servicetypes ) +install( FILES kpasswdserver.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded ) +install( FILES data.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) + + +##### libkio #################################### + +set( target kio ) + +configure_file( ${CMAKE_SOURCE_DIR}/cmake/modules/template_dummy_cpp.cmake dummy.cpp COPYONLY ) + +tde_add_library( ${target} SHARED + SOURCES ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp + VERSION 4.2.0 + EMBED kssl-static kiocore-static ksycoca-static kbookmarks-static kfile-static + LINK kdeui-shared kdesu-shared kwalletclient-shared + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/kio/bookmarks/CMakeLists.txt b/kio/bookmarks/CMakeLists.txt new file mode 100644 index 000000000..a8d50fdbb --- /dev/null +++ b/kio/bookmarks/CMakeLists.txt @@ -0,0 +1,59 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfile +) + + +##### headers ################################### + +install( FILES + kbookmark.h kbookmarkbar.h kbookmarkdrag.h kbookmarkexporter.h + kbookmarkimporter.h kbookmarkmanager.h kbookmarkmenu.h + kbookmarknotifier.h kbookmarkimporter_crash.h + kbookmarkimporter_opera.h kbookmarkimporter_ie.h + kbookmarkimporter_ns.h kbookmarkimporter_kde1.h + kbookmarkdombuilder.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + + +##### kbookmarks ################################ + +set( target kbookmarks ) + +set( ${target}_SRCS + kbookmark.cc kbookmarkbar.cc kbookmarkdrag.cc kbookmarkexporter.cc + kbookmarkimporter.cc kbookmarkmanager.cc kbookmarkmenu.cc + kbookmarkimporter_crash.cc kbookmarkimporter_opera.cc + kbookmarkimporter_ie.cc kbookmarkimporter_ns.cc + kbookmarkimporter_kde1.cc kbookmarkdombuilder.cc + kbookmarkmanager.skel kbookmarknotifier.skel +) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} + DEPENDENCIES dcopidl +) diff --git a/kio/httpfilter/CMakeLists.txt b/kio/httpfilter/CMakeLists.txt new file mode 100644 index 000000000..ffc46fd72 --- /dev/null +++ b/kio/httpfilter/CMakeLists.txt @@ -0,0 +1,36 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kio +) + + +##### httpfilter ################################ + +set( target httpfilter ) + +set( ${target}_SRCS + httpfilter.cc +) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} +) diff --git a/kio/kfile/CMakeLists.txt b/kio/kfile/CMakeLists.txt new file mode 100644 index 000000000..b94d12ea0 --- /dev/null +++ b/kio/kfile/CMakeLists.txt @@ -0,0 +1,80 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/bookmarks + ${LIBART_INCLUDE_DIRS} +) + + +##### headers ################################### + +install( FILES + kfiledialog.h kencodingfiledialog.h + kdiroperator.h kfileview.h kfilefiltercombo.h + kfiledetailview.h kcombiview.h kdiskfreesp.h + kfileiconview.h krecentdocument.h + kurlrequester.h kfilepreview.h kfile.h + kurlcombobox.h kurlrequesterdlg.h kopenwith.h kpropsdlg.h + kicondialog.h kdirsize.h kpreviewwidgetbase.h kimagefilepreview.h kfilesharedlg.h + kfiletreeview.h kfiletreeviewitem.h kfiletreebranch.h + kdirselectdialog.h kurlbar.h kpropertiesdialog.h knotifydialog.h + kcustommenueditor.h ${CMAKE_CURRENT_BINARY_DIR}/knotifywidgetbase.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + + +##### other data ################################ + +install( FILES + kpropsdlgplugin.desktop + DESTINATION ${SHARE_INSTALL_DIR}/servicetypes ) + + +##### kfile ##################################### + +set( target kfile ) + +set( ${target}_SRCS + kfilefiltercombo.cpp kfileview.cpp kfileiconview.cpp + krecentdocument.cpp kfiledialog.cpp kdiroperator.cpp + kfiledetailview.cpp kcombiview.cpp kurlrequester.cpp + kfilepreview.cpp kurlcombobox.cpp kurlrequesterdlg.cpp + kopenwith.cpp kpropertiesdialog.cpp kicondialog.cpp + kdirsize.cpp krecentdirs.cpp kdiskfreesp.cpp kimagefilepreview.cpp + kfilesharedlg.cpp kurlbar.cpp kmetaprops.cpp kpreviewprops.cpp + kfiletreeview.cpp kfiletreeviewitem.cpp kfiletreebranch.cpp + kdirselectdialog.cpp kfilebookmarkhandler.cpp kfilemetainfowidget.cpp + kcustommenueditor.cpp knotifywidgetbase.ui knotifydialog.cpp + kfilespeedbar.cpp kpreviewwidgetbase.cpp kfilemetapreview.cpp + kpropertiesdesktopbase.ui kpropertiesdesktopadvbase.ui + kpropertiesmimetypebase.ui kencodingfiledialog.cpp + kacleditwidget.cpp +) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} +) diff --git a/kio/kio/CMakeLists.txt b/kio/kio/CMakeLists.txt new file mode 100644 index 000000000..35b72cb3e --- /dev/null +++ b/kio/kio/CMakeLists.txt @@ -0,0 +1,119 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kio/kssl + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore/network + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kssl + ${CMAKE_SOURCE_DIR}/interfaces +) + + +##### headers ################################### + +install( FILES + kservicetype.h kmimetype.h kmimemagic.h kservice.h + krun.h kdirwatch.h kautomount.h kuserprofile.h + kshred.h kar.h ktar.h kzip.h ktrader.h kurifilter.h + kurlcompletion.h kshellcompletion.h kfileitem.h + kfileshare.h ksambashare.h knfsshare.h kdirlister.h + kservicegroup.h kimageio.h kdirnotify.h kdirnotify_stub.h + kurlpixmapprovider.h kprotocolinfo.h kprotocolmanager.h + kfilterbase.h kfilterdev.h kemailsettings.h kscan.h + kdatatool.h karchive.h kfilefilter.h kfilemetainfo.h + renamedlgplugin.h kmimetyperesolver.h kdcopservicestarter.h + kremoteencoding.h kmimetypechooser.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + +# FIXME seems that ACL is no longer optional +#if( USE_POSIX_ACL ) + install( FILES kacl.h DESTINATION ${INCLUDE_INSTALL_DIR} ) +#endif( USE_POSIX_ACL ) + +install( FILES + connection.h slaveinterface.h slave.h slaveconfig.h + sessiondata.h global.h passdlg.h netaccess.h job.h + scheduler.h jobclasses.h paste.h slavebase.h + progressbase.h defaultprogress.h statusbarprogress.h + tcpslavebase.h forwardingslavebase.h observer.h + chmodjob.h kmdbase.h authinfo.h ioslave_defaults.h + http_slave_defaults.h previewjob.h thumbcreator.h + metainfojob.h davjob.h renamedlg.h skipdlg.h + ${CMAKE_CURRENT_BINARY_DIR}/uiserver_stub.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kio ) + + +##### kiocore ################################### + +set( target kiocore ) + +set( ${target}_SRCS + authinfo.cpp kshred.cpp kprotocolmanager.cpp slave.cpp + slaveinterface.cpp observer.stub sessiondata.cpp + scheduler.cpp connection.cpp job.cpp global.cpp + slaveconfig.cpp kurlpixmapprovider.cpp netaccess.cpp + paste.cpp pastedialog.cpp kmimemagic.cpp tcpslavebase.cpp + slavebase.cpp passdlg.cpp forwardingslavebase.cpp + progressbase.cpp defaultprogress.cpp statusbarprogress.cpp + kdirnotify.cpp kdirnotify.skel kdirnotify_stub.cpp + observer.cpp ../misc/uiserver.stub observer.skel kemailsettings.cpp + kprotocolinfo.cpp renamedlg.cpp skipdlg.cpp kremoteencoding.cpp + kmimetypechooser.cpp +) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} + DEPENDENCIES dcopidl +) + + +##### ksycoca ################################### + +set( target ksycoca ) + +set( ${target}_SRCS + kdirwatch.cpp kfileshare.cpp ksambashare.cpp + knfsshare.cpp ktrader.cpp ktraderparse.cpp + ktraderparsetree.cpp kservicetypefactory.cpp + kservicetype.cpp kmimetype.cpp kservicegroup.cpp + kservice.cpp kservicefactory.cpp kuserprofile.cpp + kservicegroupfactory.cpp kurifilter.cpp kfilterbase.cpp + kfilterdev.cpp kshellcompletion.cpp kurlcompletion.cpp + kautomount.cpp krun.cpp kfileitem.cpp kdirlister.cpp + kimageio.cpp yacc.c lex.c chmodjob.cpp kscan.cpp + kar.cpp ktar.cpp kzip.cpp previewjob.cpp metainfojob.cpp + davjob.cpp kdatatool.cpp karchive.cpp kfilefilter.cpp + kfilemetainfo.cpp kdcopservicestarter.cpp dataslave.cpp + dataprotocol.cpp +) + +# FIXME seems that ACL is no longer optional +#if( USE_POSIX_ACL ) + set( ${target}_SRCS ${${target}_SRCS} kacl.cpp posixacladdons.cpp ) +#endif( USE_POSIX_ACL ) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} +) diff --git a/kio/kioexec/CMakeLists.txt b/kio/kioexec/CMakeLists.txt new file mode 100644 index 000000000..995141c0d --- /dev/null +++ b/kio/kioexec/CMakeLists.txt @@ -0,0 +1,49 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kioexec ################################### + +set( target kioexec ) + +set( ${target}_SRCS + main.cpp +) + +tde_add_executable( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kio-shared + DESTINATION ${BIN_INSTALL_DIR} +) + +# FIXME need a review +# create symlink to kfmexec +file( WRITE ${CMAKE_CURRENT_BINARY_DIR}/make_kfmexec_symlink.cmake "exec_program(${CMAKE_COMMAND} ARGS -E create_symlink ${target} \"\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${BIN_INSTALL_DIR}/kfmexec\")\n") +set_target_properties( ${target} PROPERTIES POST_INSTALL_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/make_kfmexec_symlink.cmake) diff --git a/kio/kpasswdserver/CMakeLists.txt b/kio/kpasswdserver/CMakeLists.txt new file mode 100644 index 000000000..215db3c92 --- /dev/null +++ b/kio/kpasswdserver/CMakeLists.txt @@ -0,0 +1,47 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kwallet/client + ${CMAKE_SOURCE_DIR}/kio +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +#### kded_kpasswdserver ############################## + +set( target kded_kpasswdserver ) + +set( ${target}_SRCS + kpasswdserver.cpp kpasswdserver.skel +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdeinit_kded-shared + DEPENDENCIES dcopidl + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kio/kssl/CMakeLists.txt b/kio/kssl/CMakeLists.txt new file mode 100644 index 000000000..6aee17a8c --- /dev/null +++ b/kio/kssl/CMakeLists.txt @@ -0,0 +1,62 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( kssl ) + +add_definitions( + ${TQT_CFLAGS_OTHER} + -include tqt.h +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore/network + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kwallet/client +) + + +##### headers ################################### + +install( FILES + kssl.h ksslcertificatehome.h ksslsettings.h ksslcertificate.h + ksslconnectioninfo.h ksslcertificatefactory.h ksslcertificatecache.h + ksslpeerinfo.h ksslinfodlg.h ksslcertdlg.h ksslutils.h kopenssl.h + ksslall.h ksslpkcs12.h ksslcertchain.h ksslkeygen.h ksslx509v3.h + ksslsigners.h ksslpkcs7.h ksslpemcallback.h ksslsession.h + ${CMAKE_CURRENT_BINARY_DIR}/ksslconfig.h ksslx509map.h ksmimecrypto.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + + +##### kssl ###################################### + +set( target kssl ) + +set( ${target}_SRCS + kssl.cc ksslcertificatehome.cc ksslsettings.cc + ksslcertificate.cc ksslconnectioninfo.cc ksslcertificatefactory.cc + ksslcertificatecache.cc ksslpeerinfo.cc ksslinfodlg.cc + ksslcertdlg.cc ksslutils.cc kopenssl.cc ksslpkcs12.cc + ksslcertchain.cc ksslkeygen.cc ksslx509v3.cc + ksslsigners.cc ksslpkcs7.cc ksslpemcallback.cc + ksslx509map.cc ksslsession.cc keygenwizard.ui + keygenwizard2.ui ksmimecrypto.cc ksslcsessioncache.cc +) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} +) diff --git a/kio/kssl/kssl/CMakeLists.txt b/kio/kssl/kssl/CMakeLists.txt new file mode 100644 index 000000000..eeed10125 --- /dev/null +++ b/kio/kssl/kssl/CMakeLists.txt @@ -0,0 +1,14 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( caroot ) + +install( FILES ksslcalist DESTINATION ${CONFIG_INSTALL_DIR} ) diff --git a/kio/kssl/kssl/caroot/CMakeLists.txt b/kio/kssl/kssl/caroot/CMakeLists.txt new file mode 100644 index 000000000..05e2381a9 --- /dev/null +++ b/kio/kssl/kssl/caroot/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES ca-bundle.crt DESTINATION ${DATA_INSTALL_DIR}/kssl ) diff --git a/kio/kssl/ksslconfig.h.cmake b/kio/kssl/ksslconfig.h.cmake new file mode 100644 index 000000000..1be6bbba4 --- /dev/null +++ b/kio/kssl/ksslconfig.h.cmake @@ -0,0 +1,26 @@ +/* This file is part of the KDE project + * + * Copyright (C) 2002 George Staikos <staikos@kde.org> + * + * 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. + */ + +#ifndef KSSLCONFIG_H +#define KSSLCONFIG_H + +#cmakedefine KSSL_HAVE_SSL 1 + +#endif diff --git a/kio/misc/CMakeLists.txt b/kio/misc/CMakeLists.txt new file mode 100644 index 000000000..595ac050b --- /dev/null +++ b/kio/misc/CMakeLists.txt @@ -0,0 +1,105 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( ksendbugmail ) +add_subdirectory( kpac ) +add_subdirectory( kdesasl ) +add_subdirectory( kssld ) +add_subdirectory( kfile ) +add_subdirectory( kwalletd ) +add_subdirectory( kntlm ) + +add_definitions( + -D_LARGEFILE64_SOURCE + ${TQT_CFLAGS_OTHER} + -include tqt.h +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_BINARY_DIR}/kio + ${CMAKE_BINARY_DIR}/kio/kio + ${CMAKE_BINARY_DIR}/kio/kssl + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kssl +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES uiserver.h DESTINATION ${INCLUDE_INSTALL_DIR}/kio ) + + +##### other data ################################ + +install(FILES + kio_uiserver.desktop kmailservice.protocol + telnet.protocol rlogin.protocol rtsp.protocol + ssh.protocol mms.protocol mmst.protocol mmsu.protocol + pnm.protocol rtspt.protocol rtspu.protocol + DESTINATION ${SERVICES_INSTALL_DIR} ) + +install( FILES fileshareset DESTINATION ${BIN_INSTALL_DIR} + PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE SETUID ) + + +#### kio_uiserver ############################### + +set( target kio_uiserver ) + +set( ${target}_SRCS + uiserver.cpp uiserver.skel +) + +tde_add_kdeinit_executable( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kio-shared + DEPENDENCIES dcopidl +) + + +##### kmailservice ############################## + +set( target kmailservice ) + +tde_add_executable( ${target} + SOURCES ${target}.cpp + LINK kdecore-shared + DESTINATION ${BIN_INSTALL_DIR} +) + + +##### ktelnetservice ############################ + +set( target ktelnetservice ) + +tde_add_executable( ${target} + SOURCES ${target}.cpp + LINK kdeui-shared + DESTINATION ${BIN_INSTALL_DIR} +) + +# FIXME need a review +# create symlink to fileshare +file( WRITE ${CMAKE_CURRENT_BINARY_DIR}/make_filesharelist_symlink.cmake "exec_program(${CMAKE_COMMAND} ARGS -E create_symlink fileshareset \"\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${BIN_INSTALL_DIR}/filesharelist\")\n") +set_target_properties( ktelnetservice PROPERTIES POST_INSTALL_SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/make_filesharelist_symlink.cmake ) diff --git a/kio/misc/kdesasl/CMakeLists.txt b/kio/misc/kdesasl/CMakeLists.txt new file mode 100644 index 000000000..a5c9ac844 --- /dev/null +++ b/kio/misc/kdesasl/CMakeLists.txt @@ -0,0 +1,46 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install(FILES kdesasl.h DESTINATION ${INCLUDE_INSTALL_DIR}/kio ) + + +##### kdesasl ################################### + +set( target kdesasl ) + +set( ${target}_SRCS + kdesasl.cpp +) + +tde_add_library( ${target} SHARED + SOURCES ${${target}_SRCS} + VERSION 1.2.0 + LINK kdecore-shared + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/kio/misc/kfile/CMakeLists.txt b/kio/misc/kfile/CMakeLists.txt new file mode 100644 index 000000000..0c91bb662 --- /dev/null +++ b/kio/misc/kfile/CMakeLists.txt @@ -0,0 +1,43 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfile +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kfile ##################################### + +set( target kfile ) + +set( ${target}_SRCS + fileprops.cpp +) + +tde_add_executable( ${target} + SOURCES ${${target}_SRCS} + LINK kio-shared + DESTINATION ${BIN_INSTALL_DIR} +)
\ No newline at end of file diff --git a/kio/misc/kntlm/CMakeLists.txt b/kio/misc/kntlm/CMakeLists.txt new file mode 100644 index 000000000..4c7f899a6 --- /dev/null +++ b/kio/misc/kntlm/CMakeLists.txt @@ -0,0 +1,47 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install(FILES kntlm.h DESTINATION ${INCLUDE_INSTALL_DIR}/kio ) + + +##### kntlm ################################### + +set( target kntlm ) + +set( ${target}_SRCS + kntlm.cpp des.cpp +) + +tde_add_library( ${target} SHARED + SOURCES ${${target}_SRCS} + VERSION 0.0.0 + LINK kdecore-shared + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/kio/misc/kpac/CMakeLists.txt b/kio/misc/kpac/CMakeLists.txt new file mode 100644 index 000000000..bd60310c4 --- /dev/null +++ b/kio/misc/kpac/CMakeLists.txt @@ -0,0 +1,70 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_BINARY_DIR}/kjs + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore/network + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kded +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + +##### other data ################################ + +install(FILES proxyscout.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded ) +install(FILES eventsrc DESTINATION ${DATA_INSTALL_DIR}/proxyscout ) + + +##### kded_proxyscout ########################### + +set( target kded_proxyscout ) + +set( ${target}_SRCS + proxyscout.cpp proxyscout.skel script.cpp + downloader.cpp discovery.cpp +) + +set( ${target}_SKELS + proxyscout.h +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdeinit_kded-shared kjs-shared ${RESOLV_LIBRARIES} + DEPENDENCIES dcopidl + DESTINATION ${PLUGIN_INSTALL_DIR} +) + + +##### kpac_dhcp_helper ########################## + +set( target kpac_dhcp_helper ) + +# FIXME on Gentoo this binary is not suided +tde_add_executable( ${target} SETUID + SOURCES kpac_dhcp_helper.c + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/kio/misc/ksendbugmail/CMakeLists.txt b/kio/misc/ksendbugmail/CMakeLists.txt new file mode 100644 index 000000000..9b3b04575 --- /dev/null +++ b/kio/misc/ksendbugmail/CMakeLists.txt @@ -0,0 +1,41 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kio/kio +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### ksendbugmail ############################## + +set( target ksendbugmail ) + +set( ${target}_SRCS + main.cpp smtp.cpp +) + +tde_add_executable( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kio-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/kio/misc/kssld/CMakeLists.txt b/kio/misc/kssld/CMakeLists.txt new file mode 100644 index 000000000..5acdc533e --- /dev/null +++ b/kio/misc/kssld/CMakeLists.txt @@ -0,0 +1,51 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kio/kssl + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kio/kssl +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install(FILES kssld.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded ) + + +##### kded_kssld ########################### + +set( target kded_kssld ) + +set( ${target}_SRCS + kssld.cpp kssld.skel +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdeinit_kded-shared + DEPENDENCIES dcopidl + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kio/misc/kwalletd/CMakeLists.txt b/kio/misc/kwalletd/CMakeLists.txt new file mode 100644 index 000000000..c56064589 --- /dev/null +++ b/kio/misc/kwalletd/CMakeLists.txt @@ -0,0 +1,53 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kwallet/client + ${CMAKE_SOURCE_DIR}/kwallet/backend + ${CMAKE_SOURCE_DIR}/kio/kio +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install(FILES kwalletd.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded ) + + +#### kded_kwalletd ############################## + +set( target kded_kwalletd ) + +set( ${target}_SRCS + kwalletd.cpp kwalletd.skel ktimeout.cpp kwalletwizard.ui + kbetterthankdialogbase.ui +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdeinit_kded-shared kwalletbackend-shared + DEPENDENCIES dcopidl + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kio/pics/CMakeLists.txt b/kio/pics/CMakeLists.txt new file mode 100644 index 000000000..1830674b4 --- /dev/null +++ b/kio/pics/CMakeLists.txt @@ -0,0 +1,14 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/kio_uiserver/icons ) diff --git a/kio/tests/CMakeLists.txt b/kio/tests/CMakeLists.txt new file mode 100644 index 000000000..4d2039f12 --- /dev/null +++ b/kio/tests/CMakeLists.txt @@ -0,0 +1,40 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kio/kio +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### ktradertest ############################### + +set( target ktradertest ) + +set( ${target}_SRCS + ktradertest.cpp +) + +tde_add_executable( ${target} + SOURCES ${${target}_SRCS} + LINK kio-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/kioslave/CMakeLists.txt b/kioslave/CMakeLists.txt new file mode 100644 index 000000000..4c7bfe1c4 --- /dev/null +++ b/kioslave/CMakeLists.txt @@ -0,0 +1,18 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( file ) +add_subdirectory( http ) +add_subdirectory( ftp ) +add_subdirectory( gzip ) +add_subdirectory( bzip2 ) +add_subdirectory( metainfo ) +add_subdirectory( iso ) diff --git a/kioslave/bzip2/CMakeLists.txt b/kioslave/bzip2/CMakeLists.txt new file mode 100644 index 000000000..5b6a68d7d --- /dev/null +++ b/kioslave/bzip2/CMakeLists.txt @@ -0,0 +1,46 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kio/kio +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES kbzip2filter.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +##### kbzip2filter ############################## + +set( target kbzip2filter ) + +set( ${target}_SRCS + kbzip2filter.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kio-shared ${BZIP2_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kioslave/file/CMakeLists.txt b/kioslave/file/CMakeLists.txt new file mode 100644 index 000000000..66652e633 --- /dev/null +++ b/kioslave/file/CMakeLists.txt @@ -0,0 +1,56 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} + -D_LARGEFILE64_SOURCE +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES file.h DESTINATION ${INCLUDE_INSTALL_DIR}/kio ) + + +##### other data ################################ + +install( FILES file.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) + + +##### kio_file ################################## + +set( target kio_file ) + +set( ${target}_SRCS + file.cc +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) + diff --git a/kioslave/ftp/CMakeLists.txt b/kioslave/ftp/CMakeLists.txt new file mode 100644 index 000000000..7f6b88355 --- /dev/null +++ b/kioslave/ftp/CMakeLists.txt @@ -0,0 +1,48 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore/network + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES ftp.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) + + +##### kio_ftp ################################### + +set( target kio_ftp ) + +set( ${target}_SRCS + ftp.cc +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kioslave/gzip/CMakeLists.txt b/kioslave/gzip/CMakeLists.txt new file mode 100644 index 000000000..184407d9b --- /dev/null +++ b/kioslave/gzip/CMakeLists.txt @@ -0,0 +1,45 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kio/kio +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES kgzipfilter.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +##### kgzipfilter ############################### + +set( target kgzipfilter ) + +set( ${target}_SRCS + kgzipfilter.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kioslave/http/CMakeLists.txt b/kioslave/http/CMakeLists.txt new file mode 100644 index 000000000..fed9fb28e --- /dev/null +++ b/kioslave/http/CMakeLists.txt @@ -0,0 +1,73 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( kcookiejar ) + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore/network + ${CMAKE_SOURCE_DIR}/interfaces + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/httpfilter +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES + http_cache_cleaner.desktop http.protocol https.protocol + webdav.protocol webdavs.protocol + DESTINATION ${SERVICES_INSTALL_DIR} ) + + +##### kio_http_cache_cleaner #################### + +set( target kio_http_cache_cleaner ) + +set( ${target}_SRCS + http_cache_cleaner.cpp +) + +tde_add_kdeinit_executable( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kio-shared +) + + +##### kio_http ################################## + +# FIXME GSSAPI support is not handled yet + +set( target kio_http ) + +set( ${target}_SRCS + http.cc +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK httpfilter-static kntlm-shared kio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kioslave/http/kcookiejar/CMakeLists.txt b/kioslave/http/kcookiejar/CMakeLists.txt new file mode 100644 index 000000000..9cd4b17f7 --- /dev/null +++ b/kioslave/http/kcookiejar/CMakeLists.txt @@ -0,0 +1,67 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES kcookiejar.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded ) +install( FILES kcookiescfg.upd DESTINATION ${DATA_INSTALL_DIR}/kconf_update ) +install( FILES domain_info DESTINATION ${DATA_INSTALL_DIR}/khtml ) + + +##### kcookiejar ################################ + +set( target kcookiejar ) + +set( ${target}_SRCS + main.cpp +) + +tde_add_kdeinit_executable( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdecore-shared +) + + +##### kded_kcookiejar ########################### + +set( target kded_kcookiejar ) + +set( ${target}_SRCS + kcookiejar.cpp kcookieserver.cpp kcookiewin.cpp + kcookieserver.skel +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdeui-shared kdeinit_kded-shared + DEPENDENCIES dcopidl + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kioslave/iso/CMakeLists.txt b/kioslave/iso/CMakeLists.txt new file mode 100644 index 000000000..2b7f57071 --- /dev/null +++ b/kioslave/iso/CMakeLists.txt @@ -0,0 +1,55 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( libisofs ) + + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES iso.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) +install( FILES isoservice.desktop DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus ) +install( FILES kio_isorc DESTINATION ${CONFIG_INSTALL_DIR} ) +install( FILES kio_iso.desktop DESTINATION ${SHARE_INSTALL_DIR}/applnk ) + + +##### kio_iso ################################### + +set( target kio_iso ) + +set( ${target}_SRCS + kisodirectory.cpp kisofile.cpp qfilehack.cpp + kiso.cpp iso.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK isofs-static kio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kioslave/iso/libisofs/CMakeLists.txt b/kioslave/iso/libisofs/CMakeLists.txt new file mode 100644 index 000000000..a9ef936a8 --- /dev/null +++ b/kioslave/iso/libisofs/CMakeLists.txt @@ -0,0 +1,23 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_BINARY_DIR} +) + + +##### isofs-static ############################## + +set( target isofs ) + +tde_add_library( ${target} STATIC_PIC + SOURCES isofs.c +) diff --git a/kioslave/metainfo/CMakeLists.txt b/kioslave/metainfo/CMakeLists.txt new file mode 100644 index 000000000..665c7c39f --- /dev/null +++ b/kioslave/metainfo/CMakeLists.txt @@ -0,0 +1,47 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES metainfo.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) + + +##### kio_metainfo ############################## + +set( target kio_metainfo ) + +set( ${target}_SRCS + metainfo.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kio-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kjs/CMakeLists.txt b/kjs/CMakeLists.txt new file mode 100644 index 000000000..042f6f0cd --- /dev/null +++ b/kjs/CMakeLists.txt @@ -0,0 +1,68 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + value.h types.h object.h interpreter.h operations.h + ustring.h lookup.h ${CMAKE_CURRENT_BINARY_DIR}/global.h + identifier.h property_map.h reference.h reference_list.h + completion.h scope_chain.h list.h simple_number.h function.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kjs ) + + +##### libkjs #################################### + +set( target kjs ) + +set( ${target}_SRCS + ustring.cpp date_object.cpp collector.cpp nodes.cpp + grammar.cpp lexer.cpp lookup.cpp operations.cpp + regexp.cpp function_object.cpp string_object.cpp + bool_object.cpp number_object.cpp internal.cpp + array_object.cpp math_object.cpp object_object.cpp + regexp_object.cpp error_object.cpp function.cpp + debugger.cpp value.cpp list.cpp object.cpp + interpreter.cpp property_map.cpp nodes2string.cpp + identifier.cpp reference.cpp reference_list.cpp + scope_chain.cpp dtoa.cpp +) + +tde_add_luts( + array_object.cpp math_object.cpp date_object.cpp + number_object.cpp string_object.cpp +) + +tde_add_lut( keywords.table lexer.lut.h lexer.cpp ) + +tde_add_library( ${target} SHARED + SOURCES ${${target}_SRCS} + VERSION 1.2.0 + LINK kdecore-shared + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/kmdi/CMakeLists.txt b/kmdi/CMakeLists.txt new file mode 100644 index 000000000..fcb71a42e --- /dev/null +++ b/kmdi/CMakeLists.txt @@ -0,0 +1,65 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( kmdi ) + + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/res + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kutils + ${CMAKE_SOURCE_DIR}/kmdi +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + kmdichildarea.h kmdichildfrm.h kmdichildfrmcaption.h + kmdidefines.h kmdiiterator.h kmdilistiterator.h + kmdimainfrm.h kmdinulliterator.h kmditaskbar.h + kmdichildview.h kmditoolviewaccessor.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + + +#### kmdi ####################################### + +set( target kmdi ) + +set( ${target}_SRCS + kmdichildarea.cpp kmdichildfrm.cpp kmdichildfrmcaption.cpp + kmdichildview.cpp kmdimainfrm.cpp kmditaskbar.cpp + kmdidockcontainer.cpp kmditoolviewaccessor.cpp + kmdiguiclient.cpp kmdidocumentviewtabwidget.cpp + kmdifocuslist.cpp +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 1.0.0 + LINK kmdi2-shared + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/kmdi/kmdi/CMakeLists.txt b/kmdi/kmdi/CMakeLists.txt new file mode 100644 index 000000000..6425d2a4c --- /dev/null +++ b/kmdi/kmdi/CMakeLists.txt @@ -0,0 +1,56 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kmdi + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kutils +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + global.h mainwindow.h toolviewaccessor.h tabwidget.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kmdi ) + + +#### kmdi2 ###################################### + +set( target kmdi2 ) + +set( ${target}_SRCS + mainwindow.cpp dockcontainer.cpp toolviewaccessor.cpp + guiclient.cpp tabwidget.cpp +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 1.0.0 + LINK kutils-shared + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/knewstuff/CMakeLists.txt b/knewstuff/CMakeLists.txt new file mode 100644 index 000000000..ad450d06a --- /dev/null +++ b/knewstuff/CMakeLists.txt @@ -0,0 +1,79 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfile +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + downloaddialog.h engine.h entry.h knewstuffgeneric.h + knewstuff.h providerdialog.h provider.h uploaddialog.h + knewstuffbutton.h knewstuffsecure.h + DESTINATION ${INCLUDE_INSTALL_DIR}/knewstuff ) + + +##### other data ################################ + +install( FILES types DESTINATION ${DATA_INSTALL_DIR}/knewstuff ) +install( FILES khotnewstuffrc DESTINATION ${CONFIG_INSTALL_DIR} ) +tde_install_icons( ) + + +##### knewstuff ################################# + +set( target knewstuff ) + +set( ${target}_SRCS + engine.cpp entry.cpp downloaddialog.cpp uploaddialog.cpp + providerdialog.cpp provider.cpp knewstuff.cpp security.cpp + knewstuffgeneric.cpp knewstuffbutton.cpp knewstuffsecure.cpp +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 1.0.0 + LINK kio-shared + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### khotnewstuff ############################## + +set( target khotnewstuff ) + +set( ${target}_SRCS + khotnewstuff.cpp +) + +tde_add_executable( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK knewstuff-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/kparts/CMakeLists.txt b/kparts/CMakeLists.txt new file mode 100644 index 000000000..e1fecef53 --- /dev/null +++ b/kparts/CMakeLists.txt @@ -0,0 +1,69 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + #${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfile +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + part.h plugin.h partmanager.h mainwindow.h dockmainwindow.h + event.h browserextension.h factory.h historyprovider.h + browserinterface.h genericfactory.h componentfactory.h + browserrun.h statusbarextension.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kparts ) + + +##### other data ################################ + +install( FILES + kpart.desktop krop.desktop krwp.desktop browserview.desktop + DESTINATION ${SHARE_INSTALL_DIR}/servicetypes ) + + +#### kparts ##################################### + +set( target kparts ) + +set( ${target}_SRCS + part.cpp plugin.cpp partmanager.cpp mainwindow.cpp + dockmainwindow.cpp event.cpp browserextension.cpp + factory.cpp historyprovider.cpp browserinterface.cpp + browserrun.cpp statusbarextension.cpp +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 2.1.0 + LINK kio-shared + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/krandr/CMakeLists.txt b/krandr/CMakeLists.txt new file mode 100644 index 000000000..48d8ef24d --- /dev/null +++ b/krandr/CMakeLists.txt @@ -0,0 +1,52 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${XRANDR_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${XRANDR_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + randr.h lowlevel_randr.h ktimerdialog.h libkrandr.h + DESTINATION ${INCLUDE_INSTALL_DIR}/libkrandr ) + + +##### krandr #################################### + +set( target krandr ) + +set( ${target}_SRCS + randr.cpp lowlevel_randr.c ktimerdialog.cpp libkrandr.cc +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 0.0.95 + LINK kdeui-shared ${XRANDR_LIBRARIES} + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/kresources/CMakeLists.txt b/kresources/CMakeLists.txt new file mode 100644 index 000000000..7e3e98313 --- /dev/null +++ b/kresources/CMakeLists.txt @@ -0,0 +1,82 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kio/kfile +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + resource.h configwidget.h factory.h manageriface.h + managerimpl.h manager.h selectdialog.h configdialog.h + configpage.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kresources ) + + +##### other data ################################ + +install( FILES kresources_plugin.desktop kresources_manager.desktop DESTINATION ${SHARE_INSTALL_DIR}/servicetypes ) + +# FIXME what is xdg_apps_DATA = kresources.desktop +install( FILES kresources.desktop DESTINATION ${SHARE_INSTALL_DIR}/applications/kde ) + + +##### kresources ################################ + +set( target kresources ) + +set( ${target}_SRCS + resource.cpp factory.cpp managerimpl.cpp configwidget.cpp + configdialog.cpp selectdialog.cpp configpage.cpp + manageriface.skel manageriface.stub +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 1.2.0 + LINK kio-shared + DESTINATION ${LIB_INSTALL_DIR} + DEPENDENCIES dcopidl +) + + +##### kcm_kresources ############################ + +set( target kcm_kresources ) + +set( ${target}_SRCS + kcmkresources.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kresources-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kspell2/CMakeLists.txt b/kspell2/CMakeLists.txt new file mode 100644 index 000000000..ac2df9720 --- /dev/null +++ b/kspell2/CMakeLists.txt @@ -0,0 +1,62 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( ui ) +add_subdirectory( plugins ) + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kutils + ${CMAKE_SOURCE_DIR}/kio + ${CMAKE_SOURCE_DIR}/kio/kio +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + settings.h filter.h dictionary.h broker.h + backgroundchecker.h defaultdictionary.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kspell2 ) + + +##### other data ################################ + +install( FILES kspellclient.desktop DESTINATION ${SHARE_INSTALL_DIR}/servicetypes ) + + +#### kspell2base ################################ + +set( target kspell2base ) + +set( ${target}_SRCS + settings.cpp broker.cpp client.cpp filter.cpp + backgroundchecker.cpp backgroundthread.cpp + backgroundengine.cpp defaultdictionary.cpp +) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} +) diff --git a/kspell2/plugins/CMakeLists.txt b/kspell2/plugins/CMakeLists.txt new file mode 100644 index 000000000..062d033d2 --- /dev/null +++ b/kspell2/plugins/CMakeLists.txt @@ -0,0 +1,20 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +if( WITH_ASPELL ) + add_subdirectory( aspell ) +endif(WITH_ASPELL) + +if( WITH_HSPELL ) + add_subdirectory( hspell ) +endif(WITH_HSPELL) + +add_subdirectory( ispell ) diff --git a/kspell2/plugins/aspell/CMakeLists.txt b/kspell2/plugins/aspell/CMakeLists.txt new file mode 100644 index 000000000..09b245cb1 --- /dev/null +++ b/kspell2/plugins/aspell/CMakeLists.txt @@ -0,0 +1,48 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kspell2 + ${CMAKE_SOURCE_DIR}/kdecore + ${ASPELL_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${ASPELL_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES kspell_aspell.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +#### kspell_aspell ############################## + +set( target kspell_aspell ) + +set( ${target}_SRCS + kspell_aspellclient.cpp kspell_aspelldict.cpp +) + +tde_add_kpart( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + LINK kspell2-shared ${ASPELL_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kspell2/plugins/hspell/CMakeLists.txt b/kspell2/plugins/hspell/CMakeLists.txt new file mode 100644 index 000000000..4af8a6ca5 --- /dev/null +++ b/kspell2/plugins/hspell/CMakeLists.txt @@ -0,0 +1,53 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kspell2 + ${CMAKE_SOURCE_DIR}/kdecore + ${HSPELL_INCLUDE_DIRS} +) + +link_directories( + ${TQT_LIBRARY_DIRS} + ${HSPELL_LIBARY_DIRS} +) + + +##### other data ################################ + +install( FILES kspell_hspell.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +#### kspell_hspell ############################## + +### FIXME Not checked because hspell was removed from gentoo few years ago. +### FIXME The maintainer recommend to use aspell with hebrew dictionary. +### FIXME Maybe support for hspell will be removed too? +### FIXME http://bugs.gentoo.org/show_bug.cgi?id=177546 + +set( target kspell_hspell ) + +set( ${target}_SRCS + kspell_hspellclient.cpp kspell_hspelldict.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kspell2-shared ${HSPELL_LIBRARIES} + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kspell2/plugins/ispell/CMakeLists.txt b/kspell2/plugins/ispell/CMakeLists.txt new file mode 100644 index 000000000..a1d7087a5 --- /dev/null +++ b/kspell2/plugins/ispell/CMakeLists.txt @@ -0,0 +1,48 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kspell2 + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES kspell_ispell.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) + + +#### kspell_ispell ############################## + +set( target kspell_ispell ) + +set( ${target}_SRCS + kspell_ispellclient.cpp kspell_ispelldict.cpp + correct.cpp good.cpp hash.cpp lookup.cpp makedent.cpp + tgood.cpp ispell_checker.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kspell2-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kspell2/ui/CMakeLists.txt b/kspell2/ui/CMakeLists.txt new file mode 100644 index 000000000..1348d39b4 --- /dev/null +++ b/kspell2/ui/CMakeLists.txt @@ -0,0 +1,67 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} + -DKDE_NO_COMPAT + -DQT_NO_COMPAT +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kspell2 + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + dialog.h highlighter.h configdialog.h configwidget.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kspell2 ) + + +#### kspell2 (static) ########################### + +set( target kspell2 ) + +set( ${target}_SRCS + configwidget.cpp highlighter.cpp configdialog.cpp + kspell2ui.ui configui.ui +) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} +) + + +#### kspell2 #################################### + +set( target kspell2 ) + +set( ${target}_SRCS + dialog.cpp +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 1.0.0 + LINK kspell2-static kspell2base-static kutils-shared + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/kstyles/CMakeLists.txt b/kstyles/CMakeLists.txt new file mode 100644 index 000000000..e7881dd04 --- /dev/null +++ b/kstyles/CMakeLists.txt @@ -0,0 +1,20 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( plastik ) +add_subdirectory( highcolor ) +add_subdirectory( highcontrast ) +add_subdirectory( themes ) +add_subdirectory( light ) +add_subdirectory( kthemestyle ) +add_subdirectory( riscos ) +add_subdirectory( utils ) +add_subdirectory( keramik ) diff --git a/kstyles/highcolor/CMakeLists.txt b/kstyles/highcolor/CMakeLists.txt new file mode 100644 index 000000000..309f0f44e --- /dev/null +++ b/kstyles/highcolor/CMakeLists.txt @@ -0,0 +1,42 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} + -DQT_PLUGIN +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### highcolor ################################# + +set( target highcolor ) + +set( ${target}_SRCS + highcolor.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdefx-shared + DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/styles +) diff --git a/kstyles/highcontrast/CMakeLists.txt b/kstyles/highcontrast/CMakeLists.txt new file mode 100644 index 000000000..ca2f998fc --- /dev/null +++ b/kstyles/highcontrast/CMakeLists.txt @@ -0,0 +1,50 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( config ) + + +add_definitions( + ${TQT_CFLAGS_OTHER} + -DQT_PLUGIN +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES highcontrast.themerc DESTINATION ${DATA_INSTALL_DIR}/kstyle/themes ) + + +##### highcontrast ############################## + +set( target highcontrast ) + +set( ${target}_SRCS + highcontrast.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdefx-shared + DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/styles +) diff --git a/kstyles/highcontrast/config/CMakeLists.txt b/kstyles/highcontrast/config/CMakeLists.txt new file mode 100644 index 000000000..8c634688f --- /dev/null +++ b/kstyles/highcontrast/config/CMakeLists.txt @@ -0,0 +1,41 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kstyle_highcontrast_config ################ + +set( target kstyle_highcontrast_config ) + +set( ${target}_SRCS + highcontrastconfig.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdecore-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kstyles/keramik/CMakeLists.txt b/kstyles/keramik/CMakeLists.txt new file mode 100644 index 000000000..61776a98d --- /dev/null +++ b/kstyles/keramik/CMakeLists.txt @@ -0,0 +1,71 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} + -UQT_NO_ASCII_CAST + -DQT_PLUGIN +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### genembed ################################## + +set( target genembed ) + +set( ${target}_SRCS + genembed.cpp +) + +tde_add_executable( ${target} + SOURCES ${${target}_SRCS} + LINK kdefx-shared +) + + +##### pixmaps.keramik ########################### + +file(GLOB _pics "${CMAKE_CURRENT_SOURCE_DIR}/pics/*.png" ) + +add_custom_command( + OUTPUT pixmaps.keramik keramikrc.h + COMMAND ./genembed ${_pics} 2>/dev/null > pixmaps.keramik + DEPENDS genembed ) + + +##### keramik ################################### + +set( target keramik ) + +set( ${target}_SRCS + keramik.cpp pixmaploader.cpp gradients.cpp colorutil.cpp +) + +set_source_files_properties( pixmaploader.cpp PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/pixmaps.keramik ) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdefx-shared + DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/styles +) diff --git a/kstyles/kthemestyle/CMakeLists.txt b/kstyles/kthemestyle/CMakeLists.txt new file mode 100644 index 000000000..94277030f --- /dev/null +++ b/kstyles/kthemestyle/CMakeLists.txt @@ -0,0 +1,42 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} + -DQT_PLUGIN +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kthemestyle ############################### + +set( target kthemestyle ) + +set( ${target}_SRCS + kthemebase.cpp kthemestyle.cpp kstyledirs.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdefx-shared kdecore-shared + DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/styles +) diff --git a/kstyles/light/CMakeLists.txt b/kstyles/light/CMakeLists.txt new file mode 100644 index 000000000..1da874a17 --- /dev/null +++ b/kstyles/light/CMakeLists.txt @@ -0,0 +1,42 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} + -DQT_PLUGIN +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### light ##################################### + +set( target light ) + +set( ${target}_SRCS + light.cpp lightstyle-v2.cpp lightstyle-v3.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdefx-shared + DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/styles +) diff --git a/kstyles/plastik/CMakeLists.txt b/kstyles/plastik/CMakeLists.txt new file mode 100644 index 000000000..d8694654c --- /dev/null +++ b/kstyles/plastik/CMakeLists.txt @@ -0,0 +1,49 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( config ) + +add_definitions( + ${TQT_CFLAGS_OTHER} + -DQT_PLUGIN +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +install( FILES plastik.themerc DESTINATION ${DATA_INSTALL_DIR}/kstyle/themes ) + + +##### plastik ################################### + +set( target plastik ) + +set( ${target}_SRCS + plastik.cpp misc.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdefx-shared + DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/styles +) diff --git a/kstyles/plastik/config/CMakeLists.txt b/kstyles/plastik/config/CMakeLists.txt new file mode 100644 index 000000000..89da74a16 --- /dev/null +++ b/kstyles/plastik/config/CMakeLists.txt @@ -0,0 +1,41 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### kstyle_plastik_config ###################### + +set( target kstyle_plastik_config ) + +set( ${target}_SRCS + plastikconf.cpp +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdeui-shared + DESTINATION ${PLUGIN_INSTALL_DIR} +) diff --git a/kstyles/riscos/CMakeLists.txt b/kstyles/riscos/CMakeLists.txt new file mode 100644 index 000000000..9ca5b25cf --- /dev/null +++ b/kstyles/riscos/CMakeLists.txt @@ -0,0 +1,30 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +install( FILES + arrowdown.png arrowdown_down.png arrowleft.png + arrowleft_down.png arrowright.png arrowright_down.png + arrowup.png arrowup_down.png background.png + check.png check_checked.png checkmark.png + combo.png combo_down.png hscrollback.png + hscrollbar.png hscrollbar_down.png hscrollborder.png + htab.png menu_back.png radio.png radio_down.png + raised_border.png scrollborder.png slider.png + sunk_border.png tab_up.png vscrollback.png + vscrollbar.png vscrollbar_down.png vscrollborder.png + vtab.png + DESTINATION ${DATA_INSTALL_DIR}/kstyle/pixmaps/riscos ) + +install( FILES + riscos.themerc + DESTINATION ${DATA_INSTALL_DIR}/kstyle/themes ) diff --git a/kstyles/themes/CMakeLists.txt b/kstyles/themes/CMakeLists.txt new file mode 100644 index 000000000..bb9f8ee63 --- /dev/null +++ b/kstyles/themes/CMakeLists.txt @@ -0,0 +1,23 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +install( FILES + qtplatinum.themerc qtcde.themerc qtmotif.themerc + qtwindows.themerc qtsgi.themerc qtmotifplus.themerc + highcolor.themerc default.themerc b3.themerc + light-v2.themerc light-v3.themerc keramik.themerc + DESTINATION ${DATA_INSTALL_DIR}/kstyle/themes ) + +install( FILES + kthemestylerc + DESTINATION ${CONFIG_INSTALL_DIR} ) diff --git a/kstyles/utils/CMakeLists.txt b/kstyles/utils/CMakeLists.txt new file mode 100644 index 000000000..17411c0dc --- /dev/null +++ b/kstyles/utils/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( installtheme ) diff --git a/kstyles/utils/installtheme/CMakeLists.txt b/kstyles/utils/installtheme/CMakeLists.txt new file mode 100644 index 000000000..86fa42c99 --- /dev/null +++ b/kstyles/utils/installtheme/CMakeLists.txt @@ -0,0 +1,38 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + +##### kinstalltheme ############################# + +set( target kinstalltheme ) + +set( ${target}_SRCS + main.cpp +) + +tde_add_executable( ${target} + SOURCES ${${target}_SRCS} + LINK kdecore-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/kunittest/CMakeLists.txt b/kunittest/CMakeLists.txt new file mode 100644 index 000000000..a78a5c00c --- /dev/null +++ b/kunittest/CMakeLists.txt @@ -0,0 +1,56 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES runner.h tester.h module.h + DESTINATION ${INCLUDE_INSTALL_DIR}/kunittest ) + + +##### libkunittest ############################## + +set( target kunittest ) + +set( ${target}_SRCS + runner.cpp tester.cpp +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 1.0.0 + LINK kdecore-shared + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### kunittestmodrunner ######################## + +tde_add_executable( kunittestmodrunner + SOURCES modrunner.cpp + LINK kunittest-shared + DESTINATION ${BIN_INSTALL_DIR} +) diff --git a/kutils/CMakeLists.txt b/kutils/CMakeLists.txt new file mode 100644 index 000000000..4a34ef930 --- /dev/null +++ b/kutils/CMakeLists.txt @@ -0,0 +1,69 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( ksettings ) + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio/kio + ${CMAKE_SOURCE_DIR}/kutils + ${CMAKE_SOURCE_DIR}/interfaces/kregexpeditor +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + kfind.h kfinddialog.h kreplace.h kreplacedialog.h + kcmoduleinfo.h kcmoduleloader.h kcmultidialog.h + kmultitabbar.h kplugininfo.h kcmoduleproxy.h + kpluginselector.h kcmodulecontainer.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + + +##### other data ################################ + +install( FILES kplugininfo.desktop DESTINATION ${SHARE_INSTALL_DIR}/servicetypes ) + + +#### kutils ##################################### + +set( target kutils ) + +set( ${target}_SRCS + kfind.cpp kfinddialog.cpp kreplace.cpp + kreplacedialog.cpp kcmoduleinfo.cpp kcmoduleloader.cpp + kcmultidialog.cpp kmultitabbar.cpp kplugininfo.cpp + kcmoduleproxy.cpp kpluginselector.cpp kcmodulecontainer.cpp + kcmoduleproxyIface.skel kcmoduleproxyIfaceImpl.cpp +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 1.2.0 + LINK ksettings-static kparts-shared + DESTINATION ${LIB_INSTALL_DIR} + DEPENDENCIES dcopidl +) diff --git a/kutils/ksettings/CMakeLists.txt b/kutils/ksettings/CMakeLists.txt new file mode 100644 index 000000000..1503152b4 --- /dev/null +++ b/kutils/ksettings/CMakeLists.txt @@ -0,0 +1,43 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kutils + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kio/kio +) + +##### headers ################################### + +install( FILES + dispatcher.h dialog.h pluginpage.h componentsdialog.h + DESTINATION ${INCLUDE_INSTALL_DIR}/ksettings ) + + +##### ksettings ################################# + +set( target ksettings ) + +set( ${target}_SRCS + dispatcher.cpp dialog.cpp pluginpage.cpp componentsdialog.cpp +) + +tde_add_library( ${target} STATIC_PIC AUTOMOC + SOURCES ${${target}_SRCS} +) diff --git a/kwallet/CMakeLists.txt b/kwallet/CMakeLists.txt new file mode 100644 index 000000000..fcc0f90d5 --- /dev/null +++ b/kwallet/CMakeLists.txt @@ -0,0 +1,13 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( client ) +add_subdirectory( backend ) diff --git a/kwallet/backend/CMakeLists.txt b/kwallet/backend/CMakeLists.txt new file mode 100644 index 000000000..d04cb5afd --- /dev/null +++ b/kwallet/backend/CMakeLists.txt @@ -0,0 +1,45 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kwallet/client + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### libkwalletbackend ######################### + +set( target kwalletbackend ) + +set( ${target}_SRCS + blockcipher.cc blowfish.cc + cbc.cc sha1.cc kwalletentry.cc + kwalletbackend.cc +) + +tde_add_library( ${target} SHARED + SOURCES ${${target}_SRCS} + VERSION 1.0.0 + LINK kdecore-shared + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/kwallet/client/CMakeLists.txt b/kwallet/client/CMakeLists.txt new file mode 100644 index 000000000..cb739fa6c --- /dev/null +++ b/kwallet/client/CMakeLists.txt @@ -0,0 +1,50 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + kwallet.h kwallettypes.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + + +##### libkwalletclient ############################## + +set( target kwalletclient ) + +set( ${target}_SRCS + kwallet.skel kwallet.cc +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 1.0.1 + LINK kdecore-shared + DEPENDENCIES dcopidl + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/libkmid/CMakeLists.txt b/libkmid/CMakeLists.txt new file mode 100644 index 000000000..490e5c9e0 --- /dev/null +++ b/libkmid/CMakeLists.txt @@ -0,0 +1,55 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/kdecore +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + midiout.h player.h track.h midimapper.h midfile.h + dattypes.h midistat.h deviceman.h synthout.h + fmout.h gusout.h alsaout.h voiceman.h notearray.h + mt32togm.h midispec.h libkmid.h + DESTINATION ${INCLUDE_INSTALL_DIR}/libkmid ) + + +##### kmid ###################################### + +set( target kmid ) + +set( ${target}_SRCS + midiout.cc player.cc track.cc midimapper.cc + midfile.cc dattypes.cc midistat.cc deviceman.cc + synthout.cc fmout.cc gusout.cc alsaout.cc voiceman.cc + mt32togm.cc notearray.cc libkmid.cc +) + +tde_add_library( ${target} SHARED + SOURCES ${${target}_SRCS} + VERSION 0.0.95 + LINK kdecore-shared ${ALSA_LIBRARIES} + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/libkscreensaver/CMakeLists.txt b/libkscreensaver/CMakeLists.txt new file mode 100644 index 000000000..375186b5c --- /dev/null +++ b/libkscreensaver/CMakeLists.txt @@ -0,0 +1,51 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_BINARY_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore +) + +list( REMOVE_ITEM CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" ) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + kscreensaver.h kscreensaver_vroot.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + + +##### kscreensaver ############################## + +set( target kscreensaver ) + +set( ${target}_SRCS + main.cpp kscreensaver.cpp +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 4.2.0 + LINK kdecore-shared + DESTINATION ${LIB_INSTALL_DIR} +) diff --git a/libltdl/CMakeLists.txt b/libltdl/CMakeLists.txt new file mode 100644 index 000000000..9e409693e --- /dev/null +++ b/libltdl/CMakeLists.txt @@ -0,0 +1,18 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +include_directories( + ${CMAKE_BINARY_DIR} +) + +tde_add_library( ltdlc STATIC_PIC + SOURCES ltdl.c +) diff --git a/licenses/CMakeLists.txt b/licenses/CMakeLists.txt new file mode 100644 index 000000000..fa6b0cfdd --- /dev/null +++ b/licenses/CMakeLists.txt @@ -0,0 +1,16 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +install( FILES + BSD GPL_V2 LGPL_V2 QPL_V1.0 ARTISTIC + DESTINATION ${DATA_INSTALL_DIR}/LICENSES ) diff --git a/mimetypes/CMakeLists.txt b/mimetypes/CMakeLists.txt new file mode 100644 index 000000000..6ecf4836f --- /dev/null +++ b/mimetypes/CMakeLists.txt @@ -0,0 +1,25 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( application ) +add_subdirectory( text ) +add_subdirectory( audio ) +add_subdirectory( video ) +add_subdirectory( image ) +add_subdirectory( inode ) +add_subdirectory( message ) +add_subdirectory( multipart ) +add_subdirectory( model ) +add_subdirectory( uri ) + +##### other data ################################ + +install( FILES all.desktop allfiles.desktop DESTINATION ${MIME_INSTALL_DIR}/all ) diff --git a/mimetypes/application/CMakeLists.txt b/mimetypes/application/CMakeLists.txt new file mode 100644 index 000000000..3a406698b --- /dev/null +++ b/mimetypes/application/CMakeLists.txt @@ -0,0 +1,110 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +install( FILES + x-dvi.desktop x-gzdvi.desktop x-bz2dvi.desktop + x-tex-gf.desktop x-gzip.desktop x-pak.desktop + x-object.desktop x-tex-pk.desktop pdf.desktop + x-tar.desktop x-trash.desktop x-zip.desktop + x-zip-compressed.desktop x-core.desktop x-javascript.desktop + java.desktop x-java.desktop x-java-applet.desktop + x-jar.desktop x-arj.desktop x-tarz.desktop + x-gzpostscript.desktop postscript.desktop octet-stream.desktop + x-shellscript.desktop x-desktop.desktop + x-executable.desktop x-executable-script.desktop x-archive.desktop x-lha.desktop + x-tbz.desktop x-tgz.desktop x-awk.desktop + x-perl.desktop x-perl-module.desktop x-compress.desktop x-cpio.desktop + x-rpm.desktop msword.desktop x-sharedlib.desktop + wordperfect.desktop x-troff.desktop x-troff-man.desktop + x-python.desktop x-python-bytecode.desktop + x-bzip.desktop x-bzip2.desktop mspowerpoint.desktop vnd.ms-powerpoint.desktop + msexcel.desktop smil.desktop x-rar.desktop x-zoo.desktop + x-tzo.desktop x-lzop.desktop + x-applixword.desktop x-applixspread.desktop x-applixgraphics.desktop + xhtml+xml.desktop vnd.ms-excel.desktop vnd.ms-word.desktop + x-shockwave-flash.desktop x-designer.desktop x-linguist.desktop + x-ogg.desktop ogg.desktop x-pkcs12.desktop x-x509-ca-cert.desktop + pkcs7-signature.desktop pgp-signature.desktop pgp-encrypted.desktop + pgp-keys.desktop pgp.desktop x-msmetafile.desktop + x-mswrite.desktop illustrator.desktop x-abiword.desktop + x-gnumeric.desktop x-graphite.desktop x-karbon.desktop x-kchart.desktop + x-kformula.desktop x-kivio.desktop x-kontour.desktop + x-kpresenter.desktop x-krita.desktop + x-kspread.desktop x-kugar.desktop x-kword.desktop + x-quattropro.desktop x-amipro.desktop x-tgif.desktop + x-lyx.desktop x-zerosize.desktop x-kpovmodeler.desktop x-cda.desktop + pkcs7-mime.desktop pkcs10.desktop sieve.desktop mbox.desktop + x-hancomword.desktop + x-font-bdf.desktop x-font-pcf.desktop x-font-speedo.desktop x-font-type1.desktop + x-font-ghostscript.desktop x-font-snf.desktop x-font-ttf.desktop + vnd.ms-asf.desktop x-msdos-program.desktop x-deb.desktop x-debian-package.desktop + vnd.stardivision.writer.desktop vnd.stardivision.calc.desktop + vnd.stardivision.impress.desktop + vnd.sun.xml.impress.desktop vnd.sun.xml.writer.desktop + vnd.sun.xml.base.desktop + x-magicpoint.desktop x-vnd.kde.kugar.mixed.desktop x-vnd.kde.kexi.desktop + vnd.palm.desktop x-kudesigner.desktop x-vnd.kde.kplato.desktop + vnd.sun.xml.calc.desktop mathml+xml.desktop x-bittorrent.desktop + x-msaccess.desktop x-gettext.desktop x-ruby.desktop x-kcsrc.desktop + x-php.desktop x-font-ttc.desktop x-font-otf.desktop + vnd.mozilla.xul+xml.desktop vnd.sun.xml.draw.desktop + x-kde-wallet.desktop x-cue.desktop x-ica.desktop x-iso.desktop x-ace.desktop + x-afm.desktop x-arc.desktop vnd.rn-realmedia.desktop x-dbase.desktop + vnd.sun.xml.calc.template.desktop vnd.sun.xml.writer.template.desktop + vnd.sun.xml.impress.template.desktop vnd.sun.xml.draw.template.desktop + vnd.stardivision.chart.desktop vnd.stardivision.draw.desktop + vnd.stardivision.math.desktop vnd.stardivision.writer-global.desktop vnd.sun.xml.writer.master.desktop + x-xliff.desktop x-7z.desktop xml.desktop x-webarchive.desktop x-mimearchive.desktop + xsd.desktop relaxng.desktop + vnd.oasis.opendocument.graphics-template.desktop + vnd.oasis.opendocument.graphics.desktop + vnd.oasis.opendocument.formula.desktop + vnd.oasis.opendocument.presentation-template.desktop + vnd.oasis.opendocument.presentation.desktop + vnd.oasis.opendocument.spreadsheet-template.desktop + vnd.oasis.opendocument.spreadsheet.desktop + vnd.oasis.opendocument.text-template.desktop + vnd.oasis.opendocument.text.desktop + vnd.oasis.opendocument.image.desktop + vnd.oasis.opendocument.chart.desktop + x-java-jnlp-file.desktop xml-dtd.desktop fits.desktop + x-rar-compressed.desktop + x-sqlite2.desktop x-sqlite3.desktop chm.desktop + x-mplayer2.desktop + x-nzb.desktop + vnd.openxmlformats-officedocument.wordprocessingml.document.desktop + vnd.openxmlformats-officedocument.wordprocessingml.template.desktop + vnd.ms-word.document.macroEnabled.12.desktop + vnd.ms-word.template.macroEnabled.12.desktop + vnd.openxmlformats-officedocument.spreadsheetml.sheet.desktop + vnd.openxmlformats-officedocument.spreadsheetml.template.desktop + vnd.ms-excel.sheet.macroEnabled.12.desktop + vnd.ms-excel.template.macroEnabled.12.desktop + vnd.ms-excel.addin.macroEnabled.12.desktop + vnd.ms-excel.sheet.binary.macroEnabled.12.desktop + vnd.openxmlformats-officedocument.presentationml.presentation.desktop + vnd.openxmlformats-officedocument.presentationml.template.desktop + vnd.openxmlformats-officedocument.presentationml.slideshow.desktop + vnd.ms-powerpoint.addin.macroEnabled.12.desktop + vnd.ms-powerpoint.presentation.macroEnabled.12.desktop + vnd.ms-powerpoint.template.macroEnabled.12.desktop + vnd.ms-powerpoint.slideshow.macroEnabled.12.desktop + x-lzma.desktop + x-tlz.desktop + x-txz.desktop + x-xz.desktop + DESTINATION ${MIME_INSTALL_DIR}/application ) + +install( FILES uninstall.desktop DESTINATION ${MIME_INSTALL_DIR}/application RENAME x-applix.desktop ) +install( FILES uninstall.desktop DESTINATION ${MIME_INSTALL_DIR}/application RENAME x-oowriter.desktop ) +install( FILES uninstall.desktop DESTINATION ${MIME_INSTALL_DIR}/application RENAME x-ooimpress.desktop ) diff --git a/mimetypes/audio/CMakeLists.txt b/mimetypes/audio/CMakeLists.txt new file mode 100644 index 000000000..6fb010435 --- /dev/null +++ b/mimetypes/audio/CMakeLists.txt @@ -0,0 +1,24 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +install( FILES + x-wav.desktop x-mod.desktop x-midi.desktop + x-mp3.desktop x-mp2.desktop mp4.desktop mpeg.desktop + basic.desktop x-adpcm.desktop x-aiff.desktop + x-pn-realaudio.desktop x-pn-realaudio-plugin.desktop vnd.rn-realaudio.desktop + x-mpegurl.desktop mpegurl.desktop x-scpls.desktop + vorbis.desktop x-vorbis.desktop + x-flac.desktop x-oggflac.desktop x-speex.desktop + x-matroska.desktop x-musepack.desktop + ac3.desktop aac.desktop x-ms-wma.desktop prs.sid.desktop + DESTINATION ${MIME_INSTALL_DIR}/audio ) diff --git a/mimetypes/image/CMakeLists.txt b/mimetypes/image/CMakeLists.txt new file mode 100644 index 000000000..5f8d24f45 --- /dev/null +++ b/mimetypes/image/CMakeLists.txt @@ -0,0 +1,27 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +install( FILES + jpeg.desktop jpg.desktop tiff.desktop x-xpm.desktop x-xbm.desktop + svg+xml.desktop svg-xml.desktop png.desktop gif.desktop fax-g3.desktop cgm.desktop + x-bmp.desktop x-photo-cd.desktop x-eps.desktop x-ico.desktop + x-jng.desktop x-xcf-gimp.desktop x-wmf.desktop x-msod.desktop + x-xfig.desktop x-portable-bitmap.desktop x-portable-greymap.desktop + x-portable-pixmap.desktop x-pcx.desktop x-targa.desktop jp2.desktop + x-vnd.trolltech.qpicture.desktop x-vnd.adobe.photoshop.desktop + x-xcursor.desktop pjpeg.desktop x-exr.desktop + x-rgb.desktop x-dds.desktop x-djvu.desktop x-djvu-2.desktop x-hdr.desktop + fits.desktop x-raw.desktop + DESTINATION ${MIME_INSTALL_DIR}/image ) + +install( FILES uninstall.desktop DESTINATION ${MIME_INSTALL_DIR}/image RENAME wmf.desktop ) diff --git a/mimetypes/inode/CMakeLists.txt b/mimetypes/inode/CMakeLists.txt new file mode 100644 index 000000000..34115a827 --- /dev/null +++ b/mimetypes/inode/CMakeLists.txt @@ -0,0 +1,17 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +install( FILES + block.desktop chardevice.desktop directory-locked.desktop + directory.desktop fifo.desktop socket.desktop + DESTINATION ${MIME_INSTALL_DIR}/inode ) diff --git a/mimetypes/message/CMakeLists.txt b/mimetypes/message/CMakeLists.txt new file mode 100644 index 000000000..d3a6da24a --- /dev/null +++ b/mimetypes/message/CMakeLists.txt @@ -0,0 +1,16 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +install( FILES + rfc822.desktop news.desktop + DESTINATION ${MIME_INSTALL_DIR}/message ) diff --git a/mimetypes/model/CMakeLists.txt b/mimetypes/model/CMakeLists.txt new file mode 100644 index 000000000..b101c70aa --- /dev/null +++ b/mimetypes/model/CMakeLists.txt @@ -0,0 +1,16 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +install( FILES + vrml.desktop + DESTINATION ${MIME_INSTALL_DIR}/model ) diff --git a/mimetypes/multipart/CMakeLists.txt b/mimetypes/multipart/CMakeLists.txt new file mode 100644 index 000000000..02ed296f5 --- /dev/null +++ b/mimetypes/multipart/CMakeLists.txt @@ -0,0 +1,17 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +install( FILES + mixed.desktop x-mixed-replace.desktop + DESTINATION ${MIME_INSTALL_DIR}/multipart ) + diff --git a/mimetypes/text/CMakeLists.txt b/mimetypes/text/CMakeLists.txt new file mode 100644 index 000000000..354c16ada --- /dev/null +++ b/mimetypes/text/CMakeLists.txt @@ -0,0 +1,27 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +install( FILES + x-c++src.desktop x-c++hdr.desktop x-csrc.desktop x-java.desktop + x-makefile.desktop x-moc.desktop x-pascal.desktop x-objchdr.desktop + x-tcl.desktop x-tex.desktop html.desktop plain.desktop enriched.desktop x-chdr.desktop + rtf.desktop sgml.desktop xml.desktop css.desktop x-vcard.desktop x-ldif.desktop + x-vcalendar.desktop x-diff.desktop x-objcsrc.desktop x-log.desktop + x-bibtex.desktop rdf.desktop rss.desktop calendar.desktop x-adasrc.desktop + x-csv.desktop x-latex.desktop x-xslfo.desktop x-xslt.desktop vnd.wap.wml.desktop x-katefilelist.desktop + docbook.desktop x-mswinurl.desktop x-hex.desktop vnd.abc.desktop javascript.desktop x-python.desktop + DESTINATION ${MIME_INSTALL_DIR}/text ) + +install( FILES uninstall.desktop DESTINATION ${MIME_INSTALL_DIR}/text RENAME x-perl.desktop ) +install( FILES uninstall.desktop DESTINATION ${MIME_INSTALL_DIR}/text RENAME x-python.desktop ) +install( FILES uninstall.desktop DESTINATION ${MIME_INSTALL_DIR}/text RENAME x-lyx.desktop ) diff --git a/mimetypes/uri/CMakeLists.txt b/mimetypes/uri/CMakeLists.txt new file mode 100644 index 000000000..751f9aa62 --- /dev/null +++ b/mimetypes/uri/CMakeLists.txt @@ -0,0 +1,16 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +install( FILES + mms.desktop mmst.desktop mmsu.desktop pnm.desktop rtspt.desktop rtspu.desktop + DESTINATION ${MIME_INSTALL_DIR}/uri ) diff --git a/mimetypes/video/CMakeLists.txt b/mimetypes/video/CMakeLists.txt new file mode 100644 index 000000000..18514777e --- /dev/null +++ b/mimetypes/video/CMakeLists.txt @@ -0,0 +1,19 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +install( FILES + mpeg.desktop quicktime.desktop x-flic.desktop + x-msvideo.desktop x-mng.desktop x-ms-asf.desktop x-ms-wmv.desktop + x-theora.desktop mp4.desktop x-ogm.desktop x-matroska.desktop + vnd.rn-realvideo.desktop avi.desktop + DESTINATION ${MIME_INSTALL_DIR}/video ) diff --git a/networkstatus/CMakeLists.txt b/networkstatus/CMakeLists.txt new file mode 100644 index 000000000..707d01cf6 --- /dev/null +++ b/networkstatus/CMakeLists.txt @@ -0,0 +1,106 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/dcop + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdeui + ${CMAKE_SOURCE_DIR}/kded +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### headers ################################### + +install( FILES + serviceiface.h provideriface.h connectionmanager.h + networkstatuscommon.h networkstatusindicator.h + networkstatusiface.h + DESTINATION ${INCLUDE_INSTALL_DIR} ) + + +##### other data ################################ + +install( FILES networkstatus.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded ) + + +##### networkstatus ############################# + +set( target networkstatus ) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES networkstatuscommon.cpp + VERSION 0.0.0 + LINK kdeui-shared + DESTINATION ${LIB_INSTALL_DIR} +) + + +##### connectionmanager ######################### + +set( target connectionmanager ) + +set( ${target}_SRCS + connectionmanager.cpp networkstatusindicator.cpp + connectionmanager.skel clientiface.stub networkstatusiface.stub +) + +tde_add_library( ${target} SHARED AUTOMOC + SOURCES ${${target}_SRCS} + VERSION 0.0.0 + LINK networkstatus-shared + DESTINATION ${LIB_INSTALL_DIR} + DEPENDENCIES dcopidl +) + + +##### kded_networkstatus ######################## + +set( target kded_networkstatus ) + +set( ${target}_SRCS + networkstatus.cpp network.cpp networkstatus.skel + clientiface.skel serviceiface.skel +) + +tde_add_kpart( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK kdeinit_kded-shared networkstatus-shared + DESTINATION ${PLUGIN_INSTALL_DIR} + DEPENDENCIES dcopidl +) + + +##### networkstatustestservice ################## + +set( target networkstatustestservice ) + +set( ${target}_SRCS + testservice.cpp provideriface.skel serviceiface.stub +) + +tde_add_executable( ${target} AUTOMOC + SOURCES ${${target}_SRCS} + LINK networkstatus-shared + DESTINATION ${BIN_INSTALL_DIR} + DEPENDENCIES dcopidl +) diff --git a/pics/CMakeLists.txt b/pics/CMakeLists.txt new file mode 100644 index 000000000..5aacdb482 --- /dev/null +++ b/pics/CMakeLists.txt @@ -0,0 +1,57 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +add_subdirectory( hicolor ) +add_subdirectory( crystalsvg ) +add_subdirectory( emoticons ) + + +# ksvgtopng is compiled only if we have libart support +if( WITH_LIBART ) + +add_definitions( + ${TQT_CFLAGS_OTHER} +) + +include_directories( + ${TQT_INCLUDE_DIRS} + ${LIBART_INCLUDE_DIRS} + ${CMAKE_BINARY_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdefx + ${CMAKE_SOURCE_DIR}/kdecore + ${CMAKE_SOURCE_DIR}/kdecore/svgicons +) + +link_directories( + ${TQT_LIBRARY_DIRS} +) + + +##### other data ################################ + +tde_install_symlink( crystalsvg ${SHARE_INSTALL_DIR}/icons/default.kde ) + + +##### ksvgtopng ################################# + +set( target ksvgtopng ) + +set( ${target}_SRCS + ksvgtopng.cpp +) + +tde_add_executable( ${target} + SOURCES ${${target}_SRCS} + LINK kdesvgicons-static kdecore-shared + DESTINATION ${BIN_INSTALL_DIR} +) + +endif( WITH_LIBART ) diff --git a/pics/crystalsvg/CMakeLists.txt b/pics/crystalsvg/CMakeLists.txt new file mode 100644 index 000000000..04c9d81fc --- /dev/null +++ b/pics/crystalsvg/CMakeLists.txt @@ -0,0 +1,15 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +# FIXME generating png icons are not implemented + +install( FILES index.theme DESTINATION ${ICONS_INSTALL_DIR}/crystalsvg ) +tde_install_icons( ) diff --git a/pics/emoticons/CMakeLists.txt b/pics/emoticons/CMakeLists.txt new file mode 100644 index 000000000..6dbb77b23 --- /dev/null +++ b/pics/emoticons/CMakeLists.txt @@ -0,0 +1,24 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +##### other data ################################ + +install( FILES + angry.png bat.png beer.png biggrin.png cake.png + camera.png cat.png clock.png cocktail.png confused.png + cry.png cup.png dog.png email.png embarassed.png + emoticons.xml film.png kiss.png lightbulb.png love.png + note.png oh.png omg.png phone.png present.png rose.png + sad.png shade.png sleep.png smile.png star.png + teeth.png thumbs_down.png thumbs_up.png tongue.png + unhappy.png unlove.png wilted_rose.png wink.png + foot_in_mouth.png innocent.png undecided.png + DESTINATION ${SHARE_INSTALL_DIR}/emoticons/Default ) diff --git a/pics/hicolor/CMakeLists.txt b/pics/hicolor/CMakeLists.txt new file mode 100644 index 000000000..5998fe2a8 --- /dev/null +++ b/pics/hicolor/CMakeLists.txt @@ -0,0 +1,12 @@ +################################################# +# +# (C) 2010 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES index.theme DESTINATION ${ICONS_INSTALL_DIR}/hicolor ) |