gradle / gradle-native

The home of Gradle's support for natively compiled languages
https://blog.gradle.org/introducing-the-new-cpp-plugins
Apache License 2.0
92 stars 8 forks source link

Native support for precompiled headers (PCH) using current model #910

Closed fletcher-sumglobal closed 5 years ago

fletcher-sumglobal commented 5 years ago

Need sample and possible code modifications to support precompiled headers using current model. This sample has been done with the deprecated software model, and wanted to give visibility to this issue going forward using the current model. Not sure if this issue is a duplicate of #23 b/c of the brevity of the discussion and the fact that it is over a year old . If so, this one can be closed.

If not, I wanted to start a discussion on a path to get there. I suspect the class PreCompiledHeader may need to the provider api ported in to allow support for wiring in the inputs from the DSL. Namely: pchObjects, prefixHeaderFile, and includeString, similar to how we had to port the provider API to wire compilerArgs in for the WindowsResourceCompile task. Is this a fair assessment on a path to move forward?

fletcher-sumglobal commented 5 years ago

Closing issue.. Duplicate of #23