Android.mk 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. LOCAL_PATH := $(call my-dir)
  2. include $(CLEAR_VARS)
  3. LOCAL_MODULE := openmpt
  4. LOCAL_CFLAGS +=#-std=c99
  5. LOCAL_CPPFLAGS += -std=c++17 -fexceptions -frtti
  6. LOCAL_CPP_FEATURES += exceptions rtti
  7. LOCAL_C_INCLUDES += $(LOCAL_PATH) $(LOCAL_PATH)/src $(LOCAL_PATH)/common $(LOCAL_PATH)/build/svn_version
  8. LOCAL_CFLAGS += -fvisibility=hidden -Wall -DLIBOPENMPT_BUILD -DMPT_WITH_ZLIB
  9. LOCAL_CPPFLAGS +=#-fvisibility=hidden -Wall -DLIBOPENMPT_BUILD -DMPT_WITH_ZLIB
  10. LOCAL_LDLIBS += -lz
  11. MPT_SVNURL?=
  12. MPT_SVNVERSION?=
  13. MPT_SVNDATE?=
  14. ifneq ($(MPT_SVNURL),)
  15. LOCAL_CFLAGS += -D MPT_SVNURL=\"$(MPT_SVNURL)\"
  16. LOCAL_CPPFLAGS +=#-D MPT_SVNURL=\"$(MPT_SVNURL)\"
  17. endif
  18. ifneq ($(MPT_SVNVERSION),)
  19. LOCAL_CFLAGS += -D MPT_SVNVERSION=\"$(MPT_SVNVERSION)\"
  20. LOCAL_CPPFLAGS +=#-D MPT_SVNVERSION=\"$(MPT_SVNVERSION)\"
  21. endif
  22. ifneq ($(MPT_SVNDATE),)
  23. LOCAL_CFLAGS += -D MPT_SVNDATE=\"$(MPT_SVNDATE)\"
  24. LOCAL_CPPFLAGS +=#-D MPT_SVNDATE=\"$(MPT_SVNDATE)\"
  25. endif
  26. LOCAL_SRC_FILES :=
  27. ifeq ($(MPT_WITH_MINIMP3),1)
  28. LOCAL_CFLAGS += -DMPT_WITH_MINIMP3
  29. LOCAL_CPPFLAGS +=#-DMPT_WITH_MINIMP3
  30. LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
  31. LOCAL_SRC_FILES += include/minimp3/minimp3.c
  32. LOCAL_LDLIBS +=
  33. endif
  34. ifeq ($(MPT_WITH_MPG123),1)
  35. LOCAL_CFLAGS += -DMPT_WITH_MPG123
  36. LOCAL_CPPFLAGS +=#-DMPT_WITH_MPG123
  37. LOCAL_C_INCLUDES +=
  38. LOCAL_SRC_FILES +=
  39. LOCAL_LDLIBS += -lmpg123
  40. endif
  41. ifeq ($(MPT_WITH_OGG),1)
  42. LOCAL_CFLAGS += -DMPT_WITH_OGG
  43. LOCAL_CPPFLAGS +=#-DMPT_WITH_OGG
  44. LOCAL_C_INCLUDES +=
  45. LOCAL_SRC_FILES +=
  46. LOCAL_LDLIBS += -logg
  47. endif
  48. ifeq ($(MPT_WITH_STBVORBIS),1)
  49. LOCAL_CFLAGS += -DMPT_WITH_STBVORBIS
  50. LOCAL_CPPFLAGS +=#-DMPT_WITH_STBVORBIS
  51. LOCAL_C_INCLUDES += $(LOCAL_PATH)/include
  52. LOCAL_SRC_FILES += include/stb_vorbis/stb_vorbis.c
  53. LOCAL_LDLIBS +=
  54. endif
  55. ifeq ($(MPT_WITH_VORBIS),1)
  56. LOCAL_CFLAGS += -DMPT_WITH_VORBIS
  57. LOCAL_CPPFLAGS +=#-DMPT_WITH_VORBIS
  58. LOCAL_C_INCLUDES +=
  59. LOCAL_SRC_FILES +=
  60. LOCAL_LDLIBS += -lvorbis
  61. endif
  62. ifeq ($(MPT_WITH_VORBISFILE),1)
  63. LOCAL_CFLAGS += -DMPT_WITH_VORBISFILE
  64. LOCAL_CPPFLAGS +=#-DMPT_WITH_VORBISFILE
  65. LOCAL_C_INCLUDES +=
  66. LOCAL_SRC_FILES +=
  67. LOCAL_LDLIBS += -lvorbisfile
  68. endif
  69. LOCAL_SRC_FILES += \
  70. common/ComponentManager.cpp \
  71. common/Logging.cpp \
  72. common/mptFileIO.cpp \
  73. common/mptPathString.cpp \
  74. common/mptRandom.cpp \
  75. common/mptString.cpp \
  76. common/mptStringBuffer.cpp \
  77. common/mptStringFormat.cpp \
  78. common/mptStringParse.cpp \
  79. common/mptTime.cpp \
  80. common/Profiler.cpp \
  81. common/serialization_utils.cpp \
  82. common/version.cpp \
  83. libopenmpt/libopenmpt_c.cpp \
  84. libopenmpt/libopenmpt_cxx.cpp \
  85. libopenmpt/libopenmpt_impl.cpp \
  86. libopenmpt/libopenmpt_ext_impl.cpp \
  87. soundlib/AudioCriticalSection.cpp \
  88. soundlib/ContainerMMCMP.cpp \
  89. soundlib/ContainerPP20.cpp \
  90. soundlib/ContainerUMX.cpp \
  91. soundlib/ContainerXPK.cpp \
  92. soundlib/Dlsbank.cpp \
  93. soundlib/Fastmix.cpp \
  94. soundlib/InstrumentExtensions.cpp \
  95. soundlib/ITCompression.cpp \
  96. soundlib/ITTools.cpp \
  97. soundlib/Load_669.cpp \
  98. soundlib/Load_amf.cpp \
  99. soundlib/Load_ams.cpp \
  100. soundlib/Load_c67.cpp \
  101. soundlib/Load_dbm.cpp \
  102. soundlib/Load_digi.cpp \
  103. soundlib/Load_dmf.cpp \
  104. soundlib/Load_dsm.cpp \
  105. soundlib/Load_dsym.cpp \
  106. soundlib/Load_dtm.cpp \
  107. soundlib/Load_far.cpp \
  108. soundlib/Load_fmt.cpp \
  109. soundlib/Load_gdm.cpp \
  110. soundlib/Load_imf.cpp \
  111. soundlib/Load_it.cpp \
  112. soundlib/Load_itp.cpp \
  113. soundlib/load_j2b.cpp \
  114. soundlib/Load_mdl.cpp \
  115. soundlib/Load_med.cpp \
  116. soundlib/Load_mid.cpp \
  117. soundlib/Load_mo3.cpp \
  118. soundlib/Load_mod.cpp \
  119. soundlib/Load_mt2.cpp \
  120. soundlib/Load_mtm.cpp \
  121. soundlib/Load_mus_km.cpp \
  122. soundlib/Load_okt.cpp \
  123. soundlib/Load_plm.cpp \
  124. soundlib/Load_psm.cpp \
  125. soundlib/Load_ptm.cpp \
  126. soundlib/Load_s3m.cpp \
  127. soundlib/Load_sfx.cpp \
  128. soundlib/Load_stm.cpp \
  129. soundlib/Load_stp.cpp \
  130. soundlib/Load_symmod.cpp \
  131. soundlib/Load_ult.cpp \
  132. soundlib/Load_uax.cpp \
  133. soundlib/Load_wav.cpp \
  134. soundlib/Load_xm.cpp \
  135. soundlib/Message.cpp \
  136. soundlib/MIDIEvents.cpp \
  137. soundlib/MIDIMacros.cpp \
  138. soundlib/MixerLoops.cpp \
  139. soundlib/MixerSettings.cpp \
  140. soundlib/MixFuncTable.cpp \
  141. soundlib/ModChannel.cpp \
  142. soundlib/modcommand.cpp \
  143. soundlib/ModInstrument.cpp \
  144. soundlib/ModSample.cpp \
  145. soundlib/ModSequence.cpp \
  146. soundlib/modsmp_ctrl.cpp \
  147. soundlib/mod_specifications.cpp \
  148. soundlib/MPEGFrame.cpp \
  149. soundlib/OggStream.cpp \
  150. soundlib/OPL.cpp \
  151. soundlib/Paula.cpp \
  152. soundlib/patternContainer.cpp \
  153. soundlib/pattern.cpp \
  154. soundlib/RowVisitor.cpp \
  155. soundlib/S3MTools.cpp \
  156. soundlib/SampleFormats.cpp \
  157. soundlib/SampleFormatBRR.cpp \
  158. soundlib/SampleFormatFLAC.cpp \
  159. soundlib/SampleFormatMediaFoundation.cpp \
  160. soundlib/SampleFormatMP3.cpp \
  161. soundlib/SampleFormatOpus.cpp \
  162. soundlib/SampleFormatSFZ.cpp \
  163. soundlib/SampleFormatVorbis.cpp \
  164. soundlib/SampleIO.cpp \
  165. soundlib/Sndfile.cpp \
  166. soundlib/Snd_flt.cpp \
  167. soundlib/Snd_fx.cpp \
  168. soundlib/Sndmix.cpp \
  169. soundlib/SoundFilePlayConfig.cpp \
  170. soundlib/UMXTools.cpp \
  171. soundlib/UpgradeModule.cpp \
  172. soundlib/Tables.cpp \
  173. soundlib/Tagging.cpp \
  174. soundlib/TinyFFT.cpp \
  175. soundlib/tuningCollection.cpp \
  176. soundlib/tuning.cpp \
  177. soundlib/WAVTools.cpp \
  178. soundlib/WindowedFIR.cpp \
  179. soundlib/XMTools.cpp \
  180. soundlib/plugins/DigiBoosterEcho.cpp \
  181. soundlib/plugins/dmo/DMOPlugin.cpp \
  182. soundlib/plugins/dmo/DMOUtils.cpp \
  183. soundlib/plugins/dmo/Chorus.cpp \
  184. soundlib/plugins/dmo/Compressor.cpp \
  185. soundlib/plugins/dmo/Distortion.cpp \
  186. soundlib/plugins/dmo/Echo.cpp \
  187. soundlib/plugins/dmo/Flanger.cpp \
  188. soundlib/plugins/dmo/Gargle.cpp \
  189. soundlib/plugins/dmo/I3DL2Reverb.cpp \
  190. soundlib/plugins/dmo/ParamEq.cpp \
  191. soundlib/plugins/dmo/WavesReverb.cpp \
  192. soundlib/plugins/LFOPlugin.cpp \
  193. soundlib/plugins/PluginManager.cpp \
  194. soundlib/plugins/PlugInterface.cpp \
  195. soundlib/plugins/SymMODEcho.cpp \
  196. sounddsp/AGC.cpp \
  197. sounddsp/DSP.cpp \
  198. sounddsp/EQ.cpp \
  199. sounddsp/Reverb.cpp \
  200. test/TestToolsLib.cpp \
  201. test/test.cpp
  202. include $(BUILD_SHARED_LIBRARY)