|
Hi,
I'm after a few ideas for the following software that I am developing.
Background: Using Linux OS and Qt for software development. I have 1 application and copied that and developed another as a test and it worked, now I wish to merge them together to have 1 source code but 2 different products when running the applications.
I have 2 separate applications that have a very common code base but have different user interfaces and each has 1 additional/different process that is not required in the other application. I want to combine the 2 applications into 1 source code but still be able to maintain the separate applications, so require something that will allow the application (most likely at run-time?) to decide that it is application A or application B and run as that application. The 2 applications do not run on the same machine and the machine name can be used to identify the application that should be running on that machine. There are many files in the source code that are different (software code directory structure is the same) but often it is only 1 or 2 lines, I don't really want to go through and use something #ifdef #define and put it around all occurrences of differences between the 2 applications.
So I'm after some ideas on how I might approach this problem, either at run-time or at compile-time, all ideas are welcome
Thanks
|