I’m trying to migrate a C++ build to gradle, and I really want to define our multi-project build into the new native binary types, e.g. ‘buildTypes’, ‘variants’, and ‘toolChains’. However, our build currently uses a Makefile generator approach, where different flags and templates are used based on the ‘targetPlatforms’, in order to generate the Makefile and then run certain targets.
Are there any good examples/suggestions to define a new ‘toolChain’ that doesn’t necessarily contain a compiler, linker, etc? I’ve been looking over the Clang and Gcc plugins, in the gradle src, but a makefile approach seems fundamentally different. For example, rather than running the compile and link tasks on build, I would want to run the generateMakefile and runMakefileTarget tasks. Any help/guidance is much appreciated.
FYI, I do intend to fully migrate to gradle’s C++ support, once I’m able to contribute (or someone else does!) the ‘toolChains’ that are required for our application. Until then, I am just trying to define our build using the latest gradle C++ model.