(FrameCallback) Use uint32_t instead of unsigned int
[platform/core/uifw/dali-demo.git] / README.md
1 <img src="https://dalihub.github.io/images/DaliLogo320x200.png">
2
3 # Table of Contents
4
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
16 # Build Instructions
17
18 ## 1. Building for Ubuntu desktop
19
20 ### Minimum Requirements
21
22  - Ubuntu 14.04 or later
23  - Environment created using dali_env script in dali-core repository
24
25 ### Building the Repository
26
27 To build the repository enter the 'build/tizen' folder:
28
29          $ cd dali-demo/build/tizen
30
31 Then run the following commands:
32
33          $ cmake -DCMAKE_INSTALL_PREFIX=$DESKTOP_PREFIX .
34          $ make install -j8
35
36 ### DEBUG Builds
37
38 Specify a debug build when building for desktop by passing the following parameter to cmake:
39
40          $ cmake -DCMAKE_INSTALL_PREFIX=$DESKTOP_PREFIX -DCMAKE_BUILD_TYPE=Debug .
41
42 Before running make install as normal:
43
44          $ make install -j8
45
46 ## 2. GBS Builds
47
48 ### NON-SMACK Targets
49
50          $ gbs build -A [TARGET_ARCH]
51
52 ### SMACK enabled Targets
53
54          $ gbs build -A [TARGET_ARCH] --define "%enable_dali_smack_rules 1"
55
56 ### DEBUG Builds
57
58          $ gbs build -A [TARGET_ARCH] --define "%enable_debug 1"
59
60 # Creating an example
61
62  - Make a directory in the "examples" directory. Only one example will be created per directory.
63  - The executable installed will have a ".example" appended to it, e.g. a "blocks" directory produces "blocks.example".
64  - Add all source files for the required example in this directory.
65  - Modify "com.samsung.dali-demo.xml" to include your example so that it can be launched on target.
66  - No changes are required to the make system as long as the above is followed, your example will be automatically built & installed.