Native: Windows Resource Compiler question

Hi

The Windows Resource Compiler(rc.exe) translates a resource source (.rc) into a resource object (.res) that can be linked afterall with binaries. Looking at the Gradle 4.1 code, I did not found how/when the linker was marked as depending on the resource compiler so that the latest be invoked before the earliest.

Could someone brings me an explanation and/or some pointers on the code? Thanks