I have a library in c/c++. I have used it successfully in a few c++ programs.
I want to test if it compiles on Android, and what size it would be etc.
Is there any way for me to compile this library to a .so file without having a whole Android Java project? I know nothing about Android development, but have a friend who wants to use my library. Can I just supply him with a compiled .so file?
Every resource I found says it needs to be compiled out of a JNI folder in an Android Project.
I discovered that to use the build-ndk script, I don’t need a real project. I created a folder
project, with nothing in it except another folderjni, and put all my sources in that folder. I then created theAndroid.mkfile and ran the script as described in the ndk docs.