6 1.2. SMACK enabled Targets
7 2. Building for Ubuntu desktop
8 2.1. Minimum Requirements
9 2.2. Building the Repository
16 1.1. NON-SMACK Targets
17 ----------------------
19 gbs build -A [TARGET_ARCH]
21 1.2. SMACK enabled Targets
22 --------------------------
24 gbs build -A [TARGET_ARCH] --define "%enable_dali_smack_rules 1"
29 gbs build -A [TARGET_ARCH] --spec dali-toolkit-mobile.spec
31 2. Building for Ubuntu desktop
32 ==============================
35 ------------------------
37 - Ubuntu 14.04 or later
38 - Environment created using dali_env script in dali-core repository
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).
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.
47 2.2. Building the Repository
48 ----------------------------
50 To build the repository enter the 'build/tizen' folder:
52 $ cd dali-csharp-binder/build/tizen
54 Then run the following command to set up the build:
56 $ cmake -DCMAKE_INSTALL_PREFIX=$DESKTOP_PREFIX .
58 If a Debug build is required, then add -DCMAKE_BUILD_TYPE=Debug
64 3. Building for Windows
65 =======================
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.
70 - Download the windows-dependencies repository from DaliHub
72 $ git clone https://github.com/dalihub/windows-dependencies.git
74 - Read the windows-dependencies/vcpkg-script/Readme.md file for more instructions on how to build and install the third-party dependencies.
76 3.1 Building with CMake
77 -----------------------
80 It's required the version 3.12.2 of CMake and Visual Studio Community Edition
82 * Define an environment variable to set the path to the VCPKG folder
84 $ set VCPKG_FOLDER=C:/Users/username/Workspace/VCPKG_TOOL
86 * Define an environment variable to set the path where DALi is going to be installed.
88 $ set DALI_ENV_FOLDER=C:/Users/username/Workspace/dali-env
90 * Execute the following commands to create the makefiles, build and install DALi.
92 $ cmake -g Ninja . -DCMAKE_TOOLCHAIN_FILE=%VCPKG_FOLDER%/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_INSTALL_PREFIX=%DALI_ENV_FOLDER%
94 $ cmake --build . --target install