Simple neon optimization in Android -


in android application, use bunch of open source libraries such libyuv, libvpx, libcrypto, libssl, etc. of them come android.mk. others, hand-crafted android.mk.

the code built arm now. here application.mk:

app_abi := armeabi-v7a app_optim := release app_stl := gnustl_static app_cppflags := -frtti 

i looking way generate binaries optimized neon. browsing net, found following setting using in android.mk:

local_cflags += -mfloat-abi=softfp -mfpu=neon -march=armv7 

i wonder if put setting in application.mk, automatically applied across libraries?

a step before each library built following:

include $(clear_vars) 

is better include local_cflags directive after line (instead of including in application.mk)?

finally, why doesn't ndk-build automatically optimize neon when sees armabi in application.mk? regards.

it doesn't automatically optimize neon because not arm devices have neon.

adding cflags applied if building source. if have .so you're moving across not change file @ all.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -