Building WebAssembly Applications
This section describes how to build a Web application that has at least one WebAssembly module added.
Related Info
Building the Hello WebAssembly Application
To build the Hello WebAssembly application:
- In the "Project Explorer" view, right-click the Hello WebAssembly TV application project that you created in Creating WebAssembly Applications
- Select "Build Project". The application project is built.
Building WebAssembly Applications in General
To build a Web application project that includes one or more WebAssembly modules:
-
Define the build configuration separately for each WebAssembly module in the application.
If you have multiple modules, they do not need to use the same Samsung Emscripten SDK or build configuration.
For more information, see Building and Cleaning WebAssembly Modules. -
In the "Project Explorer" view, right-click the TV application project and select "Build Project". The TV application project is built.
Build artifacts for each WebAssembly module can be found in the CurrentBin directory within the module's project.
When building the project, the C/C++ code indexer can report code errors even though your WebAssembly module code compiles successfully. To fix this issue:
- In the "Project Explorer" view, right-click the WebAssembly project and select "Index > Rebuild".
- Check that Samsung Emscripten SDKdirectories are included in the WebAssembly module project.
In the "Project Explorer" view, within the WebAssembly module project, expand the "Includes" folder. Make sure that the directories are present.