]> git.alsa-project.org Git - alsa-gobject.git/commitdiff
meson: rename gtk_doc option
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 16 Mar 2022 00:03:48 +0000 (09:03 +0900)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Thu, 17 Mar 2022 07:17:10 +0000 (16:17 +0900)
The new dependency of gi-docgen obsoletes usage of gtk-doc, therefore it
is better to rename option for meson configuration.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
.github/workflows/build.yml
README.rst
doc/meson.build
meson_options.txt

index f955639056c1e56e94059dcdcbb3c9c410d854aa..b7408c98748076a5359efacb5fc2e7d82a8118ac 100644 (file)
@@ -18,7 +18,7 @@ jobs:
         dnf -y install gtk-doc python3-gobject
     - name: Initialization for build.
       run: |
-        meson --prefix=/tmp. -Dgtk_doc=true -Dwarning_level=3 . build
+        meson --prefix=/tmp. -Ddoc=true -Dwarning_level=3 . build
     - name: Display configuration.
       run: |
         cd build
@@ -63,7 +63,7 @@ jobs:
         sudo lxc exec builder -- su ubuntu -c 'cd; tar xf archive.tar.xz'
     - name: Initialization for build
       run: |
-        sudo lxc exec builder -- su ubuntu -c 'cd; cd dist; meson --prefix=/home/ubuntu/install -Dgtk_doc=true -Dwarning_level=3 . build'
+        sudo lxc exec builder -- su ubuntu -c 'cd; cd dist; meson --prefix=/home/ubuntu/install -Ddoc=true -Dwarning_level=3 . build'
     - name: Display configuration.
       run: |
         sudo lxc exec builder -- su ubuntu -c 'cd; cd dist/build; meson configure'
index d93cd5fc4bcae64742aa5e9cb726d0237acb2f23..e3056425bd456304a083b1ffbcfa9be4d45d41c1 100644 (file)
@@ -95,7 +95,7 @@ arguments for them. For example ::
 
 Generate documentation ::
 
-    $ meson --prefix=xxx -D gtk_doc=true . build
+    $ meson --prefix=xxx -D doc=true . build
     $ cd build
     $ meson install
     $ xdg-open xxx/share/gtk-doc/html/alsactl/index.html
index 2e2fe14f42576fa525693eb21ab54b6d1ebe0c85..b7c40823b0a8d5855ad4bc08e2821c71be0ee031 100644 (file)
@@ -1,3 +1,3 @@
-if get_option('gtk_doc')
+if get_option('doc')
   subdir('reference')
 endif
index 9cbd3c2d9697a44b05776289df496d17d829daed..8744030fc3b22f4e95131cbaa49f993b2f5f8d8b 100644 (file)
@@ -1,4 +1,4 @@
-option('gtk_doc',
+option('doc',
   type: 'boolean',
   value: false,
   description: 'generate API reference',