How to Integrate a Game with Different Platforms (Steam, XBOX, GOG, etc.)

Hi all,

I’m considering how to best integrate my game with platforms like Steam, XBOX, GOG, etc., to enable achievements and other platform-specific features. Currently, I can’t figure out the best approach to do this. How does it usually work?

For example, with achievements: I want to introduce the same set of achievements across all supported platforms. Each platform integration has its own plugin or piece of code. Should I create separate packed builds for each platform, or is there a way to combine them together and prepare a single build that can differentiate the platform being used and execute only the related code?

Thanks.