qstardict.pro 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #############################################################################
  2. # qstardict.pro - QStarDict, a StarDict clone written with using Qt #
  3. # Copyright (C) 2008 Alexander Rodin #
  4. # #
  5. # This program is free software; you can redistribute it and/or modify #
  6. # it under the terms of the GNU General Public License as published by #
  7. # the Free Software Foundation; either version 2 of the License, or #
  8. # (at your option) any later version. #
  9. # #
  10. # This program is distributed in the hope that it will be useful, #
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of #
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
  13. # GNU General Public License for more details. #
  14. # #
  15. # You should have received a copy of the GNU General Public License along #
  16. # with this program; if not, write to the Free Software Foundation, Inc., #
  17. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. #
  18. #############################################################################
  19. TEMPLATE = subdirs
  20. include(qstardict.pri)
  21. SUBDIRS = qstardict plugins translations
  22. DOCS += \
  23. AUTHORS \
  24. COPYING \
  25. ChangeLog \
  26. THANKS
  27. MAN += qstardict.1
  28. DISTFILES += $$DOCS \
  29. INSTALL \
  30. README
  31. message("Enabled plugins: "$$ENABLED_PLUGINS)
  32. unix {
  33. isEmpty(NO_DBUS) {
  34. message("D-Bus support: enabled")
  35. } else {
  36. message("D-Bus support: disabled")
  37. }
  38. }
  39. isEmpty(NO_TRANSLATIONS) {
  40. message("Translations: enabled")
  41. } else {
  42. message("Translations: disabled")
  43. }
  44. isEmpty(NO_TRAY_ICON): {
  45. message("Tray icon: enabled")
  46. } else {
  47. message("Tray icon: disabled")
  48. }
  49. message("Install prefix: "$$INSTALL_PREFIX)
  50. message("Binary directory: "$$BIN_DIR)
  51. message("Data directory: "$$DATA_DIR)
  52. isEmpty(NO_TRANSLATIONS):message("Translations directory: "$$TRANSLATIONS_DIR)
  53. message("Plugins directory: "$$PLUGINS_DIR)
  54. message("Documentation directory: "$$DOCS_DIR)
  55. win32 {
  56. isEmpty(GLIB2PATH) {
  57. error("No Glib2 library path (GLIB2PATH) is set.")
  58. } else {
  59. message("Glib2 location is set to $$GLIB2PATH")
  60. }
  61. isEmpty(ZLIBPATH) {
  62. error("No zlib library path (ZLIBPATH) is set.")
  63. } else {
  64. message("Zlib location is set to $$ZLIBPATH")
  65. }
  66. }
  67. docs.files = $$DOCS
  68. docs.path = $$DOCS_DIR
  69. man.files = $$MAN
  70. man.path = $$MAN_DIR
  71. INSTALLS += docs man
  72. isEmpty(NO_TRANSLATIONS):include(translations/translations.pri)