How I can add -D_FILE_OFFSET_BITS=64 in Cmake config file. I'm trying to add as cflag in build.gradle but it not work.
externalNativeBuild {
cmake {
cppFlags ""
cFlags "-D_FILE_OFFSET_BITS=64"
arguments "-DANDROID_TOOLCHAIN=gcc"
}
}
In the CMakeLists.txt file, I do something like:
However, you can use gradle too, but
externalNativeBuild
needs to be underdefaultConfig
orrelease
ordebug
(a build flavor) for cmake options to pass the flags.For Example: