The gen ruby script can be found in the SafetyNet root project folder. Inorder to use the gen script, you must switch to this folder in your shell.
The gen script will assits you in building a SafetyNet generated test project as well as running a test cases following a build.
The gen script can be used to generate IDE project files for Visual Studio and CodeBlocks. On Windows, if you have Visual Studio installed, it will make a best effort guess to determine the correct version to generate the project solution files.
Note: If you have both Visual Studio and MinGW installed on Windows
| Commands | Description |
|---|---|
| doc | Open SafetyNet document in browser |
| help | Open this help in a browser |
| clean | Delete all generated folders and rebuild |
| build | Do a clean build, don't delete generated IDE projects |
| g:make | On Linux/Unix/Mac use GNU make to build |
| g:nmake | On Windows use Visual Studio NMake to build |
| g:mingw | On Windows use MinGW to build |
| r:test | Run unit test after build |
The "project folder" must be a CMake project, that was generated using the utgen utility. The commands, "build" or "clean" MUST be the first command following the project folder. If you ommit any of these commands, then an incremental build will be perfomed.
| Project Generators | Description |
|---|---|
| g:visualstudio | IDE project to generate, Visual Studio |
| g:codeblocks | IDE project to generate, CodeBlocks |
| g:eclipse | IDE project to generate, Eclipse |
| g:kdevelop | IDE project to generate, KDevelop3 |
When you generate a makefile file, the generated folder will have a prefix of "build_" i.e.
FACT:
The gen script can be use with any CMake project to carry out the function mentioned!