DALi Version 1.4.48
[platform/core/uifw/dali-toolkit.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          * [Building and executing test cases](#building-and-executing-test-cases)
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)
14
15 # Build Instructions
16
17 ## 1. Building for Ubuntu desktop
18
19 ### Requirements
20
21  - Ubuntu 14.04 or later
22  - Environment created using dali_env script in dali-core repository
23  - GCC version 6
24
25 DALi requires a compiler supporting C++11 features.
26 Ubuntu 16.04 is the first version to offer this by default (GCC v5.4.0).
27
28 GCC version 6 is recommended since it has fixes for issues in version 5
29 e.g. it avoids spurious 'defined but not used' warnings in header files.
30
31 ### Building the Repository
32
33 To build the repository enter the 'build/tizen' folder:
34
35          $ cd dali-toolkit/build/tizen
36
37 Then run the following command to set up the build:
38
39          $ cmake -DCMAKE_INSTALL_PREFIX=$DESKTOP_PREFIX .
40
41 If a Debug build is required, then add -DCMAKE_BUILD_TYPE=Debug
42
43 To build run:
44
45          $ make install -j8
46
47 ### Building and executing test cases
48
49 See the README.md in dali-toolkit/automated-tests.
50
51 ## 2. GBS Builds
52
53 ### NON-SMACK Targets
54
55          $ gbs build -A [TARGET_ARCH]
56
57 ### SMACK enabled Targets
58
59          $ gbs build -A [TARGET_ARCH] --define "%enable_dali_smack_rules 1"
60
61 ### DEBUG Builds
62
63          $ gbs build -A [TARGET_ARCH] --define "%enable_debug 1"