cordovaqt.pro 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. # Add files and directories to ship with the application
  2. # by adapting the examples below.
  3. # file1.source = myfile
  4. # dir1.source = mydir
  5. wwwDir.source = www
  6. xmlDir.source = xml
  7. qmlDir.source = qml
  8. DEPLOYMENTFOLDERS = wwwDir xmlDir qmlDir# file1 dir1
  9. SOURCES += main.cpp \
  10. src/plugins/notification.cpp \
  11. src/plugins/geolocation.cpp \
  12. src/plugins/fileapi.cpp \
  13. src/plugins/device.cpp \
  14. src/pluginregistry.cpp \
  15. src/plugins/console.cpp \
  16. src/plugins/connection.cpp \
  17. src/plugins/compass.cpp \
  18. src/plugins/accelerometer.cpp \
  19. src/plugins/events.cpp \
  20. src/cordova.cpp \
  21. src/cplugin.cpp \
  22. src/plugins/contacts.cpp \
  23. src/plugins/camera.cpp \
  24. src/plugins/tizensysteminfo.cpp
  25. # src/plugins/media.cpp
  26. HEADERS += \
  27. src/plugins/notification.h \
  28. src/plugins/geolocation.h \
  29. src/plugins/fileapi.h \
  30. src/plugins/device.h \
  31. src/pluginregistry.h \
  32. src/plugins/console.h \
  33. src/plugins/connection.h \
  34. src/plugins/compass.h \
  35. src/plugins/accelerometer.h \
  36. src/plugins/events.h \
  37. src/cordova.h \
  38. src/cplugin.h \
  39. src/plugins/contacts.h \
  40. src/plugins/camera.h \
  41. src/plugins/cameraresolution.h \
  42. src/plugins/tizensysteminfo.h
  43. #src/plugins/media.h
  44. greaterThan(QT_MAJOR_VERSION, 4) {
  45. message("Qt5 build")
  46. QT += widgets
  47. QT += location
  48. QT += sensors
  49. QT += feedback
  50. QT += systeminfo
  51. QT += contacts
  52. QT += multimedia
  53. QT += quick declarative
  54. OTHER_FILES += qml/main_qt5.qml \
  55. qml/main_harmattan_qt5.qml \
  56. qml/cordova_wrapper.js
  57. } else:!isEmpty(MEEGO_VERSION_MAJOR) {
  58. message("Qt4 build")
  59. message("Harmattan build")
  60. OTHER_FILES += \
  61. qml/cordova_wrapper.js
  62. QT += declarative dbus
  63. QT += webkit
  64. CONFIG += mobility qdeclarative-boostable
  65. MOBILITY += feedback location systeminfo sensors multimedia contacts
  66. } else {
  67. message("Qt4 build")
  68. message("Non-harmattan build")
  69. OTHER_FILES += qml/main.qml \
  70. qml/cordova_wrapper.js
  71. symbian:TARGET.UID3 = 0xE3522943
  72. #symbian:DEPLOYMENT.installer_header = 0x2002CCCF
  73. symbian:TARGET.CAPABILITY += NetworkServices UserEnvironment ReadUserData WriteUserData
  74. symbian:{LIBS += -lecam -lServiceHandler -lbafl}
  75. QT += declarative
  76. QT += webkit
  77. CONFIG += mobility
  78. MOBILITY += feedback location systeminfo sensors multimedia contacts
  79. }
  80. # Please do not modify the following two lines. Required for deployment.
  81. include(deployment.pri)
  82. qtcAddDeployment()
  83. OTHER_FILES += \
  84. qtc_packaging/debian_harmattan/rules \
  85. qtc_packaging/debian_harmattan/README \
  86. qtc_packaging/debian_harmattan/manifest.aegis \
  87. qtc_packaging/debian_harmattan/copyright \
  88. qtc_packaging/debian_harmattan/control \
  89. qtc_packaging/debian_harmattan/compat \
  90. qtc_packaging/debian_harmattan/changelog \
  91. qml/main_qt4.qml \
  92. qml/main.qml