![]() |
OpenMake Meister |
Once setup, generating Targets now requires only 1 step as defined in Table PB-35 below:
Table PB-35 Generating Target Definitions using omNet
Step |
Action |
0 |
Note: You must install the .NET Plug-in to receive these features. Refer to the Setup and Installation section of this guide. |
1 |
From the .NET menu bar, select Tools - omNet: TGT Generation. This will invoke the omNet program to create the Target file (.tgt). |
When executed, omNet first parses the specified Solution file for Project references. Then, it parses each Project file for information about target name, target type and output location. One Target for each parsed project is automatically created locally. The generated Target files (.tgt) can be found on the file system at the same level as the current Solution file.
After the Target files have been created, omNet calls bldmake to generate the Build Control File. bldmake uses the specified -omProject and -omSearchpath parameters when executing.
When using bldmake outside of the .NET plug-in, a build script is generated with reference to all Targets found based on the Project's Dependency Directories. However, since someone working in .NET will not generally want to perform a full system build, omNet defaults to generating a build script limited to the Targets contained in the current Solution file. The generated build script can be found in the defined Build Directory (the “Initial Directory” in the External Tool configuration).
omNet does not need to be executed prior to every build. Because it is generating the Targets and the build script based on the Solution and Project files contained in the current .NET workspace, the omNet only needs to be executed after the following actions occur:
• Renaming the Solution or a Project
• Adjusting the type or name of the target for a Project
• Adjusting the location of output for a Project
The output from the Generation process is all logged to the .NET console.