IBM Streams 4.2

Defining build options

You can change the build options of the internal builder for building an SPL application using the Streams Studio.

About this task

When you create a build configuration, the Edit Build Configuration window is displayed.

To change the build options for building an SPL application, follow this procedure:

Procedure

  1. In the Project Explorer view, select and right-click on the build configuration.
  2. From the menu, select Edit.
  3. Within the Main tab, configure the following fields:
    1. In the Configuration name field, enter a name for the configuration you are about to create.
    2. In the Main composite field, the current SPL main composite name is displayed. You can browse to another SPL main composite when you want to switch.
    3. To add compile-time arguments, select the Add button, and enter the name and value of the argument. To remove the argument, use the Remove button. Use the Move Up and Move Down buttons to rearrange multiple compile-time arguments.
  4. Within the Directories tab, configure the following fields:
    1. In the Output directory field, enter the name of the output directory for your build. Use the drop-down list to select from any existing directories in the output location for the main composite. Leave the output directory to its default value to ensure that each build configuration has a unique output location.
    2. Select Use project default data directory if you want to use the data directory from the project options. Select this option so that all build configurations in the project access the same application data directory. Clear Use project default data directory if you want to specify a data directory specifically for the build configuration and enter the name of the data directory. Use the Browse button to browse to a different data directory.
  5. Within the Executable tab, use the Code optimization list to select whether to generate optimized code.
  6. Within the Debug tab, use the Streams Debugger (SDB) list to select whether to debug the application with the SDB.
  7. Within the Other tab, configure the following fields:
    1. In the C++ compiler options field, enter any C++ compiler options to add to your application.
    2. In the C++ linker options field, enter any C++ linker options to add to your application.
    3. In the Additional SPL compiler options field, enter any additional SPL compiler options to add to your application. There are some restrictions on the values that can be entered in the Additional SPL compiler options field.
      Restriction: The following sc compiler options are not allowed in the Additional SPL compiler options field:
      • -h or --help
      • -C or --clean-and-suppress
      • -J or --suppress-all-but-the-application-model
      • -M or --main-composite
      • -f or --spade-dps-file
      • --output-directory
      • --data-directory
  8. In the Environment section, replace or append workplace environment variable settings.
  9. If you are finished with your configuration, click OK.