Schematic editor
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

config.h.in 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * config.h.in
  3. *
  4. * Tries to fix various differences in compilers and libraries.
  5. *
  6. */
  7. #ifndef __CONFIG_H__
  8. #define __CONFIG_H__
  9. #define PROJECT_NAME "${PROJECT_NAME}"
  10. #define PROJECT_VERSION "${project_VERSION}"
  11. #define PROJECT_URL "${project_URL}"
  12. #cmakedefine OPTION_NOINSTALL
  13. #ifdef OPTION_NOINSTALL
  14. /* For developers. */
  15. #define PROJECT_SHARE_DIR "${CMAKE_SOURCE_DIR}/share/"
  16. #define PROJECT_GSETTINGS_DIR "${CMAKE_BINARY_DIR}"
  17. #elif defined (_WIN32)
  18. #define PROJECT_SHARE_DIR "share/${PROJECT_NAME}/"
  19. #else
  20. #define PROJECT_SHARE_DIR "${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME}/"
  21. #endif
  22. #include <glib/gi18n.h>
  23. #define GETTEXT_DOMAIN "${PROJECT_NAME}"
  24. #ifdef _WIN32
  25. #define GETTEXT_DIRNAME "share/locale"
  26. #else
  27. #define GETTEXT_DIRNAME "${CMAKE_INSTALL_PREFIX}/share/locale"
  28. #endif
  29. /* We have to remove nodes first due to a bug in json-glib. */
  30. #define json_object_set_member(object, name, node) \
  31. G_STMT_START { \
  32. json_object_remove_member ((object), (name)); \
  33. json_object_set_member ((object), (name), (node)); \
  34. } G_STMT_END
  35. #endif /* __CONFIG_H__ */