I’m porting a Makefile project in Gradle. There are several cpp files that need to be passed to an Oracle precompiler, which outputs .o objects files. This .o files are in turn to be passed to the linker along with the other “regular” .o files produced by g++.
How to reproduce this in Gradle?
Please note: I succeded in generating cpp files, and compiling-linking them with other regular cpp files, using a CppSourceSet. Unfortunately, I didn’t find an equivalent “CppObjectSet”. The only idea that came in my mind is to create a static library with all these .o files, and put it inside the project dependencies.
Any better idea?