Is it possible to have more than one Prebuilt library under the same Prebuilt library block

Hi,

Is it possible to have multiple libraries in the same prebuilt library block

model {
    repositories {
        libs(PrebuiltLibraries) {
            someLib {
                headers.srcDir "<path>"
                binaries.withType(StaticLibraryBinary) {
                    def libName = targetPlatform.operatingSystem.windows ? 'util.lib' : 'libutil.a'
// would this be possible to have multiple files here?
                    staticLibraryFile = file("<path>/${libName}")
//something like staticLibraryFiles = files("...")
                }
              }
}

What I mean is can I specify directories that contain more then one prebuilt library. I have manged to specify by using the linker args but I am not sure if that is possible in a better way.

Thanks, Ante Ilic

Hi Ante,

No, the PrebuiltLibrary is intended to mirror the NativeLibraryBinary’s that Gradle would create, so there’s currently a 1-to-1 mapping between a PrebuiltLibrary and the static and/or shared lib.

-Sterling