gNewsReader.pro 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. QT += network declarative webkit
  2. # Add more folders to ship with the application, here
  3. folder_01.source = qml/gNewsReader
  4. folder_01.target = qml
  5. DEPLOYMENTFOLDERS = folder_01
  6. # Additional import path used to resolve QML modules in Creator's code model
  7. QML_IMPORT_PATH =
  8. #symbian:TARGET.UID3 = 0xE0A3B071 #Nokia Developer Project
  9. #symbian:TARGET.UID3 = 0x20057B10 #SymbianSigned
  10. symbian:TARGET.UID3 = 0x20049f95
  11. VERSION = 1.83.312
  12. MEEGOVERSION = 1.8.3
  13. CONFIG += qt-components
  14. # Smart Installer package's UID
  15. # This UID is from the protected range and therefore the package will
  16. # fail to install if self-signed. By default qmake uses the unprotected
  17. # range value if unprotected UID is defined for the application and
  18. # 0x2002CCCF value if protected UID is given to the application
  19. symbian:DEPLOYMENT.installer_header = 0x2002CCCF
  20. # Allow network access on Symbian
  21. #symbian:TARGET.CAPABILITY += NetworkServices
  22. symbian {
  23. TARGET.CAPABILITY += NetworkServices
  24. TARGET.CAPABILITY += SwEvent
  25. TARGET.CAPABILITY += ReadUserData
  26. TARGET.CAPABILITY += ReadDeviceData
  27. TARGET.CAPABILITY += WriteDeviceData
  28. vendorinfo = "%{\"Yogeshwar Padhyegurjar\"}" ":\"Yogeshwar Padhyegurjar\""
  29. LIBS += -lapgrfx\
  30. -leikcore \
  31. -lcone \
  32. -lapmime
  33. TARGET.EPOCSTACKSIZE = 0x14000
  34. TARGET.EPOCHEAPSIZE = 0x400000 0x6000000 #64MB
  35. my_deployment.pkg_prerules += vendorinfo
  36. my_deployment.pkg_prerules += \
  37. "; Dependency to Symbian Qt Quick components" \
  38. "(0x200346DE), 1, 1, 0, {\"Qt Quick components\"}"
  39. DEPLOYMENT += my_deployment
  40. OTHER_FILES += \
  41. qml/gNewsReader/qml/*.qml \
  42. qml/gNewsReader/js/*.js \
  43. qml/gNewsReader/css/*.css \
  44. qml/gNewsReader/pics/*.*
  45. qmlfiles.sources = qml
  46. DEPLOYMENT += qmlfiles
  47. DEFINES += APP_VERSION=\"$$VERSION\"
  48. }
  49. win32 {
  50. # Create a define APP_VERSION and set its value to our version.
  51. # The APP_VERSION will be visible to the source code side.
  52. DEFINES += APP_VERSION=\\\"$$VERSION\\\"
  53. }
  54. # Harmattan specific
  55. contains(MEEGO_EDITION, harmattan) {
  56. DEFINES += Q_WS_HARMATTAN
  57. # target.path = /opt/usr/bin
  58. # INSTALLS += target
  59. OTHER_FILES += \
  60. qtc_packaging/debian_harmattan/rules \
  61. qtc_packaging/debian_harmattan/README \
  62. qtc_packaging/debian_harmattan/manifest.aegis \
  63. qtc_packaging/debian_harmattan/copyright \
  64. qtc_packaging/debian_harmattan/control \
  65. qtc_packaging/debian_harmattan/compat \
  66. qtc_packaging/debian_harmattan/changelog \
  67. qml/gNewsReader/meego/*.qml \
  68. qml/gNewsReader/js/*.js \
  69. qml/gNewsReader/css/*.css \
  70. qml/gNewsReader/pics/*.*
  71. qmlfiles.path = qml/gNewsReader/
  72. qmlfiles.files += meego/*
  73. INSTALLS += qmlfiles
  74. DEFINES += APP_VERSION=\\\"$$MEEGOVERSION\\\"
  75. }
  76. #To use hardware FPU for floating point calculations
  77. symbian {
  78. MMP_RULES += "OPTION gcce -march=armv6"
  79. MMP_RULES += "OPTION gcce -mfpu=vfp"
  80. MMP_RULES += "OPTION gcce -mfloat-abi=softfp"
  81. MMP_RULES += "OPTION gcce -marm"
  82. }
  83. symbian {
  84. }
  85. # If your application uses the Qt Mobility libraries, uncomment the following
  86. # lines and add the respective components to the MOBILITY variable.
  87. # CONFIG += mobility
  88. # MOBILITY +=
  89. # The .cpp file which was generated for your project. Feel free to hack it.
  90. SOURCES += main.cpp \
  91. customnetworkaccessmanager.cpp \
  92. useragentprovider.cpp \
  93. networkaccessmanagerfactory.cpp \
  94. subitem.cpp \
  95. subitemfilter.cpp \
  96. mywebview.cpp \
  97. fileio.cpp \
  98. setting.cpp
  99. # Please do not modify the following two lines. Required for deployment.
  100. include(qmlapplicationviewer/qmlapplicationviewer.pri)
  101. qtcAddDeployment()
  102. HEADERS += \
  103. customnetworkaccessmanager.h \
  104. useragentprovider.h \
  105. networkaccessmanagerfactory.h \
  106. subitem.h \
  107. subitemfilter.h \
  108. mywebview.h \
  109. fileio.h \
  110. setting.h
  111. evil_hack_to_fool_lupdate {
  112. SOURCES += \
  113. qml/gNewsReader/qml/newsreader.qml \
  114. qml/gNewsReader/qml/SubscriptionsPage.qml \
  115. qml/gNewsReader/qml/FeedListPage.qml \
  116. qml/gNewsReader/qml/FeedItemPage.qml \
  117. qml/gNewsReader/qml/GoogleOAuth2.qml \
  118. qml/gNewsReader/qml/components/AboutApplicationPage.qml \
  119. qml/gNewsReader/qml/components/AddNewFeedDialog.qml \
  120. qml/gNewsReader/qml/components/ApplicationSettings.qml \
  121. qml/gNewsReader/qml/components/EditTagsDialog.qml \
  122. qml/gNewsReader/qml/components/FeedListItemOptions.qml \
  123. qml/gNewsReader/qml/components/FeedSearchResultPage.qml \
  124. qml/gNewsReader/qml/components/MoveFeedDialog.qml \
  125. qml/gNewsReader/qml/components/ReadLaterLoginDialog.qml \
  126. qml/gNewsReader/qml/components/RenameFeedDialog.qml \
  127. qml/gNewsReader/qml/components/SubItemOptionsMenu.qml \
  128. qml/gNewsReader/qml/components/CommonQueryDialog.qml \
  129. qml/gNewsReader/qml/PullToActivate.qml \
  130. qml/gNewsReader/js/main.js \
  131. qml/gNewsReader/js/OAuthConstants.js \
  132. qml/gNewsReader/js/shareArticleService.js
  133. }
  134. TRANSLATIONS += i18n/gtrans_de.ts \
  135. i18n/gtrans_fr.ts \
  136. i18n/gtrans_bn.ts \
  137. i18n/gtrans_it.ts \
  138. i18n/gtrans_zh.ts \
  139. i18n/gtrans_zh_TW.ts \
  140. i18n/gtrans_fi.ts \
  141. i18n/gtrans_pl.ts \
  142. i18n/gtrans_hr.ts \
  143. i18n/gtrans_bg.ts
  144. RESOURCES += \
  145. i18n/newsreader.qrc
  146. contains(MEEGO_EDITION,harmattan) {
  147. icon.files = gNewsReader-meego.svg
  148. icon.path = /usr/share/icons/hicolor/scalable/apps
  149. INSTALLS += icon
  150. }
  151. contains(MEEGO_EDITION,harmattan) {
  152. desktopfile.files = gnewsreader.desktop
  153. desktopfile.path = /usr/share/applications
  154. INSTALLS += desktopfile
  155. }