include several .so files in kotlin android project

  .so, android, c++, gradle, kotlin

An external team provides me several .so files to use in my kotlin Android project.
These .so files are in a jniLibs directory.

In order to have access to some methods of these libraries, I’m going to create a main.cpp file that will contain JNI methods.

My question is the following: How do I build the that contains all external .so libs + my main.cpp file ? Should I do it with gradle, or CMakeLists.txt ? And what this file must contain ?

Thank you in advance.

Source: Windows Questions C++