in-app-purchase.pri 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. message(In-App Purchase API enabled)
  2. CONFIG += mobility
  3. CONFIG += inapppurchase
  4. QT += core gui declarative
  5. INCLUDEPATH += ./qiap
  6. DEPENDPATH += ./qiap
  7. SOURCES += qiap/drmfile_p.cpp
  8. SOURCES += qiap/drmfile.cpp
  9. SOURCES += qiap/qiap.cpp
  10. SOURCES += qiap/qiap_p.cpp
  11. HEADERS += qiap/drmfile_p.h
  12. HEADERS += qiap/drmfile.h
  13. HEADERS += qiap/qiap.h
  14. HEADERS += qiap/qiap_p.h
  15. LIBS += -lcaf -lcafutils -lapmime
  16. #iap_dependency.pkg_prerules = "; Has dependency on IAP component" "(0x200345C8), 0, 2, 6, {\"IAP\"}"
  17. #DEPLOYMENT += iap_dependency
  18. # capabilities required for IAP API
  19. TARGET.CAPABILITY += NetworkServices
  20. # IAP configuration
  21. addConfigFiles.sources = ./iap/IAP_VARIANTID.txt
  22. addConfigFiles.path = .
  23. DEPLOYMENT += addConfigFiles
  24. addDrm.sources = ./iap/data
  25. addDrm.path = ./drm
  26. DEPLOYMENT += addDrm
  27. # For testing In-App Purchase without Nokia Store
  28. contains(DEFINES, IA_PURCHASE_TEST_MODE) {
  29. message(In-App Purchase API in TEST_MODE)
  30. addConfigFiles.sources = ./iap/TEST_MODE.txt
  31. addConfigFiles.path = .
  32. DEPLOYMENT += addConfigFiles
  33. }
  34. debug: {
  35. MMP_RULES -= "PAGED"
  36. MMP_RULES += "UNPAGED"
  37. }