I'm using Android Studio 1.2.1.1, with gradle plugin 1.1.
As of today, when we create a project with a jni source folder, the
ndk-build tool is run automatically, with a generated Android.mk file,
which we can configure a bit in our build.gradle file.
Problem is that the configuration is quite limited, and there's no option
to have a completely custom Android.mk / Application.mk file. To do so, we
need to use hacks, tricking gradle into thinking there's no JNI source, and
invoke the ndkbuild tool ourselves, creating custom tasks.
It would be great to have simply a customMakeFile parameter in the
build.gradle file to allow customization. For instance we could have the
following config that would not overwrite our own Android.mk /
Application.mk
defaultConfig {
// [...]
ndk {
customMakeFile true
}
}
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.