inapppurchase.pro 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. #
  2. # Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
  3. # All rights reserved.
  4. #
  5. # For the applicable distribution terms see the license.txt -file, included in
  6. # the distribution.
  7. #-----------------------------------------------------------------------------
  8. folder_qml.source = qml/inapppurchase
  9. folder_qml.target = qml
  10. DEPLOYMENTFOLDERS = folder_qml
  11. SOURCES += main.cpp \
  12. declarativepurchaselistmodel.cpp \
  13. purchasableitemBase.cpp \
  14. purchasableitemnonprotected.cpp \
  15. itemstatusimageprovider.cpp \
  16. purchasableitem.cpp \
  17. CAFAPI/drmfile.cpp
  18. # Please do not modify the following two lines. Required for deployment.
  19. include(qmlapplicationviewer/qmlapplicationviewer.pri)
  20. qtcAddDeployment()
  21. OTHER_FILES += \
  22. MyButton.qml \
  23. qml/inapppurchase/content/Button.qml \
  24. qml/inapppurchase/content/PopupDialog.qml
  25. HEADERS += \
  26. declarativepurchaselistmodel.h \
  27. purchasableitemBase.h \
  28. purchasableitemnonprotected.h \
  29. itemstatusimageprovider.h \
  30. purchasableitem.h \
  31. CAFAPI/drmfile.h
  32. DEPENDPATH += CAFAPI
  33. # dependency for Symbian^3 and later devices
  34. supported_platforms = "; Application only supports Symbian^3" \
  35. "[0x20022E6D], 0, 0, 0, {\"Symbian^3\"}"
  36. CONFIG += mobility debug
  37. MOBILITY = serviceframework
  38. TEMPLATE = app
  39. symbian: {
  40. TARGET.UID3 = 0xE001EC5D
  41. # Smart Installer package's UID
  42. # This UID is from the protected range and therefore the package will
  43. # fail to install if self-signed. By default qmake uses the unprotected
  44. # range value if unprotected UID is defined for the application and
  45. # 0x2002CCCF value if protected UID is given to the application
  46. DEPLOYMENT.installer_header = 0x2002CCCF
  47. # DRM protecction support
  48. DEPENDPATH += CAFAPI/Symbian
  49. SOURCES += CAFAPI/Symbian/drmfile_p.cpp
  50. HEADERS += CAFAPI/Symbian/drmfile_p.h
  51. LIBS += -lcaf \
  52. -lcafutils \
  53. -lapmime \
  54. # *** including inappbilling below
  55. LIBS += -liapclientapi
  56. # NOTE: this is enabling stdlib to prevent error 'undefined symbol __aeabi_atexit'
  57. LIBS += -lusrt2_2
  58. # capabilities required for IAP API
  59. TARGET.CAPABILITY += NetworkServices
  60. iap_dependency.pkg_prerules = "; Has dependency on IAP component" \
  61. "(0x200345C8), 0, 2, 2, {\"IAP\"}"
  62. DEPLOYMENT += iap_dependency
  63. # IAP API files to include in package
  64. addIapFiles.sources = ./data/IAP_VARIANTID.txt #TODO: <removeme to enable testmode> ./data/TEST_MODE.txt
  65. addIapFiles.path = ./
  66. # DRM protected purchasable items
  67. # change productID path resourceid_* after obtaning real product id
  68. addDrmFiles01.sources = ./data/drm/item01/test.png
  69. addDrmFiles01.path = ./drm/data/resourceid_751224/
  70. addDrmFiles02.sources = ./data/drm/item02/test.png
  71. addDrmFiles02.path = ./drm/data/resourceid_751226/
  72. addDrmFiles03.sources = ./data/drm/item03/test.png
  73. addDrmFiles03.path = ./drm/data/resourceid_751227/
  74. #non protected purchasable items
  75. addCatalog.sources = ./data/catalog.dat
  76. addCatalog.path = ./data
  77. DEPLOYMENT += addIapFiles addDrmFiles01 addDrmFiles02 addDrmFiles03 addCatalog
  78. }
  79. RESOURCES +=
  80. #workaround for http://bugreports.qt.nokia.com/browse/QTCREATORBUG-2158
  81. debug {
  82. MMP_RULES -= PAGED
  83. MMP_RULES *= UNPAGED
  84. }