[dia: 1/2] Add new meson option for doc folder



commit 2afd85d401ae79d7504329b8888059aebee13e65
Author: Sabri Ünal <libreajans gmail com>
Date:   Tue Dec 17 23:27:12 2019 +0000

    Add new meson option for doc folder
    
    This patch makes classic documents optional.

 meson.build       | 4 +++-
 meson_options.txt | 5 ++++-
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index 3e745141..aca49abb 100644
--- a/meson.build
+++ b/meson.build
@@ -114,13 +114,15 @@ subdir('lib')
 subdir('objects')
 subdir('app')
 subdir('data')
-subdir('doc')
 subdir('plug-ins')
 subdir('sheets')
 subdir('shapes')
 if get_option('tests')
     subdir('tests')
 endif
+if get_option('doc')
+    subdir('doc')
+endif
 subdir('docs')
 
 # TODO: idealy this should use run_env from tests/
diff --git a/meson_options.txt b/meson_options.txt
index 88cb9f82..f5667b2c 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,6 +1,9 @@
 option('gtk_doc',
        type: 'boolean', value: false,
        description: 'Whether to generate the API reference')
+option('doc',
+       type: 'boolean', value: true,
+       description: 'Whether to generate the doc')
 option('tests',
        type: 'boolean', value: false,
-       description: 'Whether to compile unit tests')
\ No newline at end of file
+       description: 'Whether to compile unit tests')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]