Hi,
I have a project that currently uses a custom task to execute an NDK-build.
I upgraded to A.S. 2.2 and I can now remove that custom task and my sources
build.
However, there are some issues
I build again API-level 23, use the latest gradle-plugin version and have
these snippets in my build.gradle (it is a library-module):
defaultConfig {
...
ndk {
moduleName "MCInterface"
cFlags "-D_____default_config_ndk_____"
}
ndkBuild {
cFlags "-D_____default_config_ndkBuild_____"
cppFlags "-D_____default_config_ndkBuild_____"
}
...
}
externalNativeBuild {
ndkBuild {
path file("src/main/jni/Android.mk")
cFlags += "-D__WITH_DTLS__ -D_____externalNativeBuild_____"
cppFlags "-D_____externalNativeBuild_____"
}
}
- When running the build, the value of the '*path*' property doesn't matter;
it is not used at all.
It seems the NDK_PROJECT_PATH is *always*
"<module-root>/src/main/jni/Android.mk" and disregards the value as configured
in the build.gradle.
Leaving out the 'path' property however, will give an error.
- 'cFlags' and 'cppFlags' properties are not used at all. They always
default to some default set of values when running ndk-build.
I tried setting them at various levels in the build.gradle, but to no avail.
- There is no way to make the ndk-build use an Application.mk file at all.
It is ignored.
How can I use a specific Android.mk and/or Application.mk file?
If the Application.mk file is ignored, how can I tell the ndk-build to use or
override certain compile and link flags/options app-wide?
Thanks,
--- Anton.
--
You received this message because you are subscribed to the Google Groups
"adt-dev" 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.