Guys from Korean market asked to show game rating (an image with text "18+" and some more korean text) in startup screen, so I've added more-less generic solution.
33 lines
845 B
Makefile
33 lines
845 B
Makefile
LOCAL_PATH := $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := sdl_mixer
|
|
|
|
LOCAL_CFLAGS := -I$(LOCAL_PATH) -I$(LOCAL_PATH)/.. -I$(LOCAL_PATH)/../sdl-$(SDL_VERSION)/include \
|
|
-I$(LOCAL_PATH)/../mad -I$(LOCAL_PATH)/../flac/include -I$(LOCAL_PATH)/../ogg/include -I$(LOCAL_PATH)/../vorbis/include \
|
|
-DWAV_MUSIC -DOGG_USE_TREMOR -DOGG_MUSIC -DFLAC_MUSIC
|
|
|
|
LOCAL_CPP_EXTENSION := .cpp
|
|
|
|
LOCAL_SRC_FILES := $(notdir $(wildcard $(LOCAL_PATH)/*.c))
|
|
|
|
LOCAL_SHARED_LIBRARIES := sdl-$(SDL_VERSION)
|
|
LOCAL_STATIC_LIBRARIES := flac
|
|
|
|
ifeq "$(TARGET_ARCH_ABI)" "armeabi"
|
|
LOCAL_CFLAGS += -DOGG_USE_TREMOR
|
|
LOCAL_STATIC_LIBRARIES += tremor
|
|
else
|
|
LOCAL_STATIC_LIBRARIES += vorbis
|
|
endif
|
|
LOCAL_STATIC_LIBRARIES += ogg
|
|
|
|
ifneq ($(SDL_MIXER_USE_LIBMAD),)
|
|
LOCAL_CFLAGS += -DMP3_MAD_MUSIC
|
|
LOCAL_SHARED_LIBRARIES += mad
|
|
endif
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|