diff options
author | Ernestas Kulik <ernestask@src.gnome.org> | 2017-03-01 18:08:50 +0200 |
---|---|---|
committer | Ernestas Kulik <ernestask@src.gnome.org> | 2017-03-01 18:15:20 +0200 |
commit | 2c22594624f04d781e192b35412e2d20e9a04aba (patch) | |
tree | e49183d2d6761e18dcd2c85039233c2ec8ead375 | |
parent | d4d2fb655f38578fe3e341175a8177c70dadadce (diff) | |
download | nautilus-2c22594624f04d781e192b35412e2d20e9a04aba.tar.gz |
meson: make doc generation opt-in
Since Continuous does not have GTK-Doc and jhbuild users don’t usually
care about generating documentation, it makes sense to disable it by
default.
https://bugzilla.gnome.org/show_bug.cgi?id=779420
-rw-r--r-- | meson.build | 5 | ||||
-rw-r--r-- | meson_options.txt | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 25910c7d6..d8ae100bd 100644 --- a/meson.build +++ b/meson.build @@ -116,7 +116,10 @@ subdir ('src') subdir ('test') subdir ('data') subdir ('po') -subdir ('docs') + +if get_option ('enable-gtk-doc') + subdir ('docs') +endif if get_option ('enable-desktop') subdir ('nautilus-desktop') diff --git a/meson_options.txt b/meson_options.txt index 902552717..ac4b74a92 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -24,3 +24,6 @@ option ('enable-packagekit', option ('enable-tracker', type: 'boolean', value: true) +option ('enable-gtk-doc', + type: 'boolean', + value: false) |