Commit 1e9295a9beaeb0b1b35b09adbe8d4d8a6a2e3f84

Authored by Lucas Cavalcante de Sousa
Committed by Adeel Kazmi
1 parent 50ea4d7c

Add installation instructions for MacOS

Change-Id: Id26bbd3035ad1c0d39a4194fd25e568469df2d8d
Showing 1 changed file with 21 additions and 0 deletions
README.md
@@ -15,6 +15,7 @@ @@ -15,6 +15,7 @@
15 * [4. Building for MS Windows](#4-windows-builds) 15 * [4. Building for MS Windows](#4-windows-builds)
16 * Build with the Visual Studio project. 16 * Build with the Visual Studio project.
17 * Build with CMake. 17 * Build with CMake.
  18 + * [5. Building for MacOS](#5-building-for-macos)
18 * [Creating an example](#creating-an-example) 19 * [Creating an example](#creating-an-example)
19 20
20 # Build Instructions 21 # Build Instructions
@@ -167,3 +168,23 @@ vcpkg-script folder in the windows-dependencies repository. @@ -167,3 +168,23 @@ vcpkg-script folder in the windows-dependencies repository.
167 $ setx DALI_STYLE_DIR $DALI_ENV_FOLDER/share/dali/toolkit/styles/ 168 $ setx DALI_STYLE_DIR $DALI_ENV_FOLDER/share/dali/toolkit/styles/
168 $ setx DALI_STYLE_IMAGE_DIR $DALI_ENV_FOLDER/share/dali/toolkit/styles/images/ 169 $ setx DALI_STYLE_IMAGE_DIR $DALI_ENV_FOLDER/share/dali/toolkit/styles/images/
169 $ setx DALI_DATA_READ_ONLY_DIR $DALI_ENV_FOLDER/share/dali/ 170 $ setx DALI_DATA_READ_ONLY_DIR $DALI_ENV_FOLDER/share/dali/
  171 +
  172 +## 5. Building for MacOS
  173 +
  174 +Here it is expected that the environment variables are set accordingly to
  175 +`dali-core/README.md`.
  176 +
  177 +To build the repository enter the 'build/tizen' folder:
  178 +```bash
  179 + $ cd dali-demo/build/tizen
  180 +```
  181 +Then run the following command to set up the build:
  182 +```bash
  183 + $ cmake -DCMAKE_INSTALL_PREFIX=$DESKTOP_PREFIX -DCMAKE_TOOLCHAIN_FILE=$VCPKG_FOLDER/scripts/buildsystems/vcpkg.cmake -DINTERNATIONALIZATION=OFF -DENABLE_PKG_CONFIGURE=OFF
  184 +```
  185 +If a Debug build is required, then add `-DCMAKE_BUILD_TYPE=Debug`
  186 +
  187 +To build, run:
  188 +```bash
  189 + $ make install -j8
  190 +```