[dali_2.1.20] 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 commands:
55
56  autoreconf --install
57  ./configure --prefix=$DESKTOP_PREFIX
58  make install -j8
59
60 3. Building for Windows
61 =======================
62
63 Third party dependencies are built using vcpkg. Instructions on how to install vcpkg can be found in the
64 vcpkg-script folder in the windows-dependencies repository.
65
66 - Download the windows-dependencies repository from DaliHub
67
68          $ git clone https://github.com/dalihub/windows-dependencies.git
69
70 - Read the windows-dependencies/vcpkg-script/Readme.md file for more instructions on how to build and install the third-party dependencies.
71
72 3.1 Building with CMake
73 -----------------------
74
75   * Requirements
76     It's required the version 3.12.2 of CMake and Visual Studio Community Edition
77
78   * Define an environment variable to set the path to the VCPKG folder
79
80     $ set VCPKG_FOLDER=C:/Users/username/Workspace/VCPKG_TOOL
81
82   * Define an environment variable to set the path where DALi is going to be installed.
83
84     $ set DALI_ENV_FOLDER=C:/Users/username/Workspace/dali-env
85
86   * Execute the following commands to create the makefiles, build and install DALi.
87
88     $ cmake -g Ninja . -DCMAKE_TOOLCHAIN_FILE=%VCPKG_FOLDER%/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_INSTALL_PREFIX=%DALI_ENV_FOLDER%
89
90     $ cmake --build . --target install