lottie/example: disable default building of example

to enable use meson -Dexample=true build while configuring meson.
or meson configure -Dexample=true in the build directory.

Change-Id: If267e6883fb866a741bf18dbfedd2a7782e21df5
This commit is contained in:
subhransu sekhar mohanty 2018-07-13 23:20:15 +09:00 committed by Gerrit Code Review
parent ed69eed653
commit d0cea18a71
3 changed files with 12 additions and 7 deletions

View File

@ -2,10 +2,13 @@ BUILD INSTRUCTION
================= =================
1. install meson build system. ( follow instruction in this link http://mesonbuild.com/Getting-meson.html ) 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/) 2. install ninja build tool (https://ninja-build.org/)
3. make a build directory in ssg/ flder 4. invoke meson build/ or meson -Dexample=true build/
4. run meson 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 1. meson configure -Dexample=true
2. to run example invoke ./build/example/ssgdemo 2. ninja
3. to run example invoke ./build/example/demo

View File

@ -20,7 +20,9 @@ inc = include_directories('inc')
subdir('inc') subdir('inc')
subdir('src') subdir('src')
subdir('example') if get_option('example') == true
subdir('example')
endif
if get_option('test') == true if get_option('test') == true
subdir('test') subdir('test')

View File

@ -5,7 +5,7 @@ option('test',
option('example', option('example',
type: 'boolean', type: 'boolean',
value: true, value: false,
description: 'enable example') description: 'enable example')
option('text', option('text',