Background
Let me give you some background on the way our project gets compiled before getting into what I want to do and see if it is possible to do it or what is the best approach to take.
We have a repo for a project. This project is a C++ multi-platform: Windows and macOS, thus we need to compile it twice one in each platform.
In the case of Windows we are generating the msi
installer as a separate compilation target once we know the compilation of the binaries has finished successfully.
Currently we have our Qualys setup as 3 different projects: “macOS project”, “Windows Binaries project” and “Windows Installer project”.
What we want to achieve
What we want to achieve is to be able to integrate the SonarQube scans results to the Github PRs using the Sonar Github plugin.
Based on what I’ve researched online. This is not supported for the case where multiple project scans are made for a single repository [1], [2].
What is the best approach to tackle this? We see no way to have eveything in the same project as we need to compile the project multiple times. We cannot compile both platforms in one go. Most of the code is the same but there are implementation files that are platform dependent that can only be included when compiling for a particular platform.
Thanks in advance.
Best regards,
Santiago Alessandri