android - How to avoid: ndk-build adds lib prefix to shared libraries -


on using $build_shared_library shown below, , calling ndk-build, library named libmyaudio.so

local_module := myaudio local_src_files := loop.c local_shared_libraries := liblog libcutils local_module_tags := optional local_cflags := -wno-unused-parameter $(include_path) local_ldflags += -llog include $(build_shared_library) 

what can change in android.mk ensure built file myaudio.so instead of libmyaudio.so

use local_module_filename:

local_module_filename := myaudio 

from ndk documentation:

this optional variable allows override names build system uses default files generates. [...] note: cannot override filepath or file extension.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -