diff --git a/README.txt b/README.txt index c079df89ef..9e308c73ea 100644 --- a/README.txt +++ b/README.txt @@ -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 diff --git a/meson.build b/meson.build index ba33397744..c6a2f2afba 100644 --- a/meson.build +++ b/meson.build @@ -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') diff --git a/meson_options.txt b/meson_options.txt index d8e58902a5..4f55605cc1 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -5,7 +5,7 @@ option('test', option('example', type: 'boolean', - value: true, + value: false, description: 'enable example') option('text',