define LOCAL_C_INCLUDES in gradle ndk{} DSL?

291 Views Asked by At

How can i define LOCAL_C_INCLUDES inside ndk{} block of my module gradle??

This ndk block of my module gradle file:

ndk {
            platformVersion = 21;
            moduleName "main"
            toolchain = "clang"
            stl = 'gnustl_static'         
            cppFlags.addAll(['-std=c++11', '-Wall', '-D__STDC_INT64__'])
            ldLibs.addAll(['android', 'log'])     
}
1

There are 1 best solutions below

0
On BEST ANSWER

you can use CFlags and cppFlags for that:

CFLags.add '-Ipath/to/include'

and so on.