How to add a shared library (let it be libXYZ.so
) as a dependency for a LOCAL_MODULE
target, when libXYZ.so
does not link to the target directly.
How to make sure build system first builds the dependency(libXYZ.so
) and then execute commands for LOCAL_MODULE
from a Android.mk
This is required because in my build, the dependency (libXYZ.so
) it self is not used but a symlink with different name is used. (libABC.so -> libXYZ.so
). The symlink is generated after the shared library is created, as part of LOCAL_POST_INSTALL_CMD
.