Skip to content

Commit

Permalink
Added Android Makefile to create an SDL_image shared library
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 10, 2011
1 parent 833f492 commit 3775b8c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Android.mk
@@ -0,0 +1,18 @@
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := SDL_image

LOCAL_CFLAGS := -I$(LOCAL_PATH)/../jpeg -I$(LOCAL_PATH)/../png -I$(LOCAL_PATH)/../sdl/include \
-DLOAD_PNG -DLOAD_JPG -DLOAD_GIF -DLOAD_BMP

LOCAL_SRC_FILES := $(notdir $(wildcard $(LOCAL_PATH)/*.c))

LOCAL_SHARED_LIBRARIES := SDL

LOCAL_STATIC_LIBRARIES := png jpeg

LOCAL_LDLIBS := -lz

include $(BUILD_SHARED_LIBRARY)

0 comments on commit 3775b8c

Please sign in to comment.