I’m trying to disable the production of shared libraries for a NativeLibrarySpec, but can’t seem to find official documentation on the interface for doing so.
This apparently does not work:
components {
goodbye(NativeLibrarySpec) {
sources {
binaries.withType(SharedLibraryBinarySpec) { bin -> binaries.remove(bin) }
cpp.lib library: 'hello', linkage: 'api'
}
}
}
Also, I’d like to know whether it’s possible to control on a run-to-run basis what variants are produced? Say on a given run I’d only like to produce the 64-bit release static libraries, and on the next run, only produce the 32-bit debug shared libraries, and so on. Is this possible?