We want to migrate from GNU Make to gradle build. But we didn’t find Pro
c plugin (like cplugin) for source compilation! Can you please help us to know how we can use gradle to compile Pro C files?
Please let me know if any further details are needed.
You need to extend Gradle and add a new toolchain to support the compilation of Pro C files. It is possible but you need some good knowledge of Gradle. Have a look here:
I’m using a new native plugins (cpp-library, cpp-application) without old software model.
My question is: how can I customize gcc compiler (from compat-gcc-44-c++ package) executable for them???
I don’t see any sample of customizing toolChain object - just selection other options based on the value of toolChain
UPDATE: managed to find this sample, but it does not work as exected:
It seems the cpp-library thinks that the only processor architecture in the world is Intel. How do we extend this to cross-compile for Arm? With the old cpp plugin I had something like this to add a tool-chain for Arm:
compilerProbeArgs '-m32', '-march=i686'
It may help.