Android.mk
changeset 777 92882ef2ab81
parent 754 dac1854c8826
child 790 23626ec410c8
equal deleted inserted replaced
776:07b8e286bc03 777:92882ef2ab81
    34 
    34 
    35 # Enable this if you want to support TiMidity
    35 # Enable this if you want to support TiMidity
    36 SUPPORT_TIMIDITY ?= true
    36 SUPPORT_TIMIDITY ?= true
    37 
    37 
    38 LOCAL_C_INCLUDES := $(LOCAL_PATH) 
    38 LOCAL_C_INCLUDES := $(LOCAL_PATH) 
    39 LOCAL_CFLAGS := -DWAV_MUSIC 
    39 LOCAL_CFLAGS := -DMUSIC_WAV
    40 
    40 
    41 LOCAL_SRC_FILES := $(notdir $(filter-out %/playmus.c %/playwave.c, $(wildcard $(LOCAL_PATH)/*.c))) \
    41 LOCAL_SRC_FILES := $(notdir $(filter-out %/playmus.c %/playwave.c, $(wildcard $(LOCAL_PATH)/*.c))) \
    42 
    42 
    43 
    43 
    44 LOCAL_LDLIBS :=
    44 LOCAL_LDLIBS :=
    45 LOCAL_STATIC_LIBRARIES :=
    45 LOCAL_STATIC_LIBRARIES :=
    46 LOCAL_SHARED_LIBRARIES := SDL2
    46 LOCAL_SHARED_LIBRARIES := SDL2
    47 
    47 
    48 ifeq ($(SUPPORT_TIMIDITY),true)
    48 ifeq ($(SUPPORT_TIMIDITY),true)
    49 	LOCAL_C_INCLUDES += $(LOCAL_PATH)/timidity
    49 	LOCAL_C_INCLUDES += $(LOCAL_PATH)/timidity
    50 	LOCAL_CFLAGS += -DMID_MUSIC -DUSE_TIMIDITY_MIDI
    50 	LOCAL_CFLAGS += -DMUSIC_MID -DMUSIC_MID_TIMIDITY
    51 	LOCAL_SRC_FILES += $(subst $(LOCAL_PATH)/,,$(wildcard $(LOCAL_PATH)/timidity/*.c))
    51 	LOCAL_SRC_FILES += $(subst $(LOCAL_PATH)/,,$(wildcard $(LOCAL_PATH)/timidity/*.c))
    52 endif
    52 endif
    53 
    53 
    54 ifeq ($(SUPPORT_FLAC),true)
    54 ifeq ($(SUPPORT_FLAC),true)
    55 	LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(FLAC_LIBRARY_PATH)/include
    55 	LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(FLAC_LIBRARY_PATH)/include
    56 	LOCAL_CFLAGS += -DFLAC_MUSIC
    56 	LOCAL_CFLAGS += -DMUSIC_FLAC
    57     LOCAL_SHARED_LIBRARIES += libFLAC
    57     LOCAL_SHARED_LIBRARIES += libFLAC
    58 endif
    58 endif
    59 
    59 
    60 ifeq ($(SUPPORT_MOD_MODPLUG),true)
    60 ifeq ($(SUPPORT_MOD_MODPLUG),true)
    61     LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(MODPLUG_LIBRARY_PATH)/src $(LOCAL_PATH)/$(MODPLUG_LIBRARY_PATH)/src/libmodplug
    61     LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(MODPLUG_LIBRARY_PATH)/src $(LOCAL_PATH)/$(MODPLUG_LIBRARY_PATH)/src/libmodplug
    62     LOCAL_CFLAGS += -DMODPLUG_MUSIC -DMODPLUG_HEADER="<modplug.h>" -DHAVE_SETENV -DHAVE_SINF
    62     LOCAL_CFLAGS += -DMUSIC_MOD_MODPLUG -DMODPLUG_HEADER="<modplug.h>" -DHAVE_SETENV -DHAVE_SINF
    63     LOCAL_SRC_FILES += \
    63     LOCAL_SRC_FILES += \
    64         $(MODPLUG_LIBRARY_PATH)/src/fastmix.cpp \
    64         $(MODPLUG_LIBRARY_PATH)/src/fastmix.cpp \
    65         $(MODPLUG_LIBRARY_PATH)/src/load_669.cpp \
    65         $(MODPLUG_LIBRARY_PATH)/src/load_669.cpp \
    66         $(MODPLUG_LIBRARY_PATH)/src/load_abc.cpp \
    66         $(MODPLUG_LIBRARY_PATH)/src/load_abc.cpp \
    67         $(MODPLUG_LIBRARY_PATH)/src/load_amf.cpp \
    67         $(MODPLUG_LIBRARY_PATH)/src/load_amf.cpp \
    97         $(MODPLUG_LIBRARY_PATH)/src/sndmix.cpp
    97         $(MODPLUG_LIBRARY_PATH)/src/sndmix.cpp
    98 endif
    98 endif
    99 
    99 
   100 ifeq ($(SUPPORT_MP3_SMPEG),true)
   100 ifeq ($(SUPPORT_MP3_SMPEG),true)
   101     LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(SMPEG_LIBRARY_PATH)
   101     LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(SMPEG_LIBRARY_PATH)
   102     LOCAL_CFLAGS += -DMP3_MUSIC
   102     LOCAL_CFLAGS += -DMUSIC_MP3_SMPEG
   103     LOCAL_SHARED_LIBRARIES += smpeg2
   103     LOCAL_SHARED_LIBRARIES += smpeg2
   104 endif
   104 endif
   105 
   105 
   106 ifeq ($(SUPPORT_OGG),true)
   106 ifeq ($(SUPPORT_OGG),true)
   107     LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(OGG_LIBRARY_PATH)/android \
   107     LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(OGG_LIBRARY_PATH)/android \
   108                         $(LOCAL_PATH)/$(OGG_LIBRARY_PATH)/include \
   108                         $(LOCAL_PATH)/$(OGG_LIBRARY_PATH)/include \
   109                         $(LOCAL_PATH)/$(VORBIS_LIBRARY_PATH)
   109                         $(LOCAL_PATH)/$(VORBIS_LIBRARY_PATH)
   110     LOCAL_CFLAGS += -DOGG_MUSIC -DOGG_USE_TREMOR -DOGG_HEADER="<ivorbisfile.h>"
   110     LOCAL_CFLAGS += -DMUSIC_OGG -DOGG_USE_TREMOR -DOGG_HEADER="<ivorbisfile.h>"
   111     ifeq ($(TARGET_ARCH_ABI),armeabi)
   111     ifeq ($(TARGET_ARCH_ABI),armeabi)
   112 	LOCAL_CFLAGS += -D_ARM_ASSEM_
   112 	LOCAL_CFLAGS += -D_ARM_ASSEM_
   113     endif
   113     endif
   114     ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
   114     ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
   115 	LOCAL_CFLAGS += -D_ARM_ASSEM_
   115 	LOCAL_CFLAGS += -D_ARM_ASSEM_