qmqtt.pri 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #
  2. # Add the source folder to the include directories to be searched while
  3. # compiling a project, this allows developers to write "#include <qmqtt.h>" in
  4. # their respective projects.
  5. #
  6. INCLUDEPATH += $$PWD/src/mqtt
  7. #
  8. # Do not add DLL import/export symbols as we are compiling QMQTT source code
  9. # directly with the source code of the project that includes this file.
  10. #
  11. DEFINES += MQTT_PROJECT_INCLUDE_SRC
  12. #
  13. # Add header files
  14. #
  15. HEADERS += \
  16. $$PWD/src/mqtt/qmqtt.h \
  17. $$PWD/src/mqtt/qmqtt_client.h \
  18. $$PWD/src/mqtt/qmqtt_client_p.h \
  19. $$PWD/src/mqtt/qmqtt_frame.h \
  20. $$PWD/src/mqtt/qmqtt_global.h \
  21. $$PWD/src/mqtt/qmqtt_message.h \
  22. $$PWD/src/mqtt/qmqtt_message_p.h \
  23. $$PWD/src/mqtt/qmqtt_network_p.h \
  24. $$PWD/src/mqtt/qmqtt_networkinterface.h \
  25. $$PWD/src/mqtt/qmqtt_routedmessage.h \
  26. $$PWD/src/mqtt/qmqtt_router.h \
  27. $$PWD/src/mqtt/qmqtt_routesubscription.h \
  28. $$PWD/src/mqtt/qmqtt_socket_p.h \
  29. $$PWD/src/mqtt/qmqtt_socketinterface.h \
  30. $$PWD/src/mqtt/qmqtt_timer_p.h \
  31. $$PWD/src/mqtt/qmqtt_timerinterface.h \
  32. $$PWD/src/mqtt/qmqtt_ssl_socket_p.h
  33. #
  34. # Add source files
  35. #
  36. SOURCES += \
  37. $$PWD/src/mqtt/qmqtt_client.cpp \
  38. $$PWD/src/mqtt/qmqtt_client_p.cpp \
  39. $$PWD/src/mqtt/qmqtt_frame.cpp \
  40. $$PWD/src/mqtt/qmqtt_message.cpp \
  41. $$PWD/src/mqtt/qmqtt_network.cpp \
  42. $$PWD/src/mqtt/qmqtt_router.cpp \
  43. $$PWD/src/mqtt/qmqtt_routesubscription.cpp \
  44. $$PWD/src/mqtt/qmqtt_socket.cpp \
  45. $$PWD/src/mqtt/qmqtt_timer.cpp \
  46. $$PWD/src/mqtt/qmqtt_ssl_socket.cpp
  47. #
  48. # Add support for websockets
  49. #
  50. QMQTT_WEBSOCKETS {
  51. PRIVATE_HEADERS += \
  52. $$PWD/src/mqtt/qmqtt_websocket_p.h \
  53. $$PWD/src/mqtt/qmqtt_websocketiodevice_p.h
  54. SOURCES += \
  55. $$PWD/src/mqtt/qmqtt_websocket.cpp \
  56. $$PWD/src/mqtt/qmqtt_websocketiodevice.cpp
  57. }