1 <img src="https://dalihub.github.io/images/DaliLogo320x200.png">
5 * [Build Instructions](#build-instructions)
6 * [1. Building for Ubuntu desktop](#1-building-for-ubuntu-desktop)
7 * [Minimum Requirements](#minimum-requirements)
8 * [Building the Repository](#building-the-repository)
9 * [Build target options](#build-target-options)
10 * [Building and executing test cases](#building-and-executing-test-cases)
11 * [2. GBS Builds](#2-gbs-builds)
12 * [DEBUG Builds](#debug-builds)
13 * [3. Building for Emscripten](#3-building-for-emscripten)
14 * [Setup dali-env & build dali-core](#setup-dali-env--build-dali-core)
15 * [Build the minimal dali-adaptor](#build-the-minimal-dali-adaptor)
16 * [Using the Javascript Build](#using-the-javascript-build)
20 ## 1. Building for Ubuntu desktop
22 ### Minimum Requirements
24 - Ubuntu 14.04 or later
25 - Environment created using dali_env script in dali-core repository
27 ### Building the Repository
29 To build the repository enter the 'build/tizen' folder:
31 $ cd dali-adaptor/build/tizen
33 Then run the following commands:
35 $ autoreconf --install
36 $ ./configure --prefix=$DESKTOP_PREFIX
39 ### Build target options
43 When building, the OpenGL ES version of the target should be specified.
45 Valid version options are 20, 30, 31 for OpenGL ES versions 2.0, 3.0 and 3.1 respectively.
48 Add: *--enable-gles=X*
51 Add to the gbs build line: *--define "%target_gles_version X"*
53 ### Building and executing test cases
55 See the README.md in dali-adaptor/automated-tests.
59 $ gbs build -A [TARGET_ARCH]
63 $ gbs build -A [TARGET_ARCH] --define "%enable_debug 1"
65 ## 3. Building for Emscripten
67 Currently the build for emscripten uses a minimal adaptor which does not support dali-toolkit.
69 ### Setup dali-env & build dali-core
71 The build requires the Emscripten SDK, this is installed automatically by running dali_env with the correct parameters.
72 dali_env is part of the dali-core repository.
73 Please see the README within dali-core to setup dali_env and build dali-core.
75 ### Build the minimal dali-adaptor
77 Use the build.sh script build adaptor.
78 This uses emscriptens emcc to compile byte code to javascript (full OpenGL ES support with stb-image loading library and cpp bindings).
79 Note: Please view the build.sh script for debug build options.
81 $ # cd ./build/emscripten
84 ### Using the Javascript Build
86 The build will create 1 main Javascript artifact, and its html counterpart; dali-emscripten.js
88 This is required by any dali JS app, and must be located in the same directory as the app JS in order for the browser to find it.
90 After the build, the necessary artifacts (which include dali-wrapper.js) will be placed in the dali-env directory under opt/share/emscripten:
92 dali-env/opt/share/emscripten
94 If dali-demo is built, any JS examples will also be placed in this directory, so they are ready to run.