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

Add public header support for .inc files #1071

Open eltonkent opened 4 years ago

eltonkent commented 4 years ago

Public header files do not support .inc files. Therefore, the gradle native plugins 'cpp-library', 'c-library' does not export.inc files when publishing libraries.

Steps to Reproduce (for bugs)

Create a c++ library project with a .inc header file in the public header directory.

Your Environment

Gradle - 6.3 OS - Mac OS X 10.14.6 Compiler - Clang

lacasseio commented 4 years ago

You could manually include the files in the publishing zip for the headers to work around your issue. However, the zip task for the header is somewhat internal so it's not ideal.

eltonkent commented 4 years ago

I ended up writing a task that overwrites the cpp-headers.zip file. Would be nice if the header extension can be configurable.

lacasseio commented 4 years ago

I agree, I will consider it as part of the Nokee plugins.