Advertisement
Guest User

websocket.pro

a guest
Feb 14th, 2024
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. QT += quick webview webchannel websockets
  2. CONFIG += c++11
  3.  
  4. # The following define makes your compiler emit warnings if you use
  5. # any feature of Qt which as been marked deprecated (the exact warnings
  6. # depend on your compiler). Please consult the documentation of the
  7. # deprecated API in order to know how to port your code away from it.
  8. DEFINES += QT_DEPRECATED_WARNINGS
  9.  
  10. # You can also make your code fail to compile if you use deprecated APIs.
  11. # In order to do so, uncomment the following line.
  12. # You can also select to disable deprecated APIs only up to a certain version of Qt.
  13. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
  14.  
  15. SOURCES += \
  16. main.cpp
  17.  
  18. RESOURCES += qml.qrc
  19.  
  20. deployment.files += android_asset/index.html
  21. deployment.files += android_asset/bootstrap.min.css
  22. deployment.files += android_asset/qwebchannel.js
  23. deployment.path = /assets
  24. INSTALLS += deployment
  25.  
  26.  
  27. # Additional import path used to resolve QML modules in Qt Creator's code model
  28. QML_IMPORT_PATH =
  29.  
  30. # Additional import path used to resolve QML modules just for Qt Quick Designer
  31. QML_DESIGNER_IMPORT_PATH =
  32.  
  33. # Default rules for deployment.
  34. qnx: target.path = /tmp/$${TARGET}/bin
  35. else: unix:!android: target.path = /opt/$${TARGET}/bin
  36. !isEmpty(target.path): INSTALLS += target
  37.  
  38. HEADERS += \
  39. websockettransport.h
  40.  
  41. DISTFILES += \
  42. android/AndroidManifest.xml \
  43. android/build.gradle \
  44. android/gradle/wrapper/gradle-wrapper.jar \
  45. android/gradle/wrapper/gradle-wrapper.properties \
  46. android/gradlew \
  47. android/gradlew.bat \
  48. android/res/values/libs.xml \
  49. android_asset/bootstrap.min.css \
  50. android_asset/index.html \
  51. android_asset/qwebchannel.js
  52.  
  53. contains(ANDROID_TARGET_ARCH,arm64-v8a) {
  54. ANDROID_PACKAGE_SOURCE_DIR = \
  55. $$PWD/android
  56. }
  57.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement