Android.mk
author Sam Lantinga <slouken@libsdl.org>
Sat, 28 Sep 2013 14:07:17 -0700
changeset 7766 84b154b1ed71
parent 7667 be1cc6f55840
child 7793 6463a850229d
permissions -rwxr-xr-x
Call AddRef() on the device so it doesn't accidentally get released from underneath the caller.
     1 LOCAL_PATH := $(call my-dir)
     2 
     3 ###########################
     4 #
     5 # SDL shared library
     6 #
     7 ###########################
     8 
     9 include $(CLEAR_VARS)
    10 
    11 LOCAL_MODULE := SDL2
    12 
    13 LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
    14 
    15 LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES)
    16 
    17 LOCAL_SRC_FILES := \
    18 	$(subst $(LOCAL_PATH)/,, \
    19 	$(wildcard $(LOCAL_PATH)/src/*.c) \
    20 	$(wildcard $(LOCAL_PATH)/src/audio/*.c) \
    21 	$(wildcard $(LOCAL_PATH)/src/audio/android/*.c) \
    22 	$(wildcard $(LOCAL_PATH)/src/audio/dummy/*.c) \
    23 	$(LOCAL_PATH)/src/atomic/SDL_atomic.c \
    24 	$(LOCAL_PATH)/src/atomic/SDL_spinlock.c.arm \
    25 	$(wildcard $(LOCAL_PATH)/src/core/android/*.c) \
    26 	$(wildcard $(LOCAL_PATH)/src/cpuinfo/*.c) \
    27 	$(wildcard $(LOCAL_PATH)/src/events/*.c) \
    28 	$(wildcard $(LOCAL_PATH)/src/file/*.c) \
    29 	$(wildcard $(LOCAL_PATH)/src/haptic/*.c) \
    30 	$(wildcard $(LOCAL_PATH)/src/haptic/dummy/*.c) \
    31 	$(wildcard $(LOCAL_PATH)/src/joystick/*.c) \
    32 	$(wildcard $(LOCAL_PATH)/src/joystick/android/*.c) \
    33 	$(wildcard $(LOCAL_PATH)/src/loadso/dlopen/*.c) \
    34 	$(wildcard $(LOCAL_PATH)/src/power/*.c) \
    35 	$(wildcard $(LOCAL_PATH)/src/power/android/*.c) \
    36 	$(wildcard $(LOCAL_PATH)/src/filesystem/dummy/*.c) \
    37 	$(wildcard $(LOCAL_PATH)/src/render/*.c) \
    38 	$(wildcard $(LOCAL_PATH)/src/render/*/*.c) \
    39 	$(wildcard $(LOCAL_PATH)/src/stdlib/*.c) \
    40 	$(wildcard $(LOCAL_PATH)/src/thread/*.c) \
    41 	$(wildcard $(LOCAL_PATH)/src/thread/pthread/*.c) \
    42 	$(wildcard $(LOCAL_PATH)/src/timer/*.c) \
    43 	$(wildcard $(LOCAL_PATH)/src/timer/unix/*.c) \
    44 	$(wildcard $(LOCAL_PATH)/src/video/*.c) \
    45 	$(wildcard $(LOCAL_PATH)/src/video/android/*.c))
    46 
    47 LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES
    48 LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog -landroid
    49 
    50 include $(BUILD_SHARED_LIBRARY)