Android.mk
author Sam Lantinga <slouken@libsdl.org>
Thu, 06 Jan 2011 16:11:21 -0800
changeset 4964 6c645018741e
child 5003 3a95a2b93eb3
permissions -rwxr-xr-x
Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf.
slouken@4964
     1
LOCAL_PATH := $(call my-dir)
slouken@4964
     2
slouken@4964
     3
###########################
slouken@4964
     4
#
slouken@4964
     5
# SDL shared library
slouken@4964
     6
#
slouken@4964
     7
###########################
slouken@4964
     8
slouken@4964
     9
include $(CLEAR_VARS)
slouken@4964
    10
slouken@4964
    11
LOCAL_MODULE := SDL
slouken@4964
    12
slouken@4964
    13
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
slouken@4964
    14
slouken@4964
    15
LOCAL_SRC_FILES := src/SDL_android.cpp \
slouken@4964
    16
	$(subst $(LOCAL_PATH)/,, \
slouken@4964
    17
	$(wildcard $(LOCAL_PATH)/src/*.c) \
slouken@4964
    18
	$(wildcard $(LOCAL_PATH)/src/audio/*.c) \
slouken@4964
    19
	$(wildcard $(LOCAL_PATH)/src/cpuinfo/*.c) \
slouken@4964
    20
	$(wildcard $(LOCAL_PATH)/src/events/*.c) \
slouken@4964
    21
	$(wildcard $(LOCAL_PATH)/src/file/*.c) \
slouken@4964
    22
	$(wildcard $(LOCAL_PATH)/src/joystick/*.c) \
slouken@4964
    23
	$(wildcard $(LOCAL_PATH)/src/haptic/*.c) \
slouken@4964
    24
	$(wildcard $(LOCAL_PATH)/src/stdlib/*.c) \
slouken@4964
    25
	$(wildcard $(LOCAL_PATH)/src/thread/*.c) \
slouken@4964
    26
	$(wildcard $(LOCAL_PATH)/src/timer/*.c) \
slouken@4964
    27
	$(wildcard $(LOCAL_PATH)/src/video/*.c) \
slouken@4964
    28
	$(wildcard $(LOCAL_PATH)/src/power/*.c) \
slouken@4964
    29
	$(wildcard $(LOCAL_PATH)/src/audio/android/*.c) \
slouken@4964
    30
	$(wildcard $(LOCAL_PATH)/src/audio/dummy/*.c) \
slouken@4964
    31
	$(wildcard $(LOCAL_PATH)/src/video/android/*.c) \
slouken@4964
    32
	$(wildcard $(LOCAL_PATH)/src/joystick/android/*.c) \
slouken@4964
    33
	$(wildcard $(LOCAL_PATH)/src/haptic/dummy/*.c) \
slouken@4964
    34
	$(wildcard $(LOCAL_PATH)/src/atomic/dummy/*.c) \
slouken@4964
    35
	$(wildcard $(LOCAL_PATH)/src/thread/pthread/*.c) \
slouken@4964
    36
	$(wildcard $(LOCAL_PATH)/src/timer/unix/*.c) \
slouken@4964
    37
	$(wildcard $(LOCAL_PATH)/src/loadso/dlopen/*.c))
slouken@4964
    38
slouken@4964
    39
LOCAL_LDLIBS := -ldl -lGLESv1_CM -llog
slouken@4964
    40
slouken@4964
    41
include $(BUILD_SHARED_LIBRARY)