RedisSubscriber.pro 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. QT -= gui
  2. TEMPLATE = lib
  3. DEFINES += REDISSUBSCRIBER_LIBRARY
  4. CONFIG += c++17
  5. # You can make your code fail to compile if it uses deprecated APIs.
  6. # In order to do so, uncomment the following line.
  7. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  8. INCLUDEPATH += ../../include
  9. HEADERS += \
  10. ../../include/LibraryLoader.h \
  11. ../../include/Publisher.h
  12. #Redis.h
  13. HIREDIS_DIR =$$PWD/../../thirdparty/hiredis
  14. HEADERS += $${HIREDIS_DIR}/include/hiredis/adapters/qt.h
  15. LIBS += -L$${HIREDIS_DIR}/lib -lhiredis
  16. #LIBS += ../thirdparty/hiredis/lib/libhiredis.a
  17. INCLUDEPATH += $${HIREDIS_DIR}/include
  18. SOURCES += \
  19. #Redis.cpp \
  20. RedisSubscriber.cpp
  21. HEADERS += \
  22. RedisSubscriber_global.h \
  23. RedisSubscriber.h
  24. INCLUDEPATH += $$PWD/../../modules/RedisClient
  25. LIBS +=-L$$PWD/../../bin/plugins -lRedisClient
  26. # Default rules for deployment.
  27. unix {
  28. target.path = /usr/lib
  29. }else{
  30. DESTDIR = $$PWD/../../bin/plugins
  31. }
  32. !isEmpty(target.path): INSTALLS += target