Skip to content

Commit

Permalink
Improved include paths for projects using SDL on Android
Browse files Browse the repository at this point in the history
Isaac Burns

I wanted to suggest a few changes I've found that help the Android build.  By adding LOCAL_EXPORT_C_INCLUDES to the Android.mk file, anything that references the SDL Android project will inherit the include paths.
  • Loading branch information
slouken committed Jun 17, 2013
1 parent 3257e39 commit 67aade6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Android.mk
Expand Up @@ -26,7 +26,7 @@ OGG_LIBRARY_PATH := external/libogg-1.3.1
VORBIS_LIBRARY_PATH := external/libvorbisidec-1.2.1


LOCAL_C_INCLUDES := $(NDK_PROJECT_PATH)/jni/SDL/include
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_CFLAGS := -DWAV_MUSIC

LOCAL_SRC_FILES := $(notdir $(filter-out %/playmus.c %/playwave.c, $(wildcard $(LOCAL_PATH)/*.c)))
Expand Down Expand Up @@ -108,4 +108,6 @@ ifeq ($(SUPPORT_OGG),true)
$(OGG_LIBRARY_PATH)/src/bitwise.c
endif

LOCAL_EXPORT_C_INCLUDES += $(LOCAL_C_INCLUDES)

include $(BUILD_SHARED_LIBRARY)

0 comments on commit 67aade6

Please sign in to comment.