Skip to content

Commit d9b6dd3

Browse files
mechakotiksezero
authored andcommitted
Android.mk: add GME support
(cherry picked from commit 66a206c)
1 parent 0d4676b commit d9b6dd3

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Android.mk

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ MPG123_LIBRARY_PATH := external/mpg123
3030
SUPPORT_WAVPACK ?= true
3131
WAVPACK_LIBRARY_PATH := external/wavpack
3232

33+
# Enable this if you want to support loading music via libgme
34+
SUPPORT_GME ?= true
35+
GME_LIBRARY_PATH := external/libgme
36+
3337
# Enable this if you want to support loading MOD music via XMP-lite
3438
SUPPORT_MOD_XMP ?= false
3539
XMP_LIBRARY_PATH := external/libxmp
@@ -60,6 +64,11 @@ ifeq ($(SUPPORT_WAVPACK),true)
6064
include $(SDL_MIXER_LOCAL_PATH)/$(WAVPACK_LIBRARY_PATH)/Android.mk
6165
endif
6266

67+
# Build the library
68+
ifeq ($(SUPPORT_GME),true)
69+
include $(SDL_MIXER_LOCAL_PATH)/$(GME_LIBRARY_PATH)/Android.mk
70+
endif
71+
6372
# Build the library
6473
ifeq ($(SUPPORT_MOD_XMP),true)
6574
include $(SDL_MIXER_LOCAL_PATH)/$(XMP_LIBRARY_PATH)/Android.mk
@@ -136,6 +145,12 @@ ifeq ($(SUPPORT_WAVPACK),true)
136145
LOCAL_STATIC_LIBRARIES += wavpack
137146
endif
138147

148+
ifeq ($(SUPPORT_GME),true)
149+
LOCAL_CFLAGS += -DMUSIC_GME
150+
LOCAL_C_INCLUDES += $(LOCAL_PATH)/$(GME_LIBRARY_PATH)
151+
LOCAL_STATIC_LIBRARIES += libgme
152+
endif
153+
139154
ifeq ($(SUPPORT_MOD_XMP),true)
140155
LOCAL_CFLAGS += -DMUSIC_MOD_XMP -DLIBXMP_HEADER=\"../external/libxmp/include/xmp.h\"
141156
LOCAL_STATIC_LIBRARIES += xmp

0 commit comments

Comments
 (0)