123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- QT += quick quickcontrols2 svg
- TARGET = librehub-client
- CONFIG += c++17
- win32 {
- LIBS += -L$$PWD/lib/win32_mingw64/
- }
- linux-g++ | linux-g++-64 | linux-g++-32 {
- LIBS += -L$$PWD/lib/linux_x64/
- }
- INCLUDEPATH += $$PWD/include/
- LIBS += -ltcp -lstdc++fs -pthread -lssl -lcrypto -lbinom
- win32 {
- INCLUDEPATH += $$PWD/include/win32/
- LIBS += C:\Qt\Tools\mingw730_64\x86_64-w64-mingw32\lib\libws2_32.a
- }
- # BINOM DEBUG
- #include(./BinOM/binom.pri)
- # You can make your code fail to compile if it uses deprecated APIs.
- # In order to do so, uncomment the following line.
- #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
- SOURCES += \
- source/client/API.cpp \
- source/client/rich_text_handler.cpp \
- source/client/send_action.cpp \
- source/security.cpp \
- source/client/application.cpp \
- source/client/server_handling.cpp
- HEADERS += \
- include/client/API.h \
- include/client/application.hpp \
- include/client/rich_text_handler.hpp \
- include/client_db.h \
- include/common.hpp \
- include/security.hpp
- RESOURCES += resources/client/qml.qrc
- TRANSLATIONS += \
- resources/client/LibreHubClient_en_US.ts
- # Additional import path used to resolve QML modules in Qt Creator's code model
- QML_IMPORT_PATH =
- # Additional import path used to resolve QML modules just for Qt Quick Designer
- QML_DESIGNER_IMPORT_PATH =
- # Default rules for deployment.
- qnx: target.path = /tmp/$${TARGET}/bin
- else: unix:!android: target.path = /opt/$${TARGET}/bin
- !isEmpty(target.path): INSTALLS += target
- # DEPLOY
- #isEmpty(TARGET_EXT) {
- # win32 {
- # TARGET_CUSTOM_EXT = .exe
- # }
- # macx {
- # TARGET_CUSTOM_EXT = .app
- # }
- #} else {
- # TARGET_CUSTOM_EXT = $${TARGET_EXT}
- #}
- #QML_DEPLOY = --qmldir $$PWD/resources/client/qml/
- #CONFIG( debug, debug|release ) {
- # # debug
- # DEPLOY_TARGET = --qmldir $$PWD/resources/client/qml/ $${OUT_PWD}/debug/$${TARGET}$${TARGET_CUSTOM_EXT}
- #} else {
- # # release
- # DEPLOY_TARGET = --qmldir $$PWD/resources/client/qml/ $${OUT_PWD}/release/$${TARGET}$${TARGET_CUSTOM_EXT}
- #}
- ## # Uncomment the following line to help debug the deploy command when running qmake
- ## warning($${DEPLOY_COMMAND} $${DEPLOY_TARGET})
- ## Use += instead of = if you use multiple QMAKE_POST_LINKs
- #win32 {
- # DEPLOY_COMMAND = windeployqt
- # QMAKE_POST_LINK = $${DEPLOY_COMMAND} $${QML_DEPLOY} $${DEPLOY_TARGET}
- #}
- #macx {
- # DEPLOY_COMMAND = macdeployqt
- # QMAKE_POST_LINK = $${DEPLOY_COMMAND} $${QML_DEPLOY} $${DEPLOY_TARGET}
- #}
|