I am working with a team on quite a few visual studio (2008) projects which share a lot of code. Some files are used by all projects, but some are only useful to 1 or 2. I am looking for a way to extract all useful files for one particular project.
The principle we use is to share directories. Each project selects the shared directories it wants to use in the inclusion-directory list (inside the project properties). All such directories are created inside a root directory (directly or not).
project_dir/ shared1_dir/ shared2_dir/ ...
Given a project file, what it the most efficient way to copy all needed files, keeping the shared-directory structure, but in a new root directory ? The objective here is to make a strict archive of a project.
NB : source files in shared directories are usually not cpp files, but rather header files (our projects use a lot of templates).