Android: add module to build library as static in Android.mk default tip
authorSylvain Becker <sylvain.becker@gmail.com>
Wed, 27 Nov 2019 17:42:16 +0100
changeset 74519cb0b753d82
parent 744 c79c2855603a
Android: add module to build library as static in Android.mk
Android.mk
     1.1 --- a/Android.mk	Wed Nov 13 18:50:00 2019 +0300
     1.2 +++ b/Android.mk	Wed Nov 27 17:42:16 2019 +0100
     1.3 @@ -87,3 +87,19 @@
     1.4  LOCAL_EXPORT_C_INCLUDES += $(LOCAL_PATH)
     1.5  
     1.6  include $(BUILD_SHARED_LIBRARY)
     1.7 +
     1.8 +###########################
     1.9 +#
    1.10 +# SDL2_image static library
    1.11 +#
    1.12 +###########################
    1.13 +
    1.14 +LOCAL_MODULE := SDL2_image_static
    1.15 +
    1.16 +LOCAL_MODULE_FILENAME := libSDL2_image
    1.17 +
    1.18 +LOCAL_LDLIBS :=
    1.19 +LOCAL_EXPORT_LDLIBS :=
    1.20 +
    1.21 +include $(BUILD_STATIC_LIBRARY)
    1.22 +