In my Android NDK project, I have the following structure:
jni/
Android.mk
... (more source files)
new-lib/
Android.mk
... (more source files)
In the top level Android.mk I have include $(call all-subdir-makefiles)
as the last line. I suppose now all the native codes including those under new-lib/ should get built when run ndk-build
.
But when I run ndk-build
command under project root path, only the top level native codes get built, the native code in subdir new-lib/ isn't built at all. Why?