Skip to content Skip to sidebar Skip to footer

Gradle-experimental Includes

What is the build.gradle equivalent of: LOCAL_C_INCLUDES := \ $(LOCAL_PATH)/include/ \ $(LOCAL_PATH)/lib/ \ $(LOCAL_PATH)/libcharset \ $(LOCAL_PATH)/libcharset/incl

Solution 1:

srcDirs is used to specify sources only. The DSL doesn't support yet a way to specify includes directly, but you can use cppFlags for this:

android.ndk {
    //...
    cppFlags  += "-I${file("src/main/jni/libiconv/include")}".toString()
    //...
}

Post a Comment for "Gradle-experimental Includes"