androidNativeBundle icon indicating copy to clipboard operation
androidNativeBundle copied to clipboard

allow specifying destination subdirectory path for header files

Open igagis opened this issue 3 years ago • 1 comments

For example, in my mylib project I have header files in the

root/include

and I want when the ARR package is built the headers would go to

jni/include/my/lib

so in gradle file I could specify it by adding headerOutSubdir = "my/lib" like this:

nativeBundleExport {
        headerDir = "${project.projectDir}/root/include/"
        bundleStatic = true
        includeHeaderFilter.add("**/*.h")
        headerOutSubdir = "my/lib"
    }

Just to add, this is needed when there is no possibility to place the header files into root/include/my/lib in the project tree in the first place, e.g. when packaging a third party library it is undesirable to change its directory layout.

igagis avatar Oct 13 '20 14:10 igagis

Thanks for your advice, i will take consideration it

howardpang avatar Oct 14 '20 01:10 howardpang