If libraries are under your source control, life should be simple. What I usually do is the same as for different versions of third-party libraries: have different folders for different versions.
The folder structure of the third-party library is as follows:
- General - Delphi - Components - LibX - LibX 9.2.1.3890 - LibX 10.1.0.7151 - LibY - LibY 3.6 - LibY 5.1 - Plugins
Each project determines its dependence on the specific versions of each library. Returning to the old version of the project, in this way, dependence on older versions of the library (s) also returns.
Now with third-party libraries you usually do not have as many different versions as you can do with your own libraries, but the same principles apply. And to help in the "current development" - where you do not yet have a specific version number, you can simply have a "head" version. Then, when you “release” the version of your library, simply add this folder with the version and configure the project definitions, which until the “head” is known due to parallel development, depend on the new version number ...
Marjan Venema Jul 03 '10 at 12:11 2010-07-03 12:11
source share