Legacy_v2.pro 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. #-------------------------------------------------
  2. #
  3. # Project created by QtCreator 2018-07-12T19:45:49
  4. #
  5. #-------------------------------------------------
  6. QT += core gui network
  7. QMAKE_LFLAGS_RELEASE += -static -static-libgcc -static-libstdc++
  8. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  9. TARGET = Legacy_v2
  10. TEMPLATE = app
  11. CXXFLAGS += -O2 -fno-stack-limit
  12. CONFIG += resources_big
  13. # The following define makes your compiler emit warnings if you use
  14. # any feature of Qt which has been marked as deprecated (the exact warnings
  15. # depend on your compiler). Please consult the documentation of the
  16. # deprecated API in order to know how to port your code away from it.
  17. DEFINES += QT_DEPRECATED_WARNINGS
  18. # You can also make your code fail to compile if you use deprecated APIs.
  19. # In order to do so, uncomment the following line.
  20. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  21. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  22. # ================================================== #
  23. message(================QT INFO====================)
  24. message(Qt version: $$[QT_VERSION])
  25. message(Qt is installed in $$[QT_INSTALL_PREFIX])
  26. # ================================================== #
  27. message(==========BUILDING EXTERNAL RES============)
  28. win32 {
  29. build_pass: CONFIG(debug, debug|release) {
  30. DESTDIR = $$OUT_PWD/debug
  31. }
  32. else: build_pass {
  33. DESTDIR = $$OUT_PWD/release
  34. }
  35. }
  36. unix {
  37. DESTDIR = $$OUT_PWD
  38. }
  39. guiRes.target = BuildResources
  40. exists($$DESTDIR/res) {
  41. message("Directory $$DESTDIR/res already exists")
  42. } else {
  43. guiRes.commands += $(MKDIR) \"$$DESTDIR/res\" $$escape_expand(\n\t)
  44. }
  45. EXT_RES = \
  46. "$$PWD/backgrounds.qrc -o $$DESTDIR/data01.gtr" \
  47. "$$PWD/common.qrc -o $$DESTDIR/data02.gtr" \
  48. for (RES, EXT_RES) {
  49. win32 {
  50. message(rcc.exe -binary $${RES})
  51. guiRes.commands += rcc.exe -binary $${RES} $$escape_expand(\n\t)
  52. }
  53. unix {
  54. guiRes.commands += rcc -binary $${RES} $$escape_expand(\n\t)
  55. }
  56. }
  57. QMAKE_EXTRA_TARGETS += guiRes
  58. PRE_TARGETDEPS += BuildResources
  59. # ================================================== #
  60. SOURCES += \
  61. src/main.cpp \
  62. gui/mainwindow.cpp \
  63. src/menuentry.cpp \
  64. src/legacyapp.cpp \
  65. src/filesystem.cpp \
  66. gui/statuswidget.cpp \
  67. gui/rusificationwidget.cpp \
  68. gui/settingswidget.cpp \
  69. gui/newswidget.cpp \
  70. gui/helpwidget.cpp \
  71. src/networkdownloader.cpp \
  72. src/rusificationtreeitem.cpp
  73. HEADERS += \
  74. gui/mainwindow.h \
  75. include/menuentry.h \
  76. include/legacyapp.h \
  77. include/filesystem.h \
  78. gui/statuswidget.h \
  79. gui/rusificationwidget.h \
  80. gui/settingswidget.h \
  81. gui/newswidget.h \
  82. gui/helpwidget.h \
  83. include/networkdownloader.h \
  84. include/rusificationtreeitem.h
  85. FORMS += \
  86. gui/mainwindow.ui \
  87. gui/statuswidget.ui \
  88. gui/rusificationwidget.ui \
  89. gui/settingswidget.ui \
  90. gui/newswidget.ui \
  91. gui/helpwidget.ui
  92. RESOURCES += \
  93. backgrounds.qrc \
  94. common.qrc
  95. win32:RC_ICONS = $$PWD/assets/appicon.ico
  96. unix:!macx|win32: LIBS += -L$$PWD/lib/lib/ -lLotroDat_static
  97. INCLUDEPATH += $$PWD/lib/include
  98. INCLUDEPATH += $$PWD/include
  99. INCLUDEPATH += $$PWD/gui
  100. DEPENDPATH += $$PWD/lib/include
  101. win32:!win32-g++: PRE_TARGETDEPS += $$PWD/lib/lib/LotroDat_static.lib
  102. else:unix:!macx|win32-g++: PRE_TARGETDEPS += $$PWD/lib/lib/libLotroDat_static.a
  103. unix:!macx|win32: LIBS += -L$$PWD/lib/Third_party/lib/ -lyaml-cpp
  104. INCLUDEPATH += $$PWD/lib/Third_party
  105. DEPENDPATH += $$PWD/lib/Third_party
  106. win32:!win32-g++: PRE_TARGETDEPS += $$PWD/lib/Third_party/lib/yaml-cpp.lib
  107. else:unix:!macx|win32-g++: PRE_TARGETDEPS += $$PWD/lib/Third_party/lib/libyaml-cpp.a
  108. unix:!macx|win32: LIBS += -L$$PWD/lib/Third_party/lib/ -lzlibstatic
  109. INCLUDEPATH += $$PWD/lib/Third_party
  110. DEPENDPATH += $$PWD/lib/Third_party
  111. win32:!win32-g++: PRE_TARGETDEPS += $$PWD/lib/Third_party/lib/zlibstatic.lib
  112. else:unix:!macx|win32-g++: PRE_TARGETDEPS += $$PWD/lib/Third_party/lib/libzlibstatic.a
  113. DISTFILES +=