As Paul suggested on IRC, we can just wrap ubuntu-platform-api code with #ifdef USE_UBUNTU statements, and use pkg-config to determine if that preprocessor directive should be set or not.
If possible, even better would probably be to have *_ubuntu.cpp files and *_otherbrand.cpp files and do the magic in the .pro file
As Paul suggested on IRC, we can just wrap ubuntu-platform-api code with #ifdef USE_UBUNTU statements, and use pkg-config to determine if that preprocessor directive should be set or not.
If possible, even better would probably be to have *_ubuntu.cpp files and *_otherbrand.cpp files and do the magic in the .pro file