quickhit.pro 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. # Copyright (c) 2011 Nokia Corporation.
  2. QT += core gui declarative
  3. TARGET = quickhit
  4. TEMPLATE = app
  5. VERSION = 2.0.3
  6. INCLUDEPATH += ./ge_src/
  7. SOURCES += \
  8. src/gameengine.cpp \
  9. src/invsounds.cpp \
  10. src/main.cpp \
  11. src/mainwindow.cpp \
  12. src/myeventfilter.cpp \
  13. src/plugindata.cpp \
  14. ge_src/GEAudioBuffer.cpp \
  15. ge_src/GEAudioBufferPlayInstance.cpp \
  16. ge_src/GEAudioMixer.cpp \
  17. ge_src/GEAudioOut.cpp \
  18. ge_src/GEInterfaces.cpp
  19. HEADERS += \
  20. src/gameengine.h \
  21. src/invsounds.h \
  22. src/mainwindow.h \
  23. src/myeventfilter.h \
  24. src/plugindata.h \
  25. plugins/levelplugininterface.h \
  26. ge_src/GEAudioBuffer.h \
  27. ge_src/GEAudioBufferPlayInstance.h \
  28. ge_src/GEAudioMixer.h \
  29. ge_src/GEAudioOut.h \
  30. ge_src/GEInterfaces.h \
  31. ge_src/trace.h
  32. RESOURCES += rsc/resources.qrc
  33. OTHER_FILES += qml/*.qml
  34. # Uncomment/comment the following line to enable/disable debug prints of
  35. # Qt GameEnabler audio framework.
  36. #DEFINES += GE_DEBUG
  37. symbian {
  38. TARGET = QuickHit
  39. TARGET.UID3 = 0xe7ced714
  40. TARGET.EPOCSTACKSIZE = 0x14000
  41. TARGET.EPOCHEAPSIZE = 0x20000 0x5000000
  42. TARGET.CAPABILITY = \
  43. LocalServices \
  44. Location \
  45. NetworkServices \
  46. ReadUserData \
  47. WriteUserData \
  48. UserEnvironment
  49. QT += multimedia
  50. CONFIG += mobility
  51. MOBILITY = systeminfo
  52. RESOURCES += rsc/no_components.qrc
  53. LIBS += -lcone -leikcore -lavkon -lhwrmvibraclient
  54. ICON = icons/icon.svg
  55. # Add LevelOne.sis into QuickHit sis
  56. levelone.pkg_postrules.main = "IF NOT package(0xE07dfb66)"\
  57. "; Install levelone.sis only if not already installed"\
  58. "@\"levelone.sis\", (0xE07dfb66)" \
  59. "endif "
  60. DEPLOYMENT += levelone
  61. PRIVATEDIR = $$replace(TARGET.UID3, "^0x", "")
  62. # Enables In-App Purchase API
  63. DEFINES += IA_PURCHASE
  64. contains(DEFINES, IA_PURCHASE) {
  65. message(In-App Purchase API enabled)
  66. CONFIG += inapppurchase
  67. QT += network script
  68. INCLUDEPATH += ./iap_src
  69. HEADERS += \
  70. iap_src/downloadmanager.h \
  71. iap_src/iapurchase.h \
  72. iap_src/product.h \
  73. iap_src/request.h
  74. SOURCES += \
  75. iap_src/downloadmanager.cpp \
  76. iap_src/iapurchase.cpp \
  77. iap_src/product.cpp
  78. iapVariantId.sources = ./iap/IAP_VARIANTID.txt
  79. iapVariantId.path = .
  80. DEPLOYMENT += iapVariantId
  81. # Enables test mode for IAP
  82. DEFINES += IA_PURCHASE_TEST_MODE
  83. # For testing In-App Purchase without Nokia Store
  84. contains(DEFINES, IA_PURCHASE_TEST_MODE) {
  85. message(In-App Purchase API in TEST_MODE)
  86. addConfigFiles.sources = ./iap/TEST_MODE.txt
  87. addConfigFiles.path = .
  88. DEPLOYMENT += addConfigFiles
  89. }
  90. }
  91. }
  92. unix:!symbian {
  93. CONFIG += mobility
  94. MOBILITY = systeminfo
  95. BINDIR = /opt/usr/bin
  96. DATADIR = /usr/share
  97. DEFINES += DATADIR=\\\"$$DATADIR\\\" \
  98. PKGDATADIR=\\\"$$PKGDATADIR\\\"
  99. target.path = $$BINDIR
  100. icon64.path = $$DATADIR/icons/hicolor/64x64/apps
  101. icon64.files += icons/$${TARGET}.png
  102. maemo5 {
  103. message(Maemo build)
  104. RESOURCES += rsc/no_components.qrc
  105. OTHER_FILES += qml/no_components.qml
  106. QT += opengl multimedia
  107. desktop.path = $$DATADIR/applications/hildon
  108. desktop.files += qtc_packaging/debian_fremantle/$${TARGET}.desktop
  109. }
  110. else {
  111. message(Harmattan build)
  112. DEFINES += Q_WS_MAEMO_6
  113. MOBILITY += multimedia
  114. RESOURCES += rsc/harmattan.qrc
  115. OTHER_FILES += qml/harmattan.qml
  116. desktop.path = $$DATADIR/applications/
  117. desktop.files += qtc_packaging/debian_harmattan/$${TARGET}.desktop
  118. # Classify the application as a game to support volume keys on Harmattan.
  119. gameclassify.files += qtc_packaging/debian_harmattan/$${TARGET}.conf
  120. gameclassify.path = /usr/share/policy/etc/syspart.conf.d
  121. INSTALLS += gameclassify
  122. }
  123. INSTALLS += \
  124. target \
  125. desktop \
  126. icon64
  127. }
  128. win32 {
  129. message(Windows)
  130. TARGET = QuickHit
  131. QT += multimedia
  132. RESOURCES += rsc/no_components.qrc
  133. # Copy level files into c:\\quickhitdata folder
  134. system(mkdir c:\\quickhitdata)
  135. system(mkdir c:\\quickhitdata\\levelone\\gfx)
  136. system(mkdir c:\\quickhitdata\\levelone\\sound)
  137. system(mkdir c:\\quickhitdata\\leveltwo\\gfx)
  138. system(mkdir c:\\quickhitdata\\leveltwo\\sound)
  139. system(copy plugins\\LevelOne\\Level.qml c:\\quickhitdata\\levelone)
  140. system(copy plugins\\LevelOne\\gfx\\*.* c:\\quickhitdata\\levelone\\gfx)
  141. system(copy plugins\\LevelOne\\sound\\*.* c:\\quickhitdata\\levelone\\sound)
  142. system(copy plugins\\LevelTwo\\qml\\Level.qml c:\\quickhitdata\\leveltwo)
  143. system(copy plugins\\LevelTwo\\qml\\Enemy.qml c:\\quickhitdata\\leveltwo)
  144. system(copy plugins\\LevelTwo\\qml\\Level.js c:\\quickhitdata\\leveltwo)
  145. system(copy plugins\\LevelTwo\\gfx\\*.* c:\\quickhitdata\\leveltwo\\gfx)
  146. system(copy plugins\\LevelTwo\\sound\\*.* c:\\quickhitdata\\leveltwo\\sound)
  147. }