I have an Android library project 'A', which contains native C++ sources in the 'A/jni' folder which nicely build to a 'A/libs/armeabi-v7a/libA.so' and related for other platforms.
I now want to make an Android project 'B' which consists of Java stuff as well as more native C++ sources in the 'B/jni' folder. These sources use code from the C++ library of project 'A'. I have managed to compile these fine by setting my
LOCAL_C_INCLUDES := (path_to_A/jni) (i.e. this picks up the header files from project 'A').
The question: how do I link to 'A/lib/armeabi-v7a/libA.so' in a clean way?
I have read the IMPORT_MODULE documentation, but that seems to be geared towards a situation in which you want to link to a pure-NDK module, not a library which sits inside an Android library project.