If is also possible to use the project/workspace feature to run third party tools. The project/workspace can be used to run compile, build, build all, clean and execute commands for both release and debug modes.
To uses these features a workspace is required, so the first step is the creation of a new workspace as follows:
- Workspace New menu
- Define the name and location for the new workspace
- Use the View Navigator menu to make sure the navigator is visible
- Change to the workspace section of the navigator
- Using the right click mouse button, add/delete projects and folders as required
- Next add the source file to the projects or folders
For example if you already build your project using a my_project.mak make file you would setup the Project details to be as follows:
- Make Command Line: make -f my_project.mak
- Rebuild All Command Line: make -f my_project.mak rebuild
- Clean Command Line: make -f my_project.mak clean
Zeus also has a concept of a default workspace. To access the default workspace close the current workspace and use the Workspace Options menu and the default workspace options will be displayed.
With so many settings how do you tell which one is being used?
These workspace configurations allow a great deal of flexibility, but they also add some complexity to the configuration. For example consider the case where a workspace containing two projects is currently open. If a file is loaded and a compile run, Zeus has the choice of 8 (ie 4 project debug and release, 2 default project debug and release, 1 document type, and 1 default document type) compiler options. So which compiler option is it actually going to use?
The answer is quite simple. Zeus will try to search for a suitable command line, using the follow rules:
- Get the current build mode as set by the Workspace Select Active Project menu and use it in the search that follows
- If a workspace is open see if the file is in any of the projects and if so use the settings defined for the project. If nothing was found, repeat the search with the currently active project.
- If no command line was found in step 2, repeat the search using the default workspace
- If no command line was found in step 3, repeat the search using the document type for the file
- If no command line was found in step 4, repeat the search using the default document type
To help with the configuration, the output window for each of these commands will always display a line of debug output indicating where the command line was found.