| 93 | == Generating a product == |
| 94 | There are two product files in org.grits.toolbox plugin; GRITS.all.dev.product and GRITS.all.product. The first one is used during development and the latter one should be used when exporting your product to generate an executable for the application. |
| 95 | You can customize these product files for your own purposes by adding a new plugin or removing the plugins that your application does not need. For example, if you are generating an executable for QrtPCR, you may want to remove MS specific plugins. |
| 96 | When you add a new plugin, you have to make sure to add the dependent plugins by clicking "Add required plugins". Please note that each time you click on this button, it will add "org.grits.toolbox.fragment.developers" plugin as one of the required plugins. However leaving this plugin in the product file |
| 97 | prevents logs to be written to the log file, therefore you should manually remove this plugin if it ever becomes part of "GRITS.all.product". This plugin should be included in "dev" version since it allows us to see the log messages in the console. |
| 98 | |
| 99 | === exporting === |
| 100 | In the Overview tab of the product file, there is a section titled "Exporting". Click on "Eclipse Product export wizard" link to initiate the exporting process. |
| 101 | |
| 102 | [[Image(ExportProduct.png)]] |
| 103 | |
| 104 | Do not change the product configuration section. You should provide a directory for the generated product. You should give a new (empty) folder name for each product generation. If the folder does not exist, it will be created as long as the parent folder exists. |
| 105 | If you enable multi-platform build (see next section), you can select "export for multiple platforms" in "Export Options" section and click next to select the platforms. Otherwise, click "Finish" to generate the executable. |
| 106 | |
| 107 | After wizard completes execution, go to the directory you've provided. You should see a sub-folder for each platform if you have selected multiple platforms. |
| 108 | For Mac, you should see a folder structure similar to the following: |
| 109 | |
| 110 | [[Image(ExportFoldersMac.png)]] |
| 111 | |
| 112 | Double clicking on GRITS under "eclipse/MacOS" folder will start the application. |
| 113 | |
| 114 | For Windows, it should look like this: |
| 115 | |
| 116 | [[Image(ExportFoldersWindows.png)]] |
| 117 | |
| 118 | Double clicking on GRITS.exe inside "eclipse" folder will start the application. |
| 119 | |