mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00

this is TODO from issue #9. CPack and CTest configs will not be supported. most of the changes done to other repisitories is automated via: find -type f -exec sed -i -e 's|${INSTALL_DIR}|${KDE4_INSTALL_DIR}|g' \ -e 's|${EXEC_INSTALL_PREFIX}|${KDE4_EXEC_INSTALL_PREFIX}|g' \ -e 's|${SHARE_INSTALL_PREFIX}|${KDE4_SHARE_INSTALL_PREFIX}|g' \ -e 's|${BIN_INSTALL_DIR}|${KDE4_BIN_INSTALL_DIR}|g' \ -e 's|${SBIN_INSTALL_DIR}|${KDE4_SBIN_INSTALL_DIR}|g' \ -e 's|${LIB_INSTALL_DIR}|${KDE4_LIB_INSTALL_DIR}|g' \ -e 's|${LIBEXEC_INSTALL_DIR}|${KDE4_LIBEXEC_INSTALL_DIR}|g' \ -e 's|${INCLUDE_INSTALL_DIR}|${KDE4_INCLUDE_INSTALL_DIR}|g' \ -e 's|${PLUGIN_INSTALL_DIR}|${KDE4_PLUGIN_INSTALL_DIR}|g' \ -e 's|${IMPORTS_INSTALL_DIR}|${KDE4_IMPORTS_INSTALL_DIR}|g' \ -e 's|${CONFIG_INSTALL_DIR}|${KDE4_CONFIG_INSTALL_DIR}|g' \ -e 's|${DATA_INSTALL_DIR}|${KDE4_DATA_INSTALL_DIR}|g' \ -e 's|${ICON_INSTALL_DIR}|${KDE4_ICON_INSTALL_DIR}|g' \ -e 's|${KCFG_INSTALL_DIR}|${KDE4_KCFG_INSTALL_DIR}|g' \ -e 's|${LOCALE_INSTALL_DIR}|${KDE4_LOCALE_INSTALL_DIR}|g' \ -e 's|${MIME_INSTALL_DIR}|${KDE4_MIME_INSTALL_DIR}|g' \ -e 's|${SERVICES_INSTALL_DIR}|${KDE4_SERVICES_INSTALL_DIR}|g' \ -e 's|${SERVICETYPES_INSTALL_DIR}|${KDE4_SERVICETYPES_INSTALL_DIR}|g' \ -e 's|${SOUND_INSTALL_DIR}|${KDE4_SOUND_INSTALL_DIR}|g' \ -e 's|${TEMPLATES_INSTALL_DIR}|${KDE4_TEMPLATES_INSTALL_DIR}|g' \ -e 's|${WALLPAPER_INSTALL_DIR}|${KDE4_WALLPAPER_INSTALL_DIR}|g' \ -e 's|${AUTOSTART_INSTALL_DIR}|${KDE4_AUTOSTART_INSTALL_DIR}|g' \ -e 's|${XDG_APPS_INSTALL_DIR}|${KDE4_XDG_APPS_INSTALL_DIR}|g' \ -e 's|${XDG_DIRECTORY_INSTALL_DIR}|${KDE4_XDG_DIRECTORY_INSTALL_DIR}|g' \ -e 's|${XDG_MIME_INSTALL_DIR}|${KDE4_XDG_MIME_INSTALL_DIR}|g' \ -e 's|${SYSCONF_INSTALL_DIR}|${KDE4_SYSCONF_INSTALL_DIR}|g' \ -e 's|${MAN_INSTALL_DIR}|${KDE4_MAN_INSTALL_DIR}|g' \ -e 's|${INFO_INSTALL_DIR}|${KDE4_INFO_INSTALL_DIR}|g' \ -e 's|${DBUS_INTERFACES_INSTALL_DIR}|${KDE4_DBUS_INTERFACES_INSTALL_DIR}|g' \ -e 's|${DBUS_SERVICES_INSTALL_DIR}|${KDE4_DBUS_SERVICES_INSTALL_DIR}|g' \ -e 's|${DBUS_SYSTEM_SERVICES_INSTALL_DIR}|${KDE4_DBUS_SYSTEM_SERVICES_INSTALL_DIR}|g' \ -e 's|${KAUTH_HELPER_PLUGIN_DIR}|${KDE4_KAUTH_HELPER_PLUGIN_DIR}|g' \ -e 's|${KAUTH_BACKEND_PLUGIN_DIR}|${KDE4_KAUTH_BACKEND_PLUGIN_DIR}|g' {} + note that if you execute this command you may corrupt the git repository files so move the .git directory out of the way. you can also verify that there are no other reference to the compatibility installation paths via: git grep \ -e INSTALL_DIR \ -e EXEC_INSTALL_PREFIX \ -e SHARE_INSTALL_PREFIX \ -e BIN_INSTALL_DIR \ -e SBIN_INSTALL_DIR \ -e LIB_INSTALL_DIR \ -e LIBEXEC_INSTALL_DIR \ -e INCLUDE_INSTALL_DIR \ -e PLUGIN_INSTALL_DIR \ -e IMPORTS_INSTALL_DIR \ -e CONFIG_INSTALL_DIR \ -e DATA_INSTALL_DIR \ -e ICON_INSTALL_DIR \ -e KCFG_INSTALL_DIR \ -e LOCALE_INSTALL_DIR \ -e MIME_INSTALL_DIR \ -e SERVICES_INSTALL_DIR \ -e SERVICETYPES_INSTALL_DIR \ -e SOUND_INSTALL_DIR \ -e TEMPLATES_INSTALL_DIR \ -e WALLPAPER_INSTALL_DIR \ -e AUTOSTART_INSTALL_DIR \ -e XDG_APPS_INSTALL_DIR \ -e XDG_DIRECTORY_INSTALL_DIR \ -e XDG_MIME_INSTALL_DIR \ -e SYSCONF_INSTALL_DIR \ -e MAN_INSTALL_DIR \ -e INFO_INSTALL_DIR \ -e DBUS_INTERFACES_INSTALL_DIR \ -e DBUS_SERVICES_INSTALL_DIR \ -e DBUS_SYSTEM_SERVICES_INSTALL_DIR \ -e KAUTH_HELPER_PLUGIN_DIR \ -e KAUTH_BACKEND_PLUGIN_DIR | grep -v KDE4_ this change should make default installation Filesystem Hierarchy Standard (FHS) compliant and packaging easier since library suffix (e.g. 64 for x86_64 hosts) will not have to be specified explicitly, it may solve possible conflicts with installation path variables from other projects which use custom installation paths aswell Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
110 lines
2.7 KiB
CMake
110 lines
2.7 KiB
CMake
/* config.h. Generated by cmake from config.h.cmake */
|
|
|
|
/* NOTE: only add something here if it is really needed by all of kdelibs.
|
|
Otherwise please prefer adding to the relevant config-foo.h.cmake file,
|
|
to minimize recompilations and increase modularity. */
|
|
|
|
/****************************/
|
|
|
|
/* Define to 1 if you have stdio.h */
|
|
#cmakedefine HAVE_STDIO_H 1
|
|
|
|
/* Define to 1 if you have stdlib.h */
|
|
#cmakedefine HAVE_STDLIB_H 1
|
|
|
|
/* Define to 1 if you have string.h */
|
|
#cmakedefine HAVE_STRING_H 1
|
|
|
|
/* Define to 1 if you have strings.h */
|
|
#cmakedefine HAVE_STRINGS_H 1
|
|
|
|
/* define if message translations are enabled */
|
|
#cmakedefine ENABLE_NLS 1
|
|
|
|
#cmakedefine HAVE_VOLMGT 1
|
|
|
|
#cmakedefine HAVE_ERRNO_H 1
|
|
#cmakedefine HAVE_STDINT_H 1
|
|
#cmakedefine HAVE_SYS_STAT_H 1
|
|
#cmakedefine HAVE_SYS_TYPES_H 1
|
|
#cmakedefine HAVE_SYS_PARAM_H 1
|
|
#cmakedefine HAVE_SYS_TIME_H 1
|
|
#cmakedefine HAVE_SYS_SELECT_H 1
|
|
#cmakedefine HAVE_SYSENT_H 1
|
|
#cmakedefine HAVE_SYS_MNTTAB_H 1
|
|
#cmakedefine HAVE_SYS_MNTENT_H 1
|
|
#cmakedefine HAVE_SYS_MOUNT_H 1
|
|
|
|
#cmakedefine HAVE_FSTAB_H 1
|
|
#cmakedefine HAVE_LIMITS_H 1
|
|
#cmakedefine HAVE_MNTENT_H 1
|
|
#cmakedefine HAVE_UNISTD_H 1
|
|
|
|
#cmakedefine HAVE_XTEST 1
|
|
|
|
/* Define to 1 if you have the Xcursor library */
|
|
#cmakedefine HAVE_XCURSOR 1
|
|
|
|
/* Define to 1 if you have the Xfixes library */
|
|
#cmakedefine HAVE_XFIXES 1
|
|
|
|
/* Define to 1 if you have the Xrender library */
|
|
#cmakedefine HAVE_XRENDER 1
|
|
|
|
#cmakedefine HAVE_BACKTRACE 1
|
|
#cmakedefine HAVE_GETMNTINFO 1
|
|
#cmakedefine HAVE_INITGROUPS 1
|
|
#cmakedefine HAVE_FDATASYNC 1
|
|
#cmakedefine HAVE_MKSTEMPS 1
|
|
#cmakedefine HAVE_MKSTEMP 1
|
|
#cmakedefine HAVE_MKDTEMP 1
|
|
#cmakedefine HAVE_SENDFILE 1
|
|
#cmakedefine HAVE_SETENV 1
|
|
#cmakedefine HAVE_SETEUID 1
|
|
#cmakedefine HAVE_SETMNTENT 1
|
|
#cmakedefine HAVE_STRLCPY 1
|
|
#cmakedefine HAVE_STRLCAT 1
|
|
#cmakedefine HAVE_STRTOLL 1
|
|
#cmakedefine HAVE_UNSETENV 1
|
|
#cmakedefine HAVE_USLEEP 1
|
|
#cmakedefine HAVE_VSNPRINTF 1
|
|
#cmakedefine HAVE_GETTIMEOFDAY 1
|
|
#cmakedefine HAVE_GETGROUPLIST 1
|
|
#cmakedefine HAVE_TRUNC 1
|
|
|
|
#cmakedefine HAVE_S_ISSOCK 1
|
|
|
|
#cmakedefine TIME_WITH_SYS_TIME 1
|
|
|
|
/*********************/
|
|
|
|
#ifndef HAVE_S_ISSOCK
|
|
#define HAVE_S_ISSOCK
|
|
#define S_ISSOCK(mode) (1==0)
|
|
#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
|
|
|
|
#cmakedefine GETMNTINFO_USES_STATVFS 1
|
|
|
|
/* Defined to 1 if you have a d_type member in struct dirent */
|
|
#cmakedefine HAVE_DIRENT_D_TYPE 1
|