logdiag/config.h.in
Přemysl Janouch b2223d6595 Integrate GSettings, remember View settings.
The org.logdiag ID has been chosen as I haven't found any specific rules
and com.github.logdiag seems not to be future-proof. This domain remains
available so far, anyway.

The schemas are compiled only when installed directly to CMAKE_INSTALL_PREFIX
to the root filesystem. When invoking `make install` with DESTDIR, only
the XML files are copied over as the schemas would have to be recompiled
later anyway.
2011-06-12 10:05:16 +02:00

57 lines
1.2 KiB
C

/*
* config.h.in
*
* Tries to fix various differences in compilers and libraries.
*
*/
#ifndef __CONFIG_H__
#define __CONFIG_H__
#define PROJECT_NAME "${PROJECT_NAME}"
#define PROJECT_VERSION "${project_VERSION}"
#define PROJECT_URL "${project_URL}"
#if ${OPTION_NOINSTALL}
/* For developers. */
#define PROJECT_SHARE_DIR "${CMAKE_SOURCE_DIR}/share/"
#define PROJECT_GSETTINGS_DIR "${CMAKE_BINARY_DIR}"
#elif defined (_WIN32)
#define PROJECT_SHARE_DIR "share/${PROJECT_NAME}/"
#else
#define PROJECT_SHARE_DIR "${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME}/"
#endif
#cmakedefine HAVE_SANE___RESTRICT
#cmakedefine HAVE_RESTRICT
#include <glib/gi18n.h>
#define GETTEXT_DOMAIN "${PROJECT_NAME}"
#ifdef _WIN32
#define GETTEXT_DIRNAME "share/locale"
#else
#define GETTEXT_DIRNAME "${CMAKE_INSTALL_PREFIX}/share/locale"
#endif
#ifndef HAVE_SANE___RESTRICT
#ifdef HAVE_RESTRICT
#define __restrict restrict
#else
#define __restrict
#endif
#endif /* ! HAVE_SANE___RESTRICT */
/* We have to remove nodes first due to a bug in json-glib. */
#define json_object_set_member(object, name, node) \
G_STMT_START { \
json_object_remove_member ((object), (name)); \
json_object_set_member ((object), (name), (node)); \
} G_STMT_END
#endif /* __CONFIG_H__ */