lottie/example: disable default building of example 45/184145/2
authorsubhransu sekhar mohanty <smohantty@subhransus-MacBook-Air.local>
Fri, 13 Jul 2018 14:20:15 +0000 (23:20 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Mon, 16 Jul 2018 03:54:50 +0000 (03:54 +0000)
to enable use meson -Dexample=true build while configuring meson.
or meson configure -Dexample=true in the build directory.

Change-Id: If267e6883fb866a741bf18dbfedd2a7782e21df5

README.txt
meson.build
meson_options.txt

index c079df89efd971c9df772fb751e5c03b3aa0fab5..9e308c73ea1a36f08fa23efea0567eaf3354d23b 100644 (file)
@@ -2,10 +2,13 @@ BUILD INSTRUCTION
 =================
 1. install meson build system. ( follow instruction in this link http://mesonbuild.com/Getting-meson.html )
 2. install ninja build tool    (https://ninja-build.org/)
-3. make a build directory in ssg/ flder
-4. run meson build/
+4. invoke meson build/  or meson -Dexample=true build/
+5. invoke ninja inside the build folder.
 
-RUN INSTRUCTION
+NOTE: run meson configure to see all the build options
+
+BUILD EXAMPLE
 ===============
-1. run ninja inside build/ folder
-2. to run example invoke ./build/example/ssgdemo
+1. meson configure -Dexample=true
+2. ninja
+3. to run example invoke ./build/example/demo
index ba33397744a3ffd7c04b8425f43f54c7216127ef..c6a2f2afbaaf2ad632d7fc3e61a65a609792799c 100644 (file)
@@ -20,7 +20,9 @@ inc = include_directories('inc')
 subdir('inc')
 subdir('src')
 
-subdir('example')
+if get_option('example') == true
+    subdir('example')
+endif
 
 if get_option('test') == true
    subdir('test')
index d8e58902a5ef2858fbeac4d9ee712564f1576ae8..4f55605cc1d0d99ef6c66ad7633692a5b871b935 100644 (file)
@@ -5,7 +5,7 @@ option('test',
 
 option('example',
    type: 'boolean',
-   value: true,
+   value: false,
    description: 'enable example')
 
 option('text',