Added my Android build files to iphone branch, added #ifdef ANDROID and fixed some missed includes in sources
This commit is contained in:
37
build/Android/project/jni/sdl/Android.mk
Normal file
37
build/Android/project/jni/sdl/Android.mk
Normal file
@@ -0,0 +1,37 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := sdl
|
||||
|
||||
LOCAL_CFLAGS := -I$(LOCAL_PATH)/include
|
||||
|
||||
SDL_SRCS := \
|
||||
src/*.c \
|
||||
src/audio/*.c \
|
||||
src/cdrom/*.c \
|
||||
src/cpuinfo/*.c \
|
||||
src/events/*.c \
|
||||
src/file/*.c \
|
||||
src/joystick/*.c \
|
||||
src/stdlib/*.c \
|
||||
src/thread/*.c \
|
||||
src/timer/*.c \
|
||||
src/video/*.c \
|
||||
src/audio/dummy/*.c \
|
||||
src/video/android/*.c \
|
||||
src/joystick/dummy/*.c \
|
||||
src/cdrom/dummy/*.c \
|
||||
src/thread/pthread/*.c \
|
||||
src/timer/unix/*.c \
|
||||
src/loadso/dummy/*.c \
|
||||
|
||||
LOCAL_CPP_EXTENSION := .cpp
|
||||
|
||||
# Note this simple makefile var substitution, you can find even simpler examples in different Android projects
|
||||
LOCAL_SRC_FILES := $(foreach F, $(SDL_SRCS), $(addprefix $(dir $(F)),$(notdir $(wildcard $(LOCAL_PATH)/$(F)))))
|
||||
|
||||
LOCAL_LDLIBS := -lGLESv1_CM -ldl -llog
|
||||
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
Reference in New Issue
Block a user