(1) . I don't know a simple answer to this question, but there are workarounds:
1a. If the contents of the generated files do not collide (i.e. there are no common static identifiers, etc.), you can add one file to the project, such as AllGeneratedFiles.c, and modify the generator to add the # generated / file. c "to this file when creating the generated /file.c.
1b. Or you can create a separate makefile-based project for the generated files and build them with nmake.
(2) . Use a custom build rule instead of the post-build event. You can add your own build rule by right-clicking on the project name in Solution Explorer and selecting Custom Build Rules.
(3) . There is no standard way to do this; it should be determined on the basis of each project. One approach is to use environment variables to define external dependencies. Then you can use these environment variables in the project properties. Add a readme.txt file that describes the necessary tools and libraries and the corresponding environment variables that the user must set, and this should be easy enough for any user.
atzz
source share