[dali_2.2.48] Merge branch 'devel/master'
[platform/core/uifw/dali-csharp-binder.git] / README.md
1 T.O.C.
2 ======
3
4  1.   GBS Builds
5  1.1. NON-SMACK Targets
6  1.2. SMACK enabled Targets
7  2.   Building for Ubuntu desktop
8  2.1. Minimum Requirements
9  2.2. Building the Repository
10
11
12
13 1. GBS Builds
14 =============
15
16 1.1. NON-SMACK Targets
17 ----------------------
18
19  gbs build -A [TARGET_ARCH]
20
21 1.2. SMACK enabled Targets
22 --------------------------
23
24  gbs build -A [TARGET_ARCH] --define "%enable_dali_smack_rules 1"
25
26 1.3. MOBILE Profile
27 -------------------
28
29  gbs build -A [TARGET_ARCH] --spec dali-toolkit-mobile.spec
30
31 2. Building for Ubuntu desktop
32 ==============================
33
34 2.1. Requirements
35 ------------------------
36
37  - Ubuntu 14.04 or later
38  - Environment created using dali_env script in dali-core repository
39  - GCC version 6
40
41 DALi requires a compiler supporting C++11 features.
42 Ubuntu 16.04 is the first version to offer this by default (GCC v5.4.0).
43
44 GCC version 6 is recommended since it has fixes for issues in version 5
45 e.g. it avoids spurious 'defined but not used' warnings in header files.
46
47 2.2. Building the Repository
48 ----------------------------
49
50 To build the repository enter the 'build/tizen' folder:
51
52          $ cd dali-csharp-binder/build/tizen
53
54 Then run the following command to set up the build:
55
56          $ cmake -DCMAKE_INSTALL_PREFIX=$DESKTOP_PREFIX .
57
58 If a Debug build is required, then add -DCMAKE_BUILD_TYPE=Debug
59
60 To build run:
61
62          $ make install -j8
63
64 3. Building for Windows
65 =======================
66
67 Third party dependencies are built using vcpkg. Instructions on how to install vcpkg can be found in the
68 vcpkg-script folder in the windows-dependencies repository.
69
70 - Download the windows-dependencies repository from DaliHub
71
72          $ git clone https://github.com/dalihub/windows-dependencies.git
73
74 - Read the windows-dependencies/vcpkg-script/Readme.md file for more instructions on how to build and install the third-party dependencies.
75
76 3.1 Building with CMake
77 -----------------------
78
79   * Requirements
80     It's required the version 3.12.2 of CMake and Visual Studio Community Edition
81
82   * Define an environment variable to set the path to the VCPKG folder
83
84     $ set VCPKG_FOLDER=C:/Users/username/Workspace/VCPKG_TOOL
85
86   * Define an environment variable to set the path where DALi is going to be installed.
87
88     $ set DALI_ENV_FOLDER=C:/Users/username/Workspace/dali-env
89
90   * Execute the following commands to create the makefiles, build and install DALi.
91
92     $ cmake -g Ninja . -DCMAKE_TOOLCHAIN_FILE=%VCPKG_FOLDER%/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_INSTALL_PREFIX=%DALI_ENV_FOLDER%
93
94     $ cmake --build . --target install