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 * [DEBUG Builds](#debug-builds)
10 * [2. GBS Builds](#2-gbs-builds)
11 * [NON-SMACK Targets](#non-smack-targets)
12 * [SMACK enabled Targets](#smack-enabled-targets)
13 * [DEBUG Builds](#debug-builds-1)
14 * [Creating an example](#creating-an-example)
15 * [Installing Emscripten Examples](#installing-emscripten-examples)
19 ## 1. Building for Ubuntu desktop
21 ### Minimum Requirements
23 - Ubuntu 14.04 or later
24 - Environment created using dali_env script in dali-core repository
26 ### Building the Repository
28 To build the repository enter the 'build/tizen' folder:
30 $ cd dali-demo/build/tizen
32 Then run the following commands:
34 $ cmake -DCMAKE_INSTALL_PREFIX=$DESKTOP_PREFIX .
39 Specify a debug build when building for desktop by passing the following parameter to cmake:
41 $ cmake -DCMAKE_INSTALL_PREFIX=$DESKTOP_PREFIX -DCMAKE_BUILD_TYPE=Debug .
43 Before running make install as normal:
51 $ gbs build -A [TARGET_ARCH]
53 ### SMACK enabled Targets
55 $ gbs build -A [TARGET_ARCH] --define "%enable_dali_smack_rules 1"
59 $ gbs build -A [TARGET_ARCH] --define "%enable_debug 1"
63 - Make a directory in the "examples" directory. Only one example will be created per directory.
64 - The executable installed will have a ".example" appended to it, e.g. a "blocks" directory produces "blocks.example".
65 - Add all source files for the required example in this directory.
66 - Modify "com.samsung.dali-demo.xml" to include your example so that it can be launched on target.
67 - No changes are required to the make system as long as the above is followed, your example will be automatically built & installed.
69 # Installing Emscripten Examples
71 Some Emscripten Javascript examples are included in dali-demo.
73 They do not require building, to install them run the provided install script.
74 Note: Your dali-env must be setup as it will install to your dali-env/opt/share/emscripten directory.
76 $ cd ./emscripten-examples
79 Run the examples by either opening them in a browser, or, running the browser from the command line with an example as a parameter.