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

Publish C++ application distribution variant #938

Open big-guy opened 5 years ago

big-guy commented 5 years ago

We currently publish the executable and build a local install directory. If someone wants to distribute the application, they need to build their own publication. It would be useful to produce a "fatjar"-like variant of the application that can be directly reused elsewhere that includes the application, start script and all runtime dependencies.

This is related to #488.

lacasseio commented 5 years ago

Part of this issue should go and fix CppApplicationPublishingIntegrationTest to remove rpath configuration and resolve the installation package instead. Fixing the test otherwise makes the test way more complicated than what it should be.

big-guy commented 5 years ago

I removed the need for rpath hackery, but we could make CppApplicationPublishingIntegrationTest better by removing the use of InstallExecutable and just extracting a distribution.