Fixed bug 3912 - android, faster loading of xpm file when compiled in ARM release-2.0.2
authorSam Lantinga <slouken@libsdl.org>
Mon, 23 Oct 2017 08:12:02 -0700
changeset 543c28eb37178a1
parent 542 4009a3c9612b
child 544 a2302a9c20ab
Fixed bug 3912 - android, faster loading of xpm file when compiled in ARM

Sylvain

I have noticed that loading xpm file was much faster (30%) when it was compiled with arm
Android.mk
     1.1 --- a/Android.mk	Mon Oct 23 07:40:36 2017 -0700
     1.2 +++ b/Android.mk	Mon Oct 23 08:12:02 2017 -0700
     1.3 @@ -40,7 +40,24 @@
     1.4  
     1.5  LOCAL_MODULE := SDL2_image
     1.6  
     1.7 -LOCAL_SRC_FILES := $(notdir $(filter-out %/showimage.c, $(wildcard $(LOCAL_PATH)/*.c)))
     1.8 +LOCAL_SRC_FILES :=  \
     1.9 +    IMG.c           \
    1.10 +    IMG_bmp.c       \
    1.11 +    IMG_gif.c       \
    1.12 +    IMG_jpg.c       \
    1.13 +    IMG_lbm.c       \
    1.14 +    IMG_pcx.c       \
    1.15 +    IMG_png.c       \
    1.16 +    IMG_pnm.c       \
    1.17 +    IMG_svg.c       \
    1.18 +    IMG_tga.c       \
    1.19 +    IMG_tif.c       \
    1.20 +    IMG_webp.c      \
    1.21 +    IMG_WIC.c       \
    1.22 +    IMG_xcf.c       \
    1.23 +    IMG_xpm.c.arm   \
    1.24 +    IMG_xv.c        \
    1.25 +    IMG_xxx.c
    1.26  
    1.27  LOCAL_CFLAGS := -DLOAD_BMP -DLOAD_GIF -DLOAD_LBM -DLOAD_PCX -DLOAD_PNM \
    1.28                  -DLOAD_SVG -DLOAD_TGA -DLOAD_XCF -DLOAD_XPM -DLOAD_XV