Gradle support for ARM-NEON compilation options

Hi,

Does Gradle build system support ARM-NEON compilation options ? How do I enable ARM NEON builds using Gradle? We are using Gradle version 2.8 that came with Android studio.

We have already tried the following options. And they don’t work….

CFlags.add("-mfloat-abi=soft")
CFlags.add("-mfpu=neon")
cppFlags.addAll(["-mfloat-abi=softfp", “-mfpu=neon”, “-O3”])

NEON is an indispensable part for ARM architecture. For building Native C/C++ with Neon code we still have to fall back on Android NDK.

Please let me know a solution.

Thanks
Rajesh