Add BUILD_EXAMPLE_NAME option explain for README.md 60/288860/2
authorEunki, Hong <eunkiki.hong@samsung.com>
Thu, 23 Feb 2023 14:18:46 +0000 (23:18 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Thu, 23 Feb 2023 14:19:36 +0000 (23:19 +0900)
Change-Id: I9cc144ca6ee0c83056c311a418424b1ddd3da65a
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
README.md

index 74affe9..720d60f 100644 (file)
--- a/README.md
+++ b/README.md
@@ -52,6 +52,13 @@ Before running make install as normal:
 
          $ make install -j8
 
+### Build Only specific sample
+
+You can set the sample's name and can build that sample only. For example, If you want to build 'hello-world',
+
+         $ cmake -DCMAKE_INSTALL_PREFIX=$DESKTOP_PREFIX -DBUILD_EXAMPLE_NAME=hello-world
+         $ make install -j9
+
 ## 2. GBS Builds
 
 ### NON-SMACK Targets
@@ -70,6 +77,10 @@ Before running make install as normal:
 
          $ gbs build -A [TARGET_ARCH] --define "%rpi_style 1"
 
+### Build specific sample only
+
+         $ gbs build -A [TARGET_ARCH] --define "build_example_name hello-world"
+
 # Creating an example
 
  - Make a directory in the "examples" directory. Only one example will be created per directory.
@@ -162,6 +173,7 @@ vcpkg-script folder in the windows-dependencies repository.
     - INTERNATIONALIZATION  ---> Whether to generate and install internazionalization '.po' Portable Object files.
     - CMAKE_INSTALL_PREFIX  ---> Were DALi is installed.
     - ENABLE_DEBUG          ---> Whether to build with debug enabled.
+    - BUILD_EXAMPLE_NAME    ---> The name of sample what you want to build. To reduce the memory of rpm file, we didn't copy resources now.
 
   * If dali-toolkit has been compiled with the USE_DEFAULT_RESOURCE_DIR option disabled then is needed to set global environment variables in order to find the default toolkit resources.