Android.mk
changeset 7804 1f85fb33694b
parent 7793 6463a850229d
child 8097 d4e916b1c135
     1.1 --- a/Android.mk	Thu Oct 10 21:50:25 2013 -0700
     1.2 +++ b/Android.mk	Thu Oct 10 21:51:39 2013 -0700
     1.3 @@ -49,3 +49,20 @@
     1.4  LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -llog -landroid
     1.5  
     1.6  include $(BUILD_SHARED_LIBRARY)
     1.7 +
     1.8 +###########################
     1.9 +#
    1.10 +# SDL static library
    1.11 +#
    1.12 +###########################
    1.13 +
    1.14 +LOCAL_MODULE := SDL2_static
    1.15 +
    1.16 +LOCAL_MODULE_FILENAME := libSDL2
    1.17 +
    1.18 +LOCAL_SRC_FILES += $(LOCAL_PATH)/src/main/android/SDL_android_main.c
    1.19 +
    1.20 +LOCAL_LDLIBS := 
    1.21 +LOCAL_EXPORT_LDLIBS := -Wl,--undefined=Java_org_libsdl_app_SDLActivity_nativeInit -ldl -lGLESv1_CM -lGLESv2 -llog -landroid
    1.22 +
    1.23 +include $(BUILD_STATIC_LIBRARY)