I'm trying to learn to use the NDK in AndroidStudio, and I'd like to import the "android_native_app_glue" file used in the "native-activity" sample, so that I have a framework for basic functions like the display, touch, etc. In the sample, it loads the library with this line in the android.mk file:
LOCAL_STATIC_LIBRARIES := android_native_app_glue
and then imports it in "main.c" simply with:
#include <android_native_app_glue.h>
But in AndroidStudio, as far as I can tell from experimenting with it, it doesn't use the android.mk file at all and instead uses the build.gradle file to do all the same functions instead. So, for example, to replace LOCAL_LDLIBS := ...
in the android.mk, I used ldLibs = ...
in the build.gradle. What gradle code replaces LOCAL_STATIC_LIBRARIES
?
Is there also a resource somewhere that explains, in general, how to translate from android.mk to build.gradle?