Support the midl.exe compiler
Native development on Windows sometimes requires processing IDL files. Visual Studio C++ includes de midl.exe compiler for this purpose. This tool is a "source generation" tool.
It takes *.idl as input and generates headers and source files as output.
I have investigated the option of writing custom tasks for this purpose but the midl.exe requires other parts of the toolset to be present in the PATH -- similarly to the resource compiler tool.
I am interested in contributing work for this project.
You could copy/paste the Windows Ressource Compiler plugin from Gradle and start to adapt it for midl.exe
Thanks @pedrolamarao for this issue. This work is bigger than simply adding midl compiler. We realized some time ago the toolchain infrastructure isn't as expendable as it should be. The next work should be looking at making it more flexible so users can add whatever tools they need from toolchain installation. @zosrothko suggestion is a good workaround at this moment.
I will attempt to follow @zosrothko suggestion.
I'd like to add a comment based on our experience migrating from msbuild to gradle. We did hack something together to compile IDL files. Our hack generates an @OutputDirectory with sources, headers and TLB files. This is supposed to go in the include path of dependent projects. Currently, the native plugins accept a single publicHeader path. We are yet unsure what is the best approach: to generate files inside the original include-source tree, or, to copy the original include-source tree to the generated files directory. If multiple publicHeaders are still on topic, this seems a vote for it.