I am trying to compile native code using the experimental plugin. This code references header files which reside at a different location
In the good old Android.mk days I would simply add LOCAL_C_INCLUDES
and point it to the location of the header files.
But how do I do it via the gradle build script when I have no Android.mk?
What is the equivalent for LOCAL_C_INCLUDES
in gradle?
I tried
android.ndk {
moduleName = "mymodule"
cppFlags.add("-I${file("C:\\Android\\JNI\\inc")}".toString())
}
but it did not work.
The header files can not be found: "my_file.h
No such file or directory."