Skip to content

Commit

Permalink
meson: Rename gtk_doc option to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
A6GibKm authored and TingPing committed Dec 17, 2021
1 parent e51ddbb commit 7a7f44e
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Check out libportal
uses: actions/checkout@v1
- name: Configure libportal
run: meson setup --prefix=/usr _build -Dbackends=gtk3 -Dgtk_doc=false
run: meson setup --prefix=/usr _build -Dbackends=gtk3 -Ddocs=false
- name: Build libportal
run: ninja -C_build

Expand All @@ -42,7 +42,7 @@ jobs:
- name: Check out libportal
uses: actions/checkout@v1
- name: Configure libportal
run: meson setup --prefix=/usr _build -Dbackends=gtk3 -Dgtk_doc=false
run: meson setup --prefix=/usr _build -Dbackends=gtk3 -Ddocs=false
- name: Build libportal
run: ninja -C_build

Expand Down
2 changes: 1 addition & 1 deletion build-aux/org.gnome.PortalTest.Gtk3.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"config-opts": [
"-Dbackends=gtk3",
"-Dportal-tests=true",
"-Dgtk_doc=false"
"-Ddocs=false"
],
"sources": [
{
Expand Down
2 changes: 1 addition & 1 deletion build-aux/org.gnome.PortalTest.Gtk4.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"config-opts": [
"-Dbackends=gtk4",
"-Dportal-tests=true",
"-Dgtk_doc=false"
"-Ddocs=false"
],
"sources": [
{
Expand Down
2 changes: 1 addition & 1 deletion build-aux/org.gnome.PortalTest.Qt5.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"-Dportal-tests=true",
"-Dintrospection=false",
"-Dvapi=false",
"-Dgtk_doc=false"
"-Ddocs=false"
],
"sources": [
{
Expand Down
2 changes: 1 addition & 1 deletion doc/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ libportal_toml = configure_file(
dependency('gi-docgen', version: '>= 2021.1',
fallback: ['gi-docgen', 'dummy_dep'],
native: true,
required: get_option('gtk_doc'))
required: get_option('docs'))

gidocgen = find_program('gi-docgen')

Expand Down
2 changes: 0 additions & 2 deletions libportal/portal-helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@

G_BEGIN_DECLS

#ifndef __GTK_DOC_IGNORE__
#ifndef XDP_PUBLIC
#define XDP_PUBLIC extern
#endif
#endif /* __GTK_DOC_IGNORE__ */

#define XDP_TYPE_PORTAL (xdp_portal_get_type ())

Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ if get_option('portal-tests')
subdir('portal-test')
endif

if get_option('gtk_doc')
if get_option('docs')
subdir('doc')
endif
2 changes: 1 addition & 1 deletion meson_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ option('introspection', type: 'boolean', value: true,
description: 'Generate GObject introspection files')
option('vapi', type: 'boolean', value: true,
description : 'Generate Vala bindings')
option('gtk_doc', type: 'boolean', value: true,
option('docs', type: 'boolean', value: true,
description : 'Build API reference with gtk-doc')

0 comments on commit 7a7f44e

Please sign in to comment.