1
0

Qqsp.pro 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. QT += core gui widgets multimedia
  2. #QT += multimedia-private
  3. TARGET = Qqsp
  4. TEMPLATE = app
  5. # The following define makes your compiler emit warnings if you use
  6. # any feature of Qt which has been marked as deprecated (the exact warnings
  7. # depend on your compiler). Please consult the documentation of the
  8. # deprecated API in order to know how to port your code away from it.
  9. DEFINES += QT_DEPRECATED_WARNINGS
  10. # You can also make your code fail to compile if you use deprecated APIs.
  11. # In order to do so, uncomment the following line.
  12. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  13. DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  14. CONFIG += c++14
  15. #CONFIG += c11
  16. #QMAKE_CXXFLAGS+= -std=c++14
  17. QMAKE_CFLAGS += -std=c11
  18. INCLUDEPATH += $$PWD/qsp/bindings/default/
  19. #INCLUDEPATH += $$PWD/qsp/qsp/
  20. #INCLUDEPATH += $$PWD/qsp/qsp/onig/
  21. SOURCES += \
  22. main.cpp \
  23. mainwindow.cpp \
  24. qsptextbox.cpp \
  25. qsplistbox.cpp \
  26. qspinputbox.cpp \
  27. qspimgcanvas.cpp \
  28. qspmsgdlg.cpp \
  29. qspinputdlg.cpp \
  30. callbacks_gui.cpp \
  31. comtools.cpp \
  32. optionsdialog.cpp \
  33. videoframeprocessor.cpp \
  34. videolabel.cpp
  35. HEADERS += \
  36. mainwindow.h \
  37. qsptextbox.h \
  38. qsplistbox.h \
  39. qspinputbox.h \
  40. qspimgcanvas.h \
  41. qspmsgdlg.h \
  42. qspinputdlg.h \
  43. callbacks_gui.h \
  44. comtools.h \
  45. optionsdialog.h \
  46. videoframeprocessor.h \
  47. videolabel.h
  48. FORMS += \
  49. optionsdialog.ui
  50. TRANSLATIONS = Qqsp.en.ts \
  51. Qqsp.ru.ts
  52. DEFINES += _UNICODE
  53. DEFINES += NOT_RUBY
  54. #DEFINES += EXPORT
  55. SOURCES += \
  56. qsp/actions.c \
  57. qsp/callbacks.c \
  58. qsp/codetools.c \
  59. qsp/coding.c \
  60. qsp/common.c \
  61. qsp/errors.c \
  62. qsp/game.c \
  63. qsp/locations.c \
  64. qsp/mathops.c \
  65. qsp/menu.c \
  66. qsp/objects.c \
  67. qsp/playlist.c \
  68. qsp/statements.c \
  69. qsp/text.c \
  70. qsp/time_qsp.c \
  71. qsp/towlower.c \
  72. qsp/towupper.c \
  73. qsp/variables.c \
  74. qsp/variant.c \
  75. qsp/onig/regcomp.c \
  76. qsp/onig/regenc.c \
  77. qsp/onig/regerror.c \
  78. qsp/onig/regexec.c \
  79. qsp/onig/regparse.c \
  80. qsp/onig/regsyntax.c \
  81. qsp/onig/regtrav.c \
  82. qsp/onig/regversion.c \
  83. qsp/onig/st.c \
  84. qsp/onig/enc/ascii.c \
  85. qsp/onig/enc/cp1251.c \
  86. qsp/onig/enc/koi8_r.c \
  87. qsp/onig/enc/unicode.c \
  88. qsp/onig/enc/utf16_be.c \
  89. qsp/onig/enc/utf16_le.c \
  90. qsp/onig/enc/utf32_be.c \
  91. qsp/onig/enc/utf32_le.c \
  92. qsp/bindings/default/default_callbacks.c \
  93. qsp/bindings/default/default_coding.c \
  94. qsp/bindings/default/default_control.c
  95. HEADERS += \
  96. qsp/actions.h \
  97. qsp/callbacks.h \
  98. qsp/codetools.h \
  99. qsp/coding.h \
  100. qsp/common.h \
  101. qsp/declarations.h \
  102. qsp/errors.h \
  103. qsp/game.h \
  104. qsp/locations.h \
  105. qsp/mathops.h \
  106. qsp/menu.h \
  107. qsp/objects.h \
  108. qsp/playlist.h \
  109. qsp/qsp.h \
  110. qsp/statements.h \
  111. qsp/text.h \
  112. qsp/time_qsp.h \
  113. qsp/variables.h \
  114. qsp/variant.h \
  115. qsp/onig/config.h \
  116. qsp/onig/oniguruma.h \
  117. qsp/onig/regenc.h \
  118. qsp/onig/regint.h \
  119. qsp/onig/regparse.h \
  120. qsp/onig/st.h \
  121. qsp/bindings/bindings_config.h \
  122. qsp/bindings/default/qsp_default.h
  123. RESOURCES += \
  124. qqsp.qrc
  125. #CONFIG += enable-debug
  126. enable-debug {
  127. DEFINES += _DEBUGMW
  128. SOURCES += qsp/memwatch.c
  129. HEADERS += qsp/memwatch.h
  130. }
  131. CONFIG += enable-webbox
  132. enable-webbox {
  133. DEFINES += _WEBBOX
  134. DEFINES += _WEBBOX_COMMON
  135. QT += webengine webenginewidgets
  136. SOURCES += qspwebbox.cpp \
  137. qspwebengineurlrequestinterceptor.cpp \
  138. qspwebengineurlschemehandler.cpp \
  139. qspexecwebengineurlschemehandler.cpp
  140. HEADERS += qspwebbox.h \
  141. qspwebengineurlrequestinterceptor.h \
  142. qspwebengineurlschemehandler.h \
  143. qspexecwebengineurlschemehandler.h
  144. }
  145. #CONFIG += enable-webbox-webkit
  146. enable-webbox-webkit {
  147. DEFINES += _WEBBOX_WEBKIT
  148. DEFINES += _WEBBOX_COMMON
  149. QT += webkitwidgets
  150. SOURCES += qspwebbox_webkit.cpp \
  151. qspnetworkaccessmanager.cpp \
  152. qspreply.cpp
  153. HEADERS += qspwebbox_webkit.h \
  154. qspnetworkaccessmanager.h \
  155. qspreply.h
  156. }
  157. unix:!macx {
  158. CONFIG += disable-nativedialog
  159. }
  160. disable-nativedialog {
  161. DEFINES += _NONATIVEDIALOG
  162. }
  163. #CONFIG += enable-android
  164. enable-android {
  165. DEFINES += _ANDROIDQT
  166. QT += androidextras
  167. SOURCES += androidfiledialog.cpp
  168. HEADERS += androidfiledialog.h
  169. }
  170. ICON = icons/qsp-logo.icns
  171. isEmpty(TARGET_EXT) {
  172. win32 {
  173. TARGET_CUSTOM_EXT = .exe
  174. }
  175. macx {
  176. TARGET_CUSTOM_EXT = .app
  177. }
  178. } else {
  179. TARGET_CUSTOM_EXT = $${TARGET_EXT}
  180. }
  181. win32 {
  182. DEPLOY_COMMAND = windeployqt
  183. CONFIG( debug, debug|release ) {
  184. # debug
  185. DEPLOY_TARGET = $$shell_quote($$shell_path($${OUT_PWD}/debug/$${TARGET}$${TARGET_CUSTOM_EXT}))
  186. } else {
  187. # release
  188. DEPLOY_TARGET = $$shell_quote($$shell_path($${OUT_PWD}/release/$${TARGET}$${TARGET_CUSTOM_EXT}))
  189. }
  190. }
  191. macx {
  192. DEPLOY_COMMAND = macdeployqt
  193. CONFIG( debug, debug|release ) {
  194. # debug
  195. DEPLOY_TARGET = $$shell_quote($$shell_path($${OUT_PWD}/$${TARGET}$${TARGET_CUSTOM_EXT}))
  196. } else {
  197. # release
  198. DEPLOY_TARGET = $$shell_quote($$shell_path($${OUT_PWD}/$${TARGET}$${TARGET_CUSTOM_EXT}))
  199. }
  200. }
  201. # # Uncomment the following line to help debug the deploy command when running qmake
  202. # warning($${DEPLOY_COMMAND} $${DEPLOY_TARGET})
  203. win32|macx {
  204. QMAKE_POST_LINK = $${DEPLOY_COMMAND} $${DEPLOY_TARGET}
  205. }
  206. VERSION = 1.6.0.0
  207. win32:RC_ICONS += icons/logo.ico
  208. win32:QMAKE_TARGET_COMPANY = Qqsp
  209. win32:QMAKE_TARGET_DESCRIPTION = Qqsp
  210. win32:QMAKE_TARGET_PRODUCT = Qqsp