qstardict.pro 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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. dictbrowsersearch.ui \
  28. mainwindow.ui \
  29. settingsdialog.ui
  30. HEADERS += \
  31. ../plugins/dictplugin.h \
  32. ../plugins/baseplugin.h \
  33. ../plugins/trayplugin.h \
  34. ../plugins/pluginserver.h \
  35. ../plugins/metadata.h \
  36. appinfo.h \
  37. application.h \
  38. cssedit.h \
  39. dictbrowser.h \
  40. dictcore.h \
  41. dictwidget.h \
  42. help.h \
  43. ipa.h \
  44. keyboard.h \
  45. mainwindow.h \
  46. popupwindow.h \
  47. resizablepopup.h \
  48. selection.h \
  49. settingsdialog.h \
  50. speaker.h \
  51. trayicon.h \
  52. dictbrowsersearch.h \
  53. pluginsview.h \
  54. pluginsmodel.h \
  55. pluginmanager.h \
  56. util.h
  57. unix:isEmpty(NO_DBUS):HEADERS += \
  58. dbusadaptor.h
  59. SOURCES += \
  60. appinfo.cpp \
  61. application.cpp \
  62. cssedit.cpp \
  63. dictbrowser.cpp \
  64. dictcore.cpp \
  65. dictwidget.cpp \
  66. help.cpp \
  67. ipa.cpp \
  68. keyboard.cpp \
  69. main.cpp \
  70. mainwindow.cpp \
  71. popupwindow.cpp \
  72. resizablepopup.cpp \
  73. selection.cpp \
  74. settingsdialog.cpp \
  75. speaker.cpp \
  76. trayicon.cpp \
  77. dictbrowsersearch.cpp \
  78. pluginsview.cpp \
  79. pluginsmodel.cpp \
  80. pluginmanager.cpp \
  81. util.cpp
  82. unix:isEmpty(NO_DBUS):SOURCES += \
  83. dbusadaptor.cpp
  84. # From https://github.com/hluk/CopyQ/tree/92ec805b41bd097cbe523c08e320e3d32fc1c511
  85. unix | win32 {
  86. DEFINES += BUILD_QXT_GUI
  87. QXT_DIR = ..
  88. INCLUDEPATH += $$QXT_DIR
  89. HEADERS += $$QXT_DIR/qxt/qxtglobal.h
  90. SOURCES += $$QXT_DIR/qxt/qxtglobal.cpp
  91. HEADERS += $$QXT_DIR/qxt/qxtglobalshortcut.h
  92. HEADERS += $$QXT_DIR/qxt/qxtglobalshortcut_p.h
  93. SOURCES += $$QXT_DIR/qxt/qxtglobalshortcut.cpp
  94. unix:!macx: SOURCES += $$QXT_DIR/qxt/qxtglobalshortcut_x11.cpp
  95. macx: SOURCES += $$QXT_DIR/qxt/qxtglobalshortcut_mac.cpp
  96. win32: SOURCES += $$QXT_DIR/qxt/qxtglobalshortcut_win.cpp
  97. QT += gui-private
  98. }
  99. RESOURCES += \
  100. pixmaps/pixmaps.qrc
  101. win32:RC_FILE += \
  102. qstardict.rc
  103. DISTFILES += \
  104. qstardict.png \
  105. qstardict.desktop
  106. target.path = $$BIN_DIR
  107. INSTALLS += target
  108. unix:!macx {
  109. desktop_icon.files = qstardict.png
  110. desktop_icon.path = $$INSTALL_PREFIX/share/pixmaps
  111. desktop_icon.files = qstardict.svg
  112. desktop_icon.path = $$INSTALL_PREFIX/share/icons/hicolor/scalable/apps
  113. desktop_file.files = qstardict.desktop
  114. desktop_file.path = $$INSTALL_PREFIX/share/applications
  115. INSTALLS += desktop_icon desktop_file
  116. }
  117. macx {
  118. ICON = pixmaps/qstardict.icns
  119. }