Is there any way to relocate my source code (including all .h .cpp and .mk files) outside of project folder? In other words, i want to move out content of jni folder out of android project folder. Now, physical structure of my project looks like this:
.../ProjectFolder/AndroidProjectFolder/jni/(sources and make files)
.../ProjectFolder/AndroidProjectFolder/(other android project files)
.../ProjectFolder/iosProjectFolder/(other ios project files)
I want to make like this:
.../ProjectFolder/src/(sources and make files)
.../ProjectFolder/AndroidProjectFolder/(other android project files)
.../ProjectFolder/iosProjectFolder/(other ios project files)
Is there any correct way to do it?
Yes, you can do that. I use the directory above jni for instance MyProject/src/ This sample builds a shared library…You can also build static libraries. Notice the $(call my-dir)/.. the ‘call my-dir)’ points to the jni directory that contains the Android.mk file. So adding the /.. backs it up a directory.