We have multiple cpp projects in which is some projects create shared library and some creates static library.
Currently I mentioned the buildTypes in one gradle file as:
buildTypes {
debug
release
}
And for each project I have specified the default tasks as;
defaultTasks "debug${project.name}StaticLibrary", "release${project.name}StaticLibrary"
// Project which create static libs
defaultTasks "debug${project.name}SharedLibrary", "release${project.name}SharedLibrary" // Project which create shared libs
When I run the gradle command it compiles both Release/Debug version.
However I want to compile the project either in Release mode or Debug mode or both depends on the input parameter. and it should update defaltTasks of all projects depends on BuildType.
like : gradle < parameter for BuildType > Please provide some pointers to solve this problem.