Building and Cleaning WebAssembly Modules

.

Although WebAssembly modules are automatically built whenever you build or launch their parent TV application project, they can also be built individually if required.
When building WebAssembly modules from the TV application project's level, active build configurations currently set in the modules are used for their build.

Setting active build configuration

Right click the WebAssembly module project and select "Build Configurations" > "Set Active" > "Debug" or "Release".

Figure 1. Set Active Build Configuration

Figure 1. Set Active Build Configuration

Note

TV application project package will contain WebAssembly module built using currently set build configuration (Debug or Relase).
Typically the Debug configuration produces artifacts not optimized for runtime speed/size but rather for debugging as opposed to the Release configuration.

Building with active build configuration

Right click the WebAssembly module project and select "Build Project".

Figure 2. Build WebAssembly Module

Figure 2. Build WebAssembly Module

Note

If nothing happens it may mean that neither the project's content, nor its build configuration was changed since the last successful build and the built artifacts are current.
If you want to force the build anyway, perform a clean - the build will become available again.

The build progress may be observed in the "Console" tab. If the build console is not visible select it by clicking on the button as shown in the below figure and selecting either "CDT Build Console" or "CDT Global Build Console".
If there are errors or warnings during the build, they are visible in the build console and in the "Problems" tab. Double-clicking on compilation error/warning should move you to the source code where the error occurred.

Figure 3. Build Console

Figure 3. Build Console

When the build is finished, its artifacts can be found under the "CurrentBin" folder within the project's tree.

Building for all available build configurations

Right click the WebAssembly module project and select "Build Configurations" > "Build All".
The WebAssembly module is built with each of the available build configurations (two of them: Debug and Release are available by default).
Build artifacts are to be found under folders named after the build configurations' names (Debug and Release by default).
The "CurrentBin" folder contains the build artifacts for the currently active build configuration. The content is the same as in the respective Debug or Release folder.

Cleaning with active build configuration

Right click the WebAssembly module project and select "Clean Project".

Cleaning for all available build configurations

Right click the WebAssembly module project and select "Build Configurations" > "Clean All".