I have to build 2 separate C++ projects which have Cmake build files setup for different platforms. I want to build them both for Android using NDK so that I can use them as prebuilt libs in Android Studio.
How do I build them for Android using NDK to generate a .a/.so for Arm architectures? Can I do it using cmake itself? Please provide detailed steps
Finally when I have 2 libraries, how do I integrate to Android Studio? I kind of learnt how to create Android.mks for prebuilt libraries from this link Using Pre-built Shared Library in Android Studio But my lib2 depends on lib1 for both compilation and running. Jni code will depend on the combined library of both lib2 and lib1
I am new to NDK. So please provide detailed answers