qstardict.pro 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 = app
  20. TARGET = qstardict
  21. macx {
  22. TARGET = QStarDict
  23. }
  24. include(../qstardict.pri)
  25. FORMS += \
  26. cssedit.ui \
  27. mainwindow.ui \
  28. settingsdialog.ui \
  29. dictbrowsersearch.ui
  30. HEADERS += \
  31. application.h \
  32. cssedit.h \
  33. dictbrowser.h \
  34. dictcore.h \
  35. ../plugins/dictplugin.h \
  36. dictwidget.h \
  37. keyboard.h \
  38. mainwindow.h \
  39. popupwindow.h \
  40. resizablepopup.h \
  41. selection.h \
  42. settingsdialog.h \
  43. speaker.h \
  44. trayicon.h \
  45. dictbrowsersearch.h
  46. unix:isEmpty(NO_DBUS):HEADERS += \
  47. dbusadaptor.h
  48. SOURCES += \
  49. application.cpp \
  50. cssedit.cpp \
  51. dictbrowser.cpp \
  52. dictcore.cpp \
  53. dictwidget.cpp \
  54. keyboard.cpp \
  55. main.cpp \
  56. mainwindow.cpp \
  57. popupwindow.cpp \
  58. resizablepopup.cpp \
  59. selection.cpp \
  60. settingsdialog.cpp \
  61. speaker.cpp \
  62. trayicon.cpp \
  63. dictbrowsersearch.cpp
  64. unix:isEmpty(NO_DBUS):SOURCES += \
  65. dbusadaptor.cpp
  66. RESOURCES += \
  67. pixmaps/pixmaps.qrc
  68. win32:RC_FILE += \
  69. qstardict.rc
  70. DISTFILES += \
  71. qstardict.png \
  72. qstardict.desktop
  73. target.path = $$BIN_DIR
  74. INSTALLS += target
  75. # translations *has* go after current target (mac required)
  76. isEmpty(NO_TRANSLATIONS):include("translations/translations.pri")
  77. unix:!macx {
  78. desktop_icon.files = qstardict.png
  79. desktop_icon.path = $$INSTALL_PREFIX/share/pixmaps
  80. desktop_file.files = qstardict.desktop
  81. desktop_file.path = $$INSTALL_PREFIX/share/applications
  82. INSTALLS += desktop_icon desktop_file
  83. }
  84. macx {
  85. ICON = pixmaps/qstardict.icns
  86. }