This topic describes how to build a Native Client project in the Tizen Studio.
A Native Client (NaCl) project can be built using the "Debug-glibc", "Debug-pnacl", "Release-glibc" or "Release-pnacl" configurations. Depending on the selected build configuration, binaries are created for either one or several architectures, with or without debug symbols.
Table 1. Build configurations
To build a NaCl project:
Define the NaCl toolchain to use for building the project.
Select a build configuration. In the "Project Explorer" view, right-click the project, select "Build Configurations > Set Active", and select the configuration you want. The "Debug-pnacl" configuration is active by default.
In the "Project Explorer" view, right-click the project and select "Build project".
In the "Console" view, you can monitor the build progress and status.
The build result is located in the "CurrentBin" directory inside the main project directory.
Depending on the build configuration, the build process can result in the following files:
Portable NaCl executable file (".pexe") If you selected the "Debug-pnacl" or "Release-pnacl" configurations, the ".pexe" file contains the PNaCl (Portable NaCl) executable code built from the C or C++ source code, independent of the target architecture.
NaCl executable files (".nexe") The ".nexe" files contain the native NaCl executable code for the target architecture or architectures. If you selected the "Debug-pnacl" or "Release-pnacl" configurations, the binaries are translated from the ".pexe" file, otherwise they are direct results of the linking process.
Required libraries (.so files) If you selected the "Debug-glibc" or "Release-glibc" configurations, the required library files are produced.
NaCl manifest file (".nmf") The manifest file contains paths to the ".nexe" files for the supported architectures. The Web browser uses the manifest file to find the appropriate ".nexe" file. In Tizen applications, the manifest file also contains a list of application permissions needed to load the NaCl module.
To customize a build configuration:
In the "Project Explorer" view, right-click the project and select "Properties > C/C++ Build > Settings".
From the "Configuration" drop-down menu, select the configuration that you want to modify.
Modify the desired settings. For each tool, you can change the command name and its options.
You can configure the following tools:
To save the settings, click "OK".