Android.mk
author Ryan C. Gordon <icculus@icculus.org>
Fri, 03 Jun 2011 16:03:10 -0400
changeset 5547 4ccecd0901e2
parent 5204 daa5463466c5
child 6208 291fea716f09
permissions -rwxr-xr-x
Assert code's stdio interface was reading from the wrong variable.

Thanks to Frank Zago for the catch.
     1 LOCAL_PATH := $(call my-dir)
     2 
     3 ###########################
     4 #
     5 # SDL shared library
     6 #
     7 ###########################
     8 
     9 include $(CLEAR_VARS)
    10 
    11 LOCAL_MODULE := SDL
    12 
    13 LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
    14 
    15 LOCAL_SRC_FILES := \
    16 	$(subst $(LOCAL_PATH)/,, \
    17 	$(wildcard $(LOCAL_PATH)/src/*.c) \
    18 	$(wildcard $(LOCAL_PATH)/src/audio/*.c) \
    19 	$(wildcard $(LOCAL_PATH)/src/audio/android/*.c) \
    20 	$(wildcard $(LOCAL_PATH)/src/audio/dummy/*.c) \
    21 	$(LOCAL_PATH)/src/atomic/SDL_atomic.c \
    22 	$(LOCAL_PATH)/src/atomic/SDL_spinlock.c.arm \
    23 	$(wildcard $(LOCAL_PATH)/src/core/android/*.cpp) \
    24 	$(wildcard $(LOCAL_PATH)/src/cpuinfo/*.c) \
    25 	$(wildcard $(LOCAL_PATH)/src/events/*.c) \
    26 	$(wildcard $(LOCAL_PATH)/src/file/*.c) \
    27 	$(wildcard $(LOCAL_PATH)/src/haptic/*.c) \
    28 	$(wildcard $(LOCAL_PATH)/src/haptic/dummy/*.c) \
    29 	$(wildcard $(LOCAL_PATH)/src/joystick/*.c) \
    30 	$(wildcard $(LOCAL_PATH)/src/joystick/android/*.c) \
    31 	$(wildcard $(LOCAL_PATH)/src/loadso/dlopen/*.c) \
    32 	$(wildcard $(LOCAL_PATH)/src/power/*.c) \
    33 	$(wildcard $(LOCAL_PATH)/src/render/*.c) \
    34 	$(wildcard $(LOCAL_PATH)/src/render/*/*.c) \
    35 	$(wildcard $(LOCAL_PATH)/src/stdlib/*.c) \
    36 	$(wildcard $(LOCAL_PATH)/src/thread/*.c) \
    37 	$(wildcard $(LOCAL_PATH)/src/thread/pthread/*.c) \
    38 	$(wildcard $(LOCAL_PATH)/src/timer/*.c) \
    39 	$(wildcard $(LOCAL_PATH)/src/timer/unix/*.c) \
    40 	$(wildcard $(LOCAL_PATH)/src/video/*.c) \
    41 	$(wildcard $(LOCAL_PATH)/src/video/android/*.c))
    42 
    43 LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog
    44 
    45 include $(BUILD_SHARED_LIBRARY)