How to manage large library dependencies in source management?

My C ++ application depends on Boost. I would like someone to just be able to check my repository and build it all in one step. But the distribution distribution is about 100 MB and thousands of files, and it seems to be struggling with source control - plus I really don't need it to be a version.

What is the best way to deal with this problem?

+4
source share
2 answers

Most version control tools / systems provide mechanics with the ability to add links to other repositories in your repository.

Thus, you can save your repository in its pure form from files of other repositories, but still you can just point to the correct library and version.

In Git, its called submodules. In SVN it is called external.

In the end, you will need to decide whether you want to include the files in your repo so that others cannot check other repositories as well, even if the links (submodule / external) make it quite simple. Id prefers pure repo, although it references other repositories, if available. It will also simplify the maintenance and updating of these libraries.

+1
source

I found John Lakos's book β€œLarge-scale software design in C ++” , very useful for organizing large C ++ projects, Recommended.

0
source

Source: https://habr.com/ru/post/1332572/


All Articles