Add a new project: Difference between revisions
No edit summary |
|||
| Line 17: | Line 17: | ||
You should also include some simple tests. See [[Software tests|Create and automate software tests]] for details. | You should also include some simple tests. See [[Software tests|Create and automate software tests]] for details. | ||
== Check In the Project == | == Check In the Project == | ||
Once you are ready you can check in your project. You will probably have files in your directory that do not belong in CVS. Only the source code, make files, and files essential for building an running the project should be checked in. | Once you are ready you can check in your project. You will probably have files in your directory that do not belong in CVS. Only the source code, make files, and files essential for building an running the project should be checked in. | ||
Revision as of 15:45, 21 April 2010
Write and Build Project Code
Projects can be added to CVS under either the common/ directory (shared code) or the project/ directory (project specific code). Your code should be in a subdirectory of these in your sandbox. The following command examples are for Linux.
> mkdir -p /map/gfx0/users/$USER/project/<my_project>
Each directory in your project will need it's own Makefile. If your project has several directories it is a convention to create a top level Makefile to build all of them. The G Build system is invoked from your make files to provide a common simple build mechanism. Sample make files and instructions on how to use the G Build system are here:
http://sourceforge.net/apps/mediawiki/vrg3d/index.php?title=Writing_Make_Files
If you want to inspect the build files they are in:
common/build/make
You should also include some simple tests. See Create and automate software tests for details.
Check In the Project
Once you are ready you can check in your project. You will probably have files in your directory that do not belong in CVS. Only the source code, make files, and files essential for building an running the project should be checked in.