Hi everyone,
This thread was lost during the server crash so if you’re reading this again, you aren’t experiencing deja vu :P
I’ve been developing an application predominantly on Windows, but now want to start the port to Linux. However, certain GUI elements need tweaking for the new platform.
What I’d like to know is what you reckon the “best practice” approach would be for keeping the core functionality in sync and avoiding duplication, while also managing the code that is unique to each platform?
Before the previous thread disappeared into the ether, someone suggested compilation directives (which I’m not averse to). However, what I’d like to know is what the best way is to do this and with that I mean (1) if there is a way to add the #define to the Qt project file or (2) if one should use some kind of globalinclude.h file where you set your defines?
Alternatively, is there a way to do it with version control techniques? I’m using Mercurial and initially considered branching, but realised that that would not solve the “duplicate shared code” problem as I’ll then still have to update two or more separate branches whenever core functionality changes.
Your input is appreciated.
Thanks!
↧