buildsystem: add generic export API for release builds
@chergert
Submitted by Christian Hergert Link to original bug (#784146)
Description
Release builds are a special type of build. We want to use Flatpak/Snap for as much of the build process as we can, and remove our incremental build system from the situation.
Additionally, we don't want any lingering bits from previous compilation/install/run cycles to affect the build artefacts.
I propose that we do this using a new IdeBuildPipeline instance where the stages can be carefully added. We might need a property added to IdeBuildPipeline such as "release-type".
Based on this key, plugins can choose to ignore the settings or install alternate stages.