Native: how to select a vector from the matrix?




I have a project with 20 subprojects and the build supports 4 dimensions

1.platform  : x86, x64         : shared, static
3.mode     : debug, release
4.flavor     : bundled, unbundled

So there are 16 tasks for building the full product with the whole matrix at 4 dimensions. The overall build is taking too much time because I just want to build a selection vector of the matrix, i.e (x86, shared, debug, bundle)

So, first, is it possible that Gradle supports this kind of selection vector and if yes, how should be organized the build script so that only the selection vector passed as CLI parameter be build?