qtgameenableraudio.pri 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. # Copyright (c) 2011-2012 Nokia Corporation.
  2. # Comment the following line out for better performance. Using the definition
  3. # enables debug logging which is convenient for locating problems in the code
  4. # but is also very costly in terms of performance.
  5. #DEFINES += GE_DEBUG
  6. # Support longer audio buffers than 2^20 samples per channel
  7. DEFINES += QTGAMEENABLER_SUPPORT_LONG_SAMPLES
  8. # For enabling Ogg Vorbis support
  9. DEFINES += QTGAMEENABLER_SUPPORT_OGG_VORBIS
  10. # STB's pullmode API is not needed
  11. DEFINES += STB_VORBIS_NO_PULLDATA_API
  12. INCLUDEPATH += $$PWD/src
  13. HEADERS += \
  14. $$PWD/src/trace.h \
  15. $$PWD/src/geglobal.h \
  16. $$PWD/src/audiobuffer.h \
  17. $$PWD/src/audiobufferplayinstance.h \
  18. $$PWD/src/audiomixer.h \
  19. $$PWD/src/audioout.h \
  20. $$PWD/src/pushaudioout.h \
  21. $$PWD/src/pullaudioout.h \
  22. $$PWD/src/audiosourceif.h \
  23. $$PWD/src/audioeffect.h \
  24. $$PWD/src/echoeffect.h \
  25. $$PWD/src/cutoffeffect.h
  26. SOURCES += \
  27. $$PWD/src/audiobuffer.cpp \
  28. $$PWD/src/audiobufferplayinstance.cpp \
  29. $$PWD/src/audiomixer.cpp \
  30. $$PWD/src/pushaudioout.cpp \
  31. $$PWD/src/pullaudioout.cpp \
  32. $$PWD/src/audiosourceif.cpp \
  33. $$PWD/src/audioeffect.cpp \
  34. $$PWD/src/echoeffect.cpp \
  35. $$PWD/src/cutoffeffect.cpp
  36. contains(DEFINES, QTGAMEENABLER_SUPPORT_OGG_VORBIS) {
  37. HEADERS += \
  38. $$PWD/src/stb_vorbis.h \
  39. $$PWD/src/vorbisdecoder.h \
  40. $$PWD/src/oggpage.h \
  41. $$PWD/src/oggconstants.h \
  42. $$PWD/src/vorbissource.h
  43. SOURCES += \
  44. $$PWD/src/stb_vorbis.c \
  45. $$PWD/src/vorbisdecoder.cpp \
  46. $$PWD/src/oggpage.cpp \
  47. $$PWD/src/vorbissource.cpp
  48. }
  49. QT += core gui
  50. symbian {
  51. message(Symbian build)
  52. CONFIG += mobility
  53. MOBILITY += multimedia systeminfo
  54. # For volume keys
  55. LIBS += -lremconcoreapi -lremconinterfacebase
  56. # Uncomment the following define to enable a very ugly hack to set the
  57. # volume level on Symbian devices higher. By default, on Symbian, the volume
  58. # level is very low when audio is played using QAudioOutput class. For now,
  59. # this ugly hack is the only way to set the volume louder.
  60. #
  61. # WARNING: The volume hack (see the GEAudioOut.cpp file) is VERY DANGEROUS
  62. # because the data to access the volume interface is retrieved manually with
  63. # pointer manipulation. Should the library, in which the interface is
  64. # implemented, be modified even a tiny bit, the application using this hack
  65. # might crash.
  66. #
  67. #DEFINES += QTGAMEENABLER_USE_VOLUME_HACK
  68. contains(DEFINES, QTGAMEENABLER_USE_VOLUME_HACK) {
  69. # Include paths and libraries required for the volume hack.
  70. message(Symbian volume hack enabled)
  71. INCLUDEPATH += /epoc32/include/mmf/common
  72. INCLUDEPATH += /epoc32/include/mmf/server
  73. LIBS += -lmmfdevsound
  74. }
  75. #DEFINES += GE_PULLMODEAUDIO
  76. INCLUDEPATH += /epoc32/include/mw
  77. HEADERS += $$PWD/src/volumekeys.h
  78. SOURCES += $$PWD/src/volumekeys.cpp
  79. }
  80. unix:!symbian {
  81. maemo5 {
  82. message(Maemo 5 build)
  83. QT += multimedia
  84. CONFIG += mobility
  85. MOBILITY += systeminfo
  86. } else {
  87. contains(MEEGO_EDITION, harmattan) {
  88. message(Harmattan build)
  89. DEFINES += MEEGO_EDITION_HARMATTAN
  90. CONFIG += mobility
  91. MOBILITY += multimedia systeminfo
  92. }
  93. else {
  94. message(Unix based desktop build)
  95. CONFIG += mobility
  96. MOBILITY += multimedia systeminfo
  97. #DEFINES += GE_PULLMODEAUDIO
  98. }
  99. }
  100. }
  101. windows {
  102. message(Windows desktop build)
  103. QT += multimedia
  104. DEFINES += GE_NOMOBILITY
  105. }
  106. # End of file.