Given a build.gradle containing:
model {
buildTypes {
debug
release
}
flavors {
unitTesting
export
}
platforms {
"osx-x86_64" {
operatingSystem "osx"
architecture "x86_64"
}
"windows-x86_64" {
operatingSystem "windows"
architecture "x86_64"
}
}
}
libraries {
libaryIamWantingToBuild {}
}
How do I define which libraries I want to build, based on a combination of platform, build type and flavour?
For example, how do I define to Gradle that I want to build the following combination of libraries only?:
osx-x86_64, debug, export osx-x86_64, debug, unitTesting osx-x86_64, release, export
windows-x86_64, debug, export windows-x86_64, release, export The reason being is that I wish to create debug & release libraries for other projects to link to, but the unit testing library is only used within the context of this project in order to produce gcov statistics.