Add installation instructions for MacOS 20/245920/3
authorLucas Cavalcante de Sousa <lucks.sousa@gmail.com>
Tue, 13 Oct 2020 20:43:45 +0000 (17:43 -0300)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Wed, 6 Jan 2021 16:15:19 +0000 (16:15 +0000)
Change-Id: Id26bbd3035ad1c0d39a4194fd25e568469df2d8d

README.md

index 1e2ec74..c27d776 100644 (file)
--- a/README.md
+++ b/README.md
@@ -15,6 +15,7 @@
       * [4. Building for MS Windows](#4-windows-builds)
          * Build with the Visual Studio project.
          * Build with CMake.
+      * [5. Building for MacOS](#5-building-for-macos)
    * [Creating an example](#creating-an-example)
 
 # Build Instructions
@@ -167,3 +168,23 @@ vcpkg-script folder in the windows-dependencies repository.
     $ setx DALI_STYLE_DIR $DALI_ENV_FOLDER/share/dali/toolkit/styles/
     $ setx DALI_STYLE_IMAGE_DIR $DALI_ENV_FOLDER/share/dali/toolkit/styles/images/
     $ setx DALI_DATA_READ_ONLY_DIR $DALI_ENV_FOLDER/share/dali/
+
+## 5. Building for MacOS
+
+Here it is expected that the environment variables are set accordingly to
+`dali-core/README.md`.
+
+To build the repository enter the 'build/tizen' folder:
+```bash
+        $ cd dali-demo/build/tizen
+```
+Then run the following command to set up the build:
+```bash
+        $ cmake -DCMAKE_INSTALL_PREFIX=$DESKTOP_PREFIX -DCMAKE_TOOLCHAIN_FILE=$VCPKG_FOLDER/scripts/buildsystems/vcpkg.cmake -DINTERNATIONALIZATION=OFF -DENABLE_PKG_CONFIGURE=OFF
+```
+If a Debug build is required, then add `-DCMAKE_BUILD_TYPE=Debug`
+
+To build, run:
+```bash
+        $ make install -j8
+```