Qqsp.pro 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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. # t2g_locations.c \
  96. # txt2gam.c
  97. HEADERS += \
  98. qsp/actions.h \
  99. qsp/callbacks.h \
  100. qsp/codetools.h \
  101. qsp/coding.h \
  102. qsp/common.h \
  103. qsp/declarations.h \
  104. qsp/errors.h \
  105. qsp/game.h \
  106. qsp/locations.h \
  107. qsp/mathops.h \
  108. qsp/menu.h \
  109. qsp/objects.h \
  110. qsp/playlist.h \
  111. qsp/qsp.h \
  112. qsp/statements.h \
  113. qsp/text.h \
  114. qsp/time_qsp.h \
  115. qsp/variables.h \
  116. qsp/variant.h \
  117. qsp/onig/config.h \
  118. qsp/onig/oniguruma.h \
  119. qsp/onig/regenc.h \
  120. qsp/onig/regint.h \
  121. qsp/onig/regparse.h \
  122. qsp/onig/st.h \
  123. qsp/bindings/bindings_config.h \
  124. qsp/bindings/default/qsp_default.h
  125. # t2g_locations.h \
  126. # txt2gam.h
  127. RESOURCES += \
  128. qqsp.qrc
  129. #CONFIG += enable-debug
  130. enable-debug {
  131. DEFINES += _DEBUGMW
  132. SOURCES += qsp/memwatch.c
  133. HEADERS += qsp/memwatch.h
  134. }
  135. CONFIG += enable-webbox
  136. enable-webbox {
  137. DEFINES += _WEBBOX
  138. DEFINES += _WEBBOX_COMMON
  139. QT += webengine webenginewidgets webchannel
  140. SOURCES += qspwebbox.cpp \
  141. qspwebengineurlrequestinterceptor.cpp \
  142. qspwebengineurlschemehandler.cpp \
  143. qspexecwebengineurlschemehandler.cpp \
  144. url_schemes.cpp \
  145. qspwebchannel.cpp
  146. HEADERS += qspwebbox.h \
  147. qspwebengineurlrequestinterceptor.h \
  148. qspwebengineurlschemehandler.h \
  149. qspexecwebengineurlschemehandler.h \
  150. url_schemes.h \
  151. qspwebchannel.h
  152. }
  153. #CONFIG += enable-webbox-webkit
  154. enable-webbox-webkit {
  155. DEFINES += _WEBBOX_WEBKIT
  156. DEFINES += _WEBBOX_COMMON
  157. QT += webkitwidgets
  158. SOURCES += qspwebbox_webkit.cpp \
  159. qspnetworkaccessmanager.cpp \
  160. qspreply.cpp
  161. HEADERS += qspwebbox_webkit.h \
  162. qspnetworkaccessmanager.h \
  163. qspreply.h
  164. }
  165. unix:!macx {
  166. CONFIG += disable-nativedialog
  167. }
  168. disable-nativedialog {
  169. DEFINES += _NONATIVEDIALOG
  170. }
  171. #CONFIG += enable-android
  172. enable-android {
  173. DEFINES += _ANDROIDQT
  174. QT += androidextras
  175. SOURCES += androidfiledialog.cpp
  176. HEADERS += androidfiledialog.h
  177. }
  178. ICON = icons/qsp-logo.icns
  179. isEmpty(TARGET_EXT) {
  180. win32 {
  181. TARGET_CUSTOM_EXT = .exe
  182. }
  183. macx {
  184. TARGET_CUSTOM_EXT = .app
  185. }
  186. } else {
  187. TARGET_CUSTOM_EXT = $${TARGET_EXT}
  188. }
  189. win32 {
  190. DEPLOY_COMMAND = windeployqt
  191. CONFIG( debug, debug|release ) {
  192. # debug
  193. DEPLOY_TARGET = $$shell_quote($$shell_path($${OUT_PWD}/debug/$${TARGET}$${TARGET_CUSTOM_EXT}))
  194. } else {
  195. # release
  196. DEPLOY_TARGET = $$shell_quote($$shell_path($${OUT_PWD}/release/$${TARGET}$${TARGET_CUSTOM_EXT}))
  197. }
  198. }
  199. macx {
  200. DEPLOY_COMMAND = macdeployqt
  201. CONFIG( debug, debug|release ) {
  202. # debug
  203. DEPLOY_TARGET = $$shell_quote($$shell_path($${OUT_PWD}/$${TARGET}$${TARGET_CUSTOM_EXT}))
  204. } else {
  205. # release
  206. DEPLOY_TARGET = $$shell_quote($$shell_path($${OUT_PWD}/$${TARGET}$${TARGET_CUSTOM_EXT}))
  207. }
  208. }
  209. # # Uncomment the following line to help debug the deploy command when running qmake
  210. # warning($${DEPLOY_COMMAND} $${DEPLOY_TARGET})
  211. win32|macx {
  212. QMAKE_POST_LINK = $${DEPLOY_COMMAND} $${DEPLOY_TARGET}
  213. }
  214. VERSION = 1.9.0.0
  215. win32:RC_ICONS += icons/logo.ico
  216. win32:QMAKE_TARGET_COMPANY = Qqsp
  217. win32:QMAKE_TARGET_DESCRIPTION = Qqsp
  218. win32:QMAKE_TARGET_PRODUCT = Qqsp