top

Creating NaCl Projects

This topic describes how to configure the Tizen Studio for working with the NaCl (Native Client) SDK, and how to create a Native Client project.

To create Native Client (NaCl) applications for Samsung TVs, you must use the Tizen Studio with the Samsung NaCl SDK. The Samsung NaCl SDK provides additional TV-specific interfaces beyond those supported by the Google Chrome™ NaCl SDK.

Prerequisites

To develop NaCl applications for Samsung TVs:

  1. Install Python 2.7 or higher on your computer.
    Make sure that the "python" executable is accessible from your PATH environment variable.
    Note

    Python 3 and higher is not supported.

  2. Install the Samsung TV SDK, which includes the Tizen Studio and the extensions needed to develop TV applications.
  3. Download the Samsung NaCl SDK to your computer and extract the "nacl_sdk" folder to a location of your choice.
  4. Define the NaCl SDK location in the Tizen Studio preferences:
    1. In the Tizen Studio, select "Window > Preferences > Tizen Studio > NaCl".
    2. Enter the full path to your "nacl_sdk" folder in the "NaCl SDK root" field, or click "Browse" to open the file browser.
      Note

      Do not select the "pepper_xx" folder within the "nacl_sdk" folder.

      If you have worked with the NaCl SDK before, the Tizen Studio automatically detects the path specified by your NACL_SDK_ROOT environment variable.

      Figure 1. Define NaCl SDK location

      Figure 1. Define NaCl SDK location

    3. Click "OK".

Creating NaCl Projects

To create a NaCl project:

  1. In the Tizen Studio, select "File > New > Other".

  2. Select "Tizen > Samsung TV > Tizen NaCl App (C/C++)", and click "Next".

    Figure 2. Select project type

    Figure 2. Select project type

  3. Define the project name, project folder, and programming language. Select the Pepper toolchain you want to use, and click "Next".

    Figure 3. Define project properties

    Figure 3. Define project properties

  4. Select whether to create an example project or an empty project, and click "Next".

    • The example projects introduce how to implement various basic NaCl features. For more information, see Sample-based Tutorials.
    • The empty project is a basic NaCl module that does not provide any functionality. It contains only code stubs for the important functions that must be implemented.
      Figure 4. Select project content

      Figure 4. Select project content

  5. Define the position and size for displaying the NaCl module on the Web page, and click "Finish".

    Figure 5. Configure module visibility

    Figure 5. Configure module visibility

In the Tizen Studio, you can also use a cheat sheet to guide you through creating a NaCl project. To open the cheat sheet, select "Help > Cheat Sheets > NaCl Application > NaCl project guides > Creating a NaCl application" and click "OK".