LibreHubClient.pro 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. QT += quick quickcontrols2 svg
  2. TARGET = librehub-client
  3. CONFIG += c++17
  4. win32 {
  5. LIBS += -L$$PWD/lib/win32_mingw64/
  6. }
  7. linux-g++ | linux-g++-64 | linux-g++-32 {
  8. LIBS += -L$$PWD/lib/linux_x64/
  9. }
  10. INCLUDEPATH += $$PWD/include/
  11. LIBS += -ltcp -lstdc++fs -pthread -lssl -lcrypto -lbinom
  12. win32 {
  13. INCLUDEPATH += $$PWD/include/win32/
  14. LIBS += C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\lib\libws2_32.a
  15. }
  16. # BINOM DEBUG
  17. #include(./BinOM/binom.pri)
  18. # You can make your code fail to compile if it uses deprecated APIs.
  19. # In order to do so, uncomment the following line.
  20. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  21. SOURCES += \
  22. source/client/API.cpp \
  23. source/client/rich_text_handler.cpp \
  24. source/client/send_action.cpp \
  25. source/security.cpp \
  26. source/client/application.cpp \
  27. source/client/server_handling.cpp
  28. HEADERS += \
  29. include/client/API.h \
  30. include/client/application.hpp \
  31. include/client/rich_text_handler.hpp \
  32. include/client_db.h \
  33. include/common.hpp \
  34. include/security.hpp
  35. RESOURCES += resources/client/qml.qrc
  36. TRANSLATIONS += \
  37. resources/client/LibreHubClient_en_US.ts
  38. # Additional import path used to resolve QML modules in Qt Creator's code model
  39. QML_IMPORT_PATH =
  40. # Additional import path used to resolve QML modules just for Qt Quick Designer
  41. QML_DESIGNER_IMPORT_PATH =
  42. # Default rules for deployment.
  43. qnx: target.path = /tmp/$${TARGET}/bin
  44. else: unix:!android: target.path = /opt/$${TARGET}/bin
  45. !isEmpty(target.path): INSTALLS += target
  46. # DEPLOY
  47. #isEmpty(TARGET_EXT) {
  48. # win32 {
  49. # TARGET_CUSTOM_EXT = .exe
  50. # }
  51. # macx {
  52. # TARGET_CUSTOM_EXT = .app
  53. # }
  54. #} else {
  55. # TARGET_CUSTOM_EXT = $${TARGET_EXT}
  56. #}
  57. #QML_DEPLOY = --qmldir $$PWD/resources/client/qml/
  58. #CONFIG( debug, debug|release ) {
  59. # # debug
  60. # DEPLOY_TARGET = --qmldir $$PWD/resources/client/qml/ $${OUT_PWD}/debug/$${TARGET}$${TARGET_CUSTOM_EXT}
  61. #} else {
  62. # # release
  63. # DEPLOY_TARGET = --qmldir $$PWD/resources/client/qml/ $${OUT_PWD}/release/$${TARGET}$${TARGET_CUSTOM_EXT}
  64. #}
  65. ## # Uncomment the following line to help debug the deploy command when running qmake
  66. ## warning($${DEPLOY_COMMAND} $${DEPLOY_TARGET})
  67. ## Use += instead of = if you use multiple QMAKE_POST_LINKs
  68. #win32 {
  69. # DEPLOY_COMMAND = windeployqt
  70. # QMAKE_POST_LINK = $${DEPLOY_COMMAND} $${QML_DEPLOY} $${DEPLOY_TARGET}
  71. #}
  72. #macx {
  73. # DEPLOY_COMMAND = macdeployqt
  74. # QMAKE_POST_LINK = $${DEPLOY_COMMAND} $${QML_DEPLOY} $${DEPLOY_TARGET}
  75. #}