I have a C ++ database that is currently configured in Visual Studio (to run on Windows), with several projects with interdependencies. I am trying to transfer it to Android Studio to run it on Android. I am familiar with Visual Studio and C ++, but completely new to Android Studio Gradle and CMake.
My (possibly wrong) expectation is to try and process Android Studio projects, such as Visual Studio Solutions, and Android Studio modules, such as Visual Studio projects. Given that my code base uses several projects in Visual Studio, I am trying to create several modules in Android Studio - each with its own files build.gradleand CMakeLists.txt.
The problem is that I cannot connect one section of code (AS Module) to another. I compile these different sections as STATICusing add_library()(I plan to have one module that creates a library SHAREDfor loading in Java).
I can easily make included work through include_directories("../OtherModule/src/"). However, I can’t get him to communicate. I can not find the .so file (or the like) for the link (via target_link_libraries()or equivalent). When I extract the .arr file from this module, I do not see any .so or anything else.
I understand that I can simply put the entire code base in one module (using one build.gradleand one CMakeLists.txt- or a network CMakeLists.txtusing add_subdirectory()). I do not know if this is good, or it will take more time to build.
, , . , , Java - JNI . .
, -, Android, . !
TL; DR: : ( JNI) Android Studio, . , build.gradle CMakeLists.txt, STATIC. include link. ?! ( )?