diff options
author | Corentin Noël <corentin.noel@collabora.com> | 2021-12-07 12:29:33 +0100 |
---|---|---|
committer | Corentin Noël <tintou@noel.tf> | 2022-04-09 00:44:22 +0200 |
commit | d8c7ba55555acab2dbdeefda5b0decbb84d1d701 (patch) | |
tree | b09109b843ed7163c36e0d76145eb91bb4706508 /docs | |
parent | ab94a01bbbcb90b360e1892e1e0153d1724a8028 (diff) | |
download | gcr-d8c7ba55555acab2dbdeefda5b0decbb84d1d701.tar.gz |
Create gcr-gtk4 library
Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/gcr-gtk4/gcr-gtk4.toml.in | 44 | ||||
-rw-r--r-- | docs/gcr-gtk4/meson.build | 31 | ||||
-rw-r--r-- | docs/meson.build | 12 |
3 files changed, 85 insertions, 2 deletions
diff --git a/docs/gcr-gtk4/gcr-gtk4.toml.in b/docs/gcr-gtk4/gcr-gtk4.toml.in new file mode 100644 index 0000000..a42e5fb --- /dev/null +++ b/docs/gcr-gtk4/gcr-gtk4.toml.in @@ -0,0 +1,44 @@ +[library] +namespace = "GcrGtk" +version = "@GCR_VERSION@" +browse_url = "https://gitlab.gnome.org/GNOME/gcr/" +repository_url = "https://gitlab.gnome.org/GNOME/gcr.git" +authors = "GCR contributors" +license = "LGPL-2.0-or-later" +description = "Library providing GTK widgets for high level crypto" +dependencies = [ "GObject-2.0", "Gio-2.0", "Gtk-4.0", "Gck-@GCK_VERSION@", "Gcr-@GCR_VERSION@" ] +devhelp = true +search_index = true + + [dependencies."GObject-2.0"] + name = "GObject" + description = "The base type system library" + docs_url = "https://developer.gnome.org/gobject/stable" + + [dependencies."Gio-2.0"] + name = "Gio" + description = "GObject interfaces and objects" + docs_url = "https://developer.gnome.org/gio/stable" + + [dependencies."Gtk-4.0"] + name = "Gtk" + description = "The GTK UI toolkit" + docs_url = "https://docs.gtk.org/gtk4/" + + [dependencies."Gck-@GCK_VERSION@"] + name = "Gck" + description = "GObject bindings for PKCS#11" + docs_url = "https://gnome.pages.gitlab.gnome.org/gcr/gck-@GCK_VERSION@" + + [dependencies."Gcr-@GCR_VERSION@"] + name = "Gcr" + description = "GObject library for high level crypto parsing" + docs_url = "https://gnome.pages.gitlab.gnome.org/gcr/gcr-@GCR_VERSION@" + +[theme] +name = "basic" +show_index_summary = true +show_class_hierarchy = true + +[source-location] +base_url = "https://gitlab.gnome.org/GNOME/gcr/-/blob/master/" diff --git a/docs/gcr-gtk4/meson.build b/docs/gcr-gtk4/meson.build new file mode 100644 index 0000000..d3f34eb --- /dev/null +++ b/docs/gcr-gtk4/meson.build @@ -0,0 +1,31 @@ +gcr_gtk4_toml = configure_file( + input: 'gcr-gtk4.toml.in', + output: '@BASENAME@', + configuration: { + 'GCR_VERSION': gcr_api_version, + 'GCK_VERSION': gck_api_version, + }, +) + +gcr_gtk4_docs = custom_target('gcr-gtk4-docs', + input: gcr_gtk4_gir[0], + output: gcr_gtk4_basename, + command: [ + gi_docgen, + 'generate', + '--quiet', + '--fatal-warnings', + '--add-include-path=@0@'.format(build_root / 'gck'), + '--add-include-path=@0@'.format(build_root / 'gcr'), + '--config', gcr_gtk4_toml, + '--output-dir=@OUTPUT@', + '--no-namespace-dir', + '--content-dir=@0@'.format(meson.current_source_dir()), + '@INPUT@', + ], + depend_files: [ gcr_gtk4_toml ], + depends: [ gck_gir[0], gcr_gir[0] ], + build_by_default: true, + install: true, + install_dir: get_option('datadir') / 'doc', +) diff --git a/docs/meson.build b/docs/meson.build index aa1b11b..3ae63b0 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -2,11 +2,19 @@ gi_docgen = find_program('gi-docgen') subdir('gck') subdir('gcr') -subdir('gcr-gtk3') +gtk_docs_targets = [] +if get_option('gtk3') + subdir('gcr-gtk3') + gtk_docs_targets += gcr_gtk3_docs +endif +if get_option('gtk4') + subdir('gcr-gtk4') + gtk_docs_targets += gcr_gtk4_docs +endif # Create a pseudo target that build all docs at once alias_target('docs', gck_docs, gcr_docs, - gcr_gtk3_docs, + gtk_docs_targets, ) |