Skip to content

Commit

Permalink
Fixed building for Android armeabi
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 23, 2017
1 parent f651615 commit 0aaafac
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Android.mk
Expand Up @@ -60,6 +60,7 @@ LOCAL_MODULE := SDL2_mixer

LOCAL_SRC_FILES := $(notdir $(filter-out %/playmus.c %/playwave.c, $(wildcard $(LOCAL_PATH)/*.c))) \

LOCAL_CFLAGS :=
LOCAL_LDLIBS :=
LOCAL_STATIC_LIBRARIES :=
LOCAL_SHARED_LIBRARIES := SDL2
Expand Down Expand Up @@ -97,6 +98,6 @@ ifeq ($(SUPPORT_TIMIDITY),true)
LOCAL_STATIC_LIBRARIES += timidity
endif

LOCAL_EXPORT_C_INCLUDES += $(LOCAL_C_INCLUDES)
LOCAL_EXPORT_C_INCLUDES += $(LOCAL_PATH)

include $(BUILD_SHARED_LIBRARY)
4 changes: 2 additions & 2 deletions external/libvorbisidec-1.2.1.patch
@@ -1,6 +1,6 @@
diff -ruN libvorbisidec-1.2.1.orig/Android.mk libvorbisidec-1.2.1/Android.mk
--- libvorbisidec-1.2.1.orig/Android.mk 1969-12-31 16:00:00.000000000 -0800
+++ libvorbisidec-1.2.1/Android.mk 2017-10-22 11:49:09.948298409 -0700
+++ libvorbisidec-1.2.1/Android.mk 2017-10-22 17:27:12.176911197 -0700
@@ -0,0 +1,32 @@
+LOCAL_PATH := $(call my-dir)
+
Expand Down Expand Up @@ -35,7 +35,7 @@ diff -ruN libvorbisidec-1.2.1.orig/Android.mk libvorbisidec-1.2.1/Android.mk
+
+include $(BUILD_STATIC_LIBRARY)
diff -ruN libvorbisidec-1.2.1.orig/misc.h libvorbisidec-1.2.1/misc.h
--- libvorbisidec-1.2.1.orig/misc.h 2017-10-22 11:25:03.341817045 -0700
--- libvorbisidec-1.2.1.orig/misc.h 2017-10-22 17:26:08.725205666 -0700
+++ libvorbisidec-1.2.1/misc.h 2017-10-12 20:05:06.719770194 -0700
@@ -30,6 +30,7 @@

Expand Down
8 changes: 4 additions & 4 deletions external/libvorbisidec-1.2.1/Android.mk
Expand Up @@ -13,19 +13,19 @@ ifeq ($(TARGET_ARCH),arm)
endif

LOCAL_SRC_FILES += \
mdct.c \
mdct.c.arm \
block.c \
window.c \
window.c.arm \
synthesis.c \
info.c \
floor1.c \
floor1.c.arm \
floor0.c.arm \
vorbisfile.c.arm \
res012.c \
mapping0.c \
registry.c \
codebook.c \
sharedbook.c \
sharedbook.c.arm \

LOCAL_SHARED_LIBRARIES := ogg

Expand Down

0 comments on commit 0aaafac

Please sign in to comment.