From 99b0d11c78c9fde7f5facbdf16ea5c6ab1e48e16 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 10 Feb 2021 16:49:26 -0500 Subject: Generate Pango API docs with gi-docgen Stop using gtk-doc, and switch to gi-docgen. The gi-docgen tool generates API references through the introspection data, which has various benefits: - it does not parse C code - it does not generate and run C code to introspect types at build time - it does not present a different API from the one we're exporting Additionally, gi-docgen: - does not generate DocBook XML in order to generate HTML - does not go through xsltproc - parses proper Markdown Which makes it markedly faster than gtk-doc has ever been. --- docs/meson.build | 219 +++++++++++++++++++++++++++++++----------------- docs/pango.toml | 64 -------------- docs/pango.toml.in | 64 ++++++++++++++ docs/pangocairo.toml | 34 -------- docs/pangocairo.toml.in | 34 ++++++++ docs/pangofc.toml | 33 -------- docs/pangofc.toml.in | 33 ++++++++ docs/pangoft2.toml | 33 -------- docs/pangoft2.toml.in | 33 ++++++++ docs/pangoot.toml | 28 ------- docs/pangoot.toml.in | 28 +++++++ docs/pangoxft.toml | 33 -------- docs/pangoxft.toml.in | 33 ++++++++ docs/rects3.png | Bin 0 -> 17137 bytes meson.build | 4 + 15 files changed, 369 insertions(+), 304 deletions(-) delete mode 100644 docs/pango.toml create mode 100644 docs/pango.toml.in delete mode 100644 docs/pangocairo.toml create mode 100644 docs/pangocairo.toml.in delete mode 100644 docs/pangofc.toml create mode 100644 docs/pangofc.toml.in delete mode 100644 docs/pangoft2.toml create mode 100644 docs/pangoft2.toml.in delete mode 100644 docs/pangoot.toml create mode 100644 docs/pangoot.toml.in delete mode 100644 docs/pangoxft.toml create mode 100644 docs/pangoxft.toml.in create mode 100644 docs/rects3.png diff --git a/docs/meson.build b/docs/meson.build index e847a34f..aa68b59b 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -1,97 +1,158 @@ -subdir('xml') +gidocgen = find_program('gi-docgen', required: get_option('gtk_doc')) -version_xml_conf = configuration_data() -version_xml_conf.set('PANGO_VERSION', meson.project_version()) -configure_file(input: 'version.xml.in', - output: 'version.xml', - configuration: version_xml_conf) - -private_headers = [ - 'pangocairo-private.h', - 'pangocairo-fc-private.h', - 'pangocairo-fc.h', - 'pangocairo-win32.h', - 'pangocairo-atsui.h', - 'pango-coverage-private.h', - 'pango-color-table.h', - 'pango-emoji-private.h', - 'pango-font-private.h', - 'pango-fontmap-private.h', - 'pango-fontset-private.h', - 'pango-impl-utils.h', - 'pango-glyph-item-private.h', - 'pango-layout-private.h', - 'pango-script-table.h', - 'pango-script-private.h', - 'pango-utils-private.h', - 'pangofc-private.h', - 'pangofc-fontmap-private.h', - 'pangoft2-private.h', - 'pangowin32-private.h', - 'pangoatsui-private.h', - 'pangoxft-private.h', - 'pango-ot-private.h', - 'pango-script-lang-table.h', - 'pango-language-sample-table.h', - 'pangocoretext-private.h', -] - -content_files = [ - 'pango_markup.sgml', - 'version.xml', -] - -html_images = [ +pango_content_files = [ + 'pango-name.png', 'layout.png', 'pipeline.png', - 'rotated-text.png', 'rects1.png', 'rects2.png', + 'rects3.png', ] -docdeps = [ libpango_dep ] +doc_conf = configuration_data() +doc_conf.set('PANGO_VERSION', meson.project_version()) + +pango_toml = configure_file(input: 'pango.toml.in', + output: 'pango.toml', + configuration: doc_conf) + +custom_target('pango-doc', + input: pango_gir[0], + output: 'Pango', + command: [ + gidocgen, + 'generate', + '--quiet', + '--add-include-path=@0@'.format(meson.current_build_dir() / '../pango'), + '--config', pango_toml, + '--output-dir=@OUTPUT@', + '--no-namespace-dir', + '--content-dir=@0@'.format(meson.current_source_dir()), + '@INPUT@', + ], + depend_files: [ pango_toml, pango_content_files], + build_by_default: true, +) if build_pangoft2 - docdeps += libpangoft2_dep + pangoft2_toml = configure_file(input: 'pangoft2.toml.in', + output: 'pangoft2.toml', + configuration: doc_conf) + + custom_target('pangoft-doc', + input: pangoft2_gir[0], + output: 'PangoFT2', + command: [ + gidocgen, + 'generate', + '--quiet', + '--add-include-path=@0@'.format(meson.current_build_dir() / '../pango'), + '--config', pangoft2_toml, + '--output-dir=@OUTPUT@', + '--no-namespace-dir', + '--content-dir=@0@'.format(meson.current_source_dir()), + '@INPUT@', + ], + depend_files: [ pangoft2_toml, 'pango-name.png' ], + build_by_default: true, + ) endif if xft_dep.found() and fontconfig_dep.found() - docdeps += libpangoxft_dep + pangoxft_toml = configure_file(input: 'pangoxft.toml.in', + output: 'pangoxft.toml', + configuration: doc_conf) + + custom_target('pangoxft-doc', + input: pangoxft_gir[0], + output: 'PangoXft', + command: [ + gidocgen, + 'generate', + '--quiet', + '--add-include-path=@0@'.format(meson.current_build_dir() / '../pango'), + '--config', pangoxft_toml, + '--output-dir=@OUTPUT@', + '--no-namespace-dir', + '--content-dir=@0@'.format(meson.current_source_dir()), + '@INPUT@', + ], + depend_files: [ pangoxft_toml, 'pango-name.png' ], + build_by_default: true, + ) endif if cairo_dep.found() - docdeps += libpangocairo_dep + pangocairo_content_files = [ + 'pango-name.png', + 'rotated-text.png', + ] + + pangocairo_toml = configure_file(input: 'pangocairo.toml.in', + output: 'pangocairo.toml', + configuration: doc_conf) + + custom_target('pangocairo-doc', + input: pangocairo_gir[0], + output: 'PangoCairo', + command: [ + gidocgen, + 'generate', + '--quiet', + '--add-include-path=@0@'.format(meson.current_build_dir() / '../pango'), + '--config', pangocairo_toml, + '--output-dir=@OUTPUT@', + '--no-namespace-dir', + '--content-dir=@0@'.format(meson.current_source_dir()), + '@INPUT@', + ], + depend_files: [ pangocairo_toml, pangocairo_content_files ], + build_by_default: true, + ) endif -glib_prefix = dependency('glib-2.0').get_pkgconfig_variable('prefix') -glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html') -cairo_prefix = dependency('cairo').get_pkgconfig_variable('prefix') -cairo_docpath = join_paths(cairo_prefix, 'share', 'gtk-doc', 'html') -docpath = join_paths(pango_datadir, 'gtk-doc', 'html') +pangoot_toml = configure_file(input: 'pangoot.toml.in', + output: 'pangoot.toml', + configuration: doc_conf) -gnome.gtkdoc('pango', - main_xml: 'pango-docs.sgml', - src_dir: [ - pango_inc, - ], - dependencies: docdeps, - gobject_typesfile: configure_file(input: 'pango.types.in', - output: 'pango.types', - configuration: pango_conf), - scan_args: [ - '--deprecated-guards=PANGO_DISABLE_DEPRECATED', - '--ignore-decorators=_PANGO_EXTERN', - '--ignore-headers=' + ' '.join(private_headers), - ], - mkdb_args: [ - '--sgml-mode', - '--output-format=xml', - ], - fixxref_args: [ - '--html-dir=@0@'.format(docpath), - '--extra-dir=@0@'.format(join_paths(glib_docpath, 'glib')), - '--extra-dir=@0@'.format(join_paths(glib_docpath, 'gobject')), - '--extra-dir=@0@'.format(join_paths(cairo_docpath, 'cairo')), - ], - html_assets: html_images, - install: true) +custom_target('pangoot-doc', + input: pangoot_gir[0], + output: 'PangoOT', + command: [ + gidocgen, + 'generate', + '--quiet', + '--add-include-path=@0@'.format(meson.current_build_dir() / '../pango'), + '--config', pangoot_toml, + '--output-dir=@OUTPUT@', + '--no-namespace-dir', + '--content-dir=@0@'.format(meson.current_source_dir()), + '@INPUT@', + ], + depend_files: [ pangoot_toml, 'pango-name.png' ], + build_by_default: true, +) + +if fontconfig_dep.found() + pangofc_toml = configure_file(input: 'pangofc.toml.in', + output: 'pangofc.toml', + configuration: doc_conf) + + custom_target('pangofc-doc', + input: pangofc_gir[0], + output: 'PangoFc', + command: [ + gidocgen, + 'generate', + '--quiet', + '--add-include-path=@0@'.format(meson.current_build_dir() / '../pango'), + '--config', pangofc_toml, + '--output-dir=@OUTPUT@', + '--no-namespace-dir', + '--content-dir=@0@'.format(meson.current_source_dir()), + '@INPUT@', + ], + depend_files: [ pangofc_toml, 'pango-name.png' ], + build_by_default: true, + ) +endif diff --git a/docs/pango.toml b/docs/pango.toml deleted file mode 100644 index 23d46b22..00000000 --- a/docs/pango.toml +++ /dev/null @@ -1,64 +0,0 @@ -[library] -namespace = "Pango" -version = "1.0" -browse_url = "https://gitlab.gnome.org/GNOME/pango/" -repository_url = "https://gitlab.gnome.org/GNOME/pango.git" -website_url = "https://www.pango.org" -authors = "Owen Taylor, Behdad Esfahbod" -logo_url = "pango-name.png" -license = "GPL-2.1-or-later" -description = "Internationalized text layout and rendering" -dependencies = [ "GObject-2.0", "HarfBuzz-0.0", "PangoCairo-1.0", - "PangoFc-1.0", "PangoFT2-1.0", "PangoOT-1.0", - "PangoXft-1.0" ] - - [dependencies."GObject-2.0"] - name = "GObject" - description = "The base type system library" - docs_url = "https://developer.gnome.org/gobject/stable" - - [dependencies."HarfBuzz-0.0"] - name = "HarfBuzz" - description = "A text shaping library" - docs_url = "https://harfbuzz.github.io/" - - [dependencies."PangoCairo-1.0"] - name = "PangoCairo" - description = "Cairo support for Pango" - docs_url = "https://developer.gnome.org/pango/stable" # fixme - - [dependencies."PangoFc-1.0"] - name = "PangoFc" - description = "Fontconfig support for Pango" - docs_url = "https://developer.gnome.org/pango/stable" # fixme - - [dependencies."PangoFT2-1.0"] - name = "PangoFT2" - description = "Freetype support for Pango" - docs_url = "https://developer.gnome.org/pango/stable" # fixme - - [dependencies."PangoOT-1.0"] - name = "PangoOT" - description = "OpenType support for Pango" - docs_url = "https://developer.gnome.org/pango/stable" # fixme - - [dependencies."PangoXft-1.0"] - name = "PangoXft" - description = "Xft support for Pango" - docs_url = "https://developer.gnome.org/pango/stable" # fixme - -[theme] -name = "basic" - -[source-location] -base_url = "https://gitlab.gnome.org/GNOME/pango/-/blob/master/" - -[extra] - -content_images = [ - "pango-name.png", - "layout.png", - "pipeline.png", - "rects1.png", - "rects2.png" -] diff --git a/docs/pango.toml.in b/docs/pango.toml.in new file mode 100644 index 00000000..986bfc8b --- /dev/null +++ b/docs/pango.toml.in @@ -0,0 +1,64 @@ +[library] +namespace = "Pango" +version = "@PANGO_VERSION@" +browse_url = "https://gitlab.gnome.org/GNOME/pango/" +repository_url = "https://gitlab.gnome.org/GNOME/pango.git" +website_url = "https://www.pango.org" +authors = "Owen Taylor, Behdad Esfahbod" +logo_url = "pango-name.png" +license = "GPL-2.1-or-later" +description = "Internationalized text layout and rendering" +dependencies = [ "GObject-2.0", "HarfBuzz-0.0", "PangoCairo-1.0", + "PangoFc-1.0", "PangoFT2-1.0", "PangoOT-1.0", + "PangoXft-1.0" ] + + [dependencies."GObject-2.0"] + name = "GObject" + description = "The base type system library" + docs_url = "https://developer.gnome.org/gobject/stable" + + [dependencies."HarfBuzz-0.0"] + name = "HarfBuzz" + description = "A text shaping library" + docs_url = "https://harfbuzz.github.io/" + + [dependencies."PangoCairo-1.0"] + name = "PangoCairo" + description = "Cairo support for Pango" + docs_url = "https://developer.gnome.org/pango/stable" # fixme + + [dependencies."PangoFc-1.0"] + name = "PangoFc" + description = "Fontconfig support for Pango" + docs_url = "https://developer.gnome.org/pango/stable" # fixme + + [dependencies."PangoFT2-1.0"] + name = "PangoFT2" + description = "Freetype support for Pango" + docs_url = "https://developer.gnome.org/pango/stable" # fixme + + [dependencies."PangoOT-1.0"] + name = "PangoOT" + description = "OpenType support for Pango" + docs_url = "https://developer.gnome.org/pango/stable" # fixme + + [dependencies."PangoXft-1.0"] + name = "PangoXft" + description = "Xft support for Pango" + docs_url = "https://developer.gnome.org/pango/stable" # fixme + +[theme] +name = "basic" + +[source-location] +base_url = "https://gitlab.gnome.org/GNOME/pango/-/blob/master/" + +[extra] + +content_images = [ + "pango-name.png", + "layout.png", + "pipeline.png", + "rects1.png", + "rects2.png" +] diff --git a/docs/pangocairo.toml b/docs/pangocairo.toml deleted file mode 100644 index 23c076f8..00000000 --- a/docs/pangocairo.toml +++ /dev/null @@ -1,34 +0,0 @@ -[library] -namespace = "PangoCairo" -version = "1.0" -browse_url = "https://gitlab.gnome.org/GNOME/pango/" -repository_url = "https://gitlab.gnome.org/GNOME/pango.git" -website_url = "https://www.pango.org" -authors = "Owen Taylor, Behdad Esfahbod" -logo_url = "pango-name.png" -license = "GPL-2.1-or-later" -description = "Cairo support for Pango" -dependencies = [ "Pango-1.0", "cairo-1.0" ] - - [dependencies."Pango-1.0"] - name = "Pango" - description = "A library for layout out and rendering of text" - docs_url = "https://developer.gnome.org/pango/stable" - - [dependencies."cairo-1.0"] - name = "Cairo" - description = "A vector graphics library" - docs_url = "https://www.cairographics.org/manual/" - -[theme] -name = "basic" - -[source-location] -base_url = "https://gitlab.gnome.org/GNOME/pango/-/blob/master/" - -[extra] - -content_images = [ - "pango-name.png", - "rotated-text.png" -] diff --git a/docs/pangocairo.toml.in b/docs/pangocairo.toml.in new file mode 100644 index 00000000..2e0124e3 --- /dev/null +++ b/docs/pangocairo.toml.in @@ -0,0 +1,34 @@ +[library] +namespace = "PangoCairo" +version = "@PANGO_VERSION@" +browse_url = "https://gitlab.gnome.org/GNOME/pango/" +repository_url = "https://gitlab.gnome.org/GNOME/pango.git" +website_url = "https://www.pango.org" +authors = "Owen Taylor, Behdad Esfahbod" +logo_url = "pango-name.png" +license = "GPL-2.1-or-later" +description = "Cairo support for Pango" +dependencies = [ "Pango-1.0", "cairo-1.0" ] + + [dependencies."Pango-1.0"] + name = "Pango" + description = "A library for layout out and rendering of text" + docs_url = "https://developer.gnome.org/pango/stable" + + [dependencies."cairo-1.0"] + name = "Cairo" + description = "A vector graphics library" + docs_url = "https://www.cairographics.org/manual/" + +[theme] +name = "basic" + +[source-location] +base_url = "https://gitlab.gnome.org/GNOME/pango/-/blob/master/" + +[extra] + +content_images = [ + "pango-name.png", + "rotated-text.png" +] diff --git a/docs/pangofc.toml b/docs/pangofc.toml deleted file mode 100644 index f41526bd..00000000 --- a/docs/pangofc.toml +++ /dev/null @@ -1,33 +0,0 @@ -[library] -namespace = "PangoFc" -version = "1.0" -browse_url = "https://gitlab.gnome.org/GNOME/pango/" -repository_url = "https://gitlab.gnome.org/GNOME/pango.git" -website_url = "https://www.pango.org" -authors = "Owen Taylor, Behdad Esfahbod" -logo_url = "pango-name.png" -license = "GPL-2.1-or-later" -description = "Fontconfig support for Pango" -dependencies = [ "Pango-1.0", "fontconfig-2.0" ] - - [dependencies."Pango-1.0"] - name = "Pango" - description = "A library for layout out and rendering of text" - docs_url = "https://developer.gnome.org/pango/stable" - - [dependencies."fontconfig-2.0"] - name = "Fontconfig" - description = "A font configuration and enumeration library" - docs_url = "https://www.fontconfig.org" - -[theme] -name = "basic" - -[source-location] -base_url = "https://gitlab.gnome.org/GNOME/pango/-/blob/master/" - -[extra] - -content_images = [ - "pango-name.png" -] diff --git a/docs/pangofc.toml.in b/docs/pangofc.toml.in new file mode 100644 index 00000000..7acd5d72 --- /dev/null +++ b/docs/pangofc.toml.in @@ -0,0 +1,33 @@ +[library] +namespace = "PangoFc" +version = "@PANGO_VERSION@" +browse_url = "https://gitlab.gnome.org/GNOME/pango/" +repository_url = "https://gitlab.gnome.org/GNOME/pango.git" +website_url = "https://www.pango.org" +authors = "Owen Taylor, Behdad Esfahbod" +logo_url = "pango-name.png" +license = "GPL-2.1-or-later" +description = "Fontconfig support for Pango" +dependencies = [ "Pango-1.0", "fontconfig-2.0" ] + + [dependencies."Pango-1.0"] + name = "Pango" + description = "A library for layout out and rendering of text" + docs_url = "https://developer.gnome.org/pango/stable" + + [dependencies."fontconfig-2.0"] + name = "Fontconfig" + description = "A font configuration and enumeration library" + docs_url = "https://www.fontconfig.org" + +[theme] +name = "basic" + +[source-location] +base_url = "https://gitlab.gnome.org/GNOME/pango/-/blob/master/" + +[extra] + +content_images = [ + "pango-name.png" +] diff --git a/docs/pangoft2.toml b/docs/pangoft2.toml deleted file mode 100644 index f3733253..00000000 --- a/docs/pangoft2.toml +++ /dev/null @@ -1,33 +0,0 @@ -[library] -namespace = "PangoFT2" -version = "1.0" -browse_url = "https://gitlab.gnome.org/GNOME/pango/" -repository_url = "https://gitlab.gnome.org/GNOME/pango.git" -website_url = "https://www.pango.org" -authors = "Owen Taylor, Behdad Esfahbod" -logo_url = "pango-name.png" -license = "GPL-2.1-or-later" -description = "Freetype support for Pango" -dependencies = [ "Pango-1.0", "freetype2-2.0" ] - - [dependencies."Pango-1.0"] - name = "Pango" - description = "A library for layout out and rendering of text" - docs_url = "https://developer.gnome.org/pango/stable" - - [dependencies."freetype2-2.0"] - name = "Freetype" - description = "A font loading and rendering library" - docs_url = "https://www.freetype.org" - -[theme] -name = "basic" - -[source-location] -base_url = "https://gitlab.gnome.org/GNOME/pango/-/blob/master/" - -[extra] - -content_images = [ - "pango-name.png" -] diff --git a/docs/pangoft2.toml.in b/docs/pangoft2.toml.in new file mode 100644 index 00000000..43c0ca75 --- /dev/null +++ b/docs/pangoft2.toml.in @@ -0,0 +1,33 @@ +[library] +namespace = "PangoFT2" +version = "@PANGO_VERSION@" +browse_url = "https://gitlab.gnome.org/GNOME/pango/" +repository_url = "https://gitlab.gnome.org/GNOME/pango.git" +website_url = "https://www.pango.org" +authors = "Owen Taylor, Behdad Esfahbod" +logo_url = "pango-name.png" +license = "GPL-2.1-or-later" +description = "Freetype support for Pango" +dependencies = [ "Pango-1.0", "freetype2-2.0" ] + + [dependencies."Pango-1.0"] + name = "Pango" + description = "A library for layout out and rendering of text" + docs_url = "https://developer.gnome.org/pango/stable" + + [dependencies."freetype2-2.0"] + name = "Freetype" + description = "A font loading and rendering library" + docs_url = "https://www.freetype.org" + +[theme] +name = "basic" + +[source-location] +base_url = "https://gitlab.gnome.org/GNOME/pango/-/blob/master/" + +[extra] + +content_images = [ + "pango-name.png" +] diff --git a/docs/pangoot.toml b/docs/pangoot.toml deleted file mode 100644 index dc0eb091..00000000 --- a/docs/pangoot.toml +++ /dev/null @@ -1,28 +0,0 @@ -[library] -namespace = "PangoOT" -version = "1.0" -browse_url = "https://gitlab.gnome.org/GNOME/pango/" -repository_url = "https://gitlab.gnome.org/GNOME/pango.git" -website_url = "https://www.pango.org" -authors = "Owen Taylor, Behdad Esfahbod" -logo_url = "pango-name.png" -license = "GPL-2.1-or-later" -description = "OpenType support for Pango" -dependencies = [ "Pango-1.0" ] - - [dependencies."Pango-1.0"] - name = "Pango" - description = "A library for layout out and rendering of text" - docs_url = "https://developer.gnome.org/pango/stable" - -[theme] -name = "basic" - -[source-location] -base_url = "https://gitlab.gnome.org/GNOME/pango/-/blob/master/" - -[extra] - -content_images = [ - "pango-name.png" -] diff --git a/docs/pangoot.toml.in b/docs/pangoot.toml.in new file mode 100644 index 00000000..581a4239 --- /dev/null +++ b/docs/pangoot.toml.in @@ -0,0 +1,28 @@ +[library] +namespace = "PangoOT" +version = "@PANGO_VERSION@" +browse_url = "https://gitlab.gnome.org/GNOME/pango/" +repository_url = "https://gitlab.gnome.org/GNOME/pango.git" +website_url = "https://www.pango.org" +authors = "Owen Taylor, Behdad Esfahbod" +logo_url = "pango-name.png" +license = "GPL-2.1-or-later" +description = "OpenType support for Pango" +dependencies = [ "Pango-1.0" ] + + [dependencies."Pango-1.0"] + name = "Pango" + description = "A library for layout out and rendering of text" + docs_url = "https://developer.gnome.org/pango/stable" + +[theme] +name = "basic" + +[source-location] +base_url = "https://gitlab.gnome.org/GNOME/pango/-/blob/master/" + +[extra] + +content_images = [ + "pango-name.png" +] diff --git a/docs/pangoxft.toml b/docs/pangoxft.toml deleted file mode 100644 index 07901e26..00000000 --- a/docs/pangoxft.toml +++ /dev/null @@ -1,33 +0,0 @@ -[library] -namespace = "PangoXft" -version = "1.0" -browse_url = "https://gitlab.gnome.org/GNOME/pango/" -repository_url = "https://gitlab.gnome.org/GNOME/pango.git" -website_url = "https://www.pango.org" -authors = "Owen Taylor, Behdad Esfahbod" -logo_url = "pango-name.png" -license = "GPL-2.1-or-later" -description = "Xft support for Pango" -dependencies = [ "Pango-1.0", "xft-2.0" ] - - [dependencies."Pango-1.0"] - name = "Pango" - description = "A library for layout out and rendering of text" - docs_url = "https://developer.gnome.org/pango/stable" - - [dependencies."xft-2.0"] - name = "Xft" - description = "X11 client-side font rendering library" - docs_url = "https://x.org" - -[theme] -name = "basic" - -[source-location] -base_url = "https://gitlab.gnome.org/GNOME/pango/-/blob/master/" - -[extra] - -content_images = [ - "pango-name.png" -] diff --git a/docs/pangoxft.toml.in b/docs/pangoxft.toml.in new file mode 100644 index 00000000..241c0aa0 --- /dev/null +++ b/docs/pangoxft.toml.in @@ -0,0 +1,33 @@ +[library] +namespace = "PangoXft" +version = "@PANGO_VERSION@" +browse_url = "https://gitlab.gnome.org/GNOME/pango/" +repository_url = "https://gitlab.gnome.org/GNOME/pango.git" +website_url = "https://www.pango.org" +authors = "Owen Taylor, Behdad Esfahbod" +logo_url = "pango-name.png" +license = "GPL-2.1-or-later" +description = "Xft support for Pango" +dependencies = [ "Pango-1.0", "xft-2.0" ] + + [dependencies."Pango-1.0"] + name = "Pango" + description = "A library for layout out and rendering of text" + docs_url = "https://developer.gnome.org/pango/stable" + + [dependencies."xft-2.0"] + name = "Xft" + description = "X11 client-side font rendering library" + docs_url = "https://x.org" + +[theme] +name = "basic" + +[source-location] +base_url = "https://gitlab.gnome.org/GNOME/pango/-/blob/master/" + +[extra] + +content_images = [ + "pango-name.png" +] diff --git a/docs/rects3.png b/docs/rects3.png new file mode 100644 index 00000000..4817b7af Binary files /dev/null and b/docs/rects3.png differ diff --git a/meson.build b/meson.build index 28d9c9ba..f9e63347 100644 --- a/meson.build +++ b/meson.build @@ -585,6 +585,10 @@ libsysprof_capture_dep = dependency('sysprof-capture-4', pango_conf.set('HAVE_SYSPROF', libsysprof_capture_dep.found()) pango_deps += libsysprof_capture_dep +gidocgen_dep = dependency('gi-docgen', version: '>= 2021.1', + fallback: ['gi-docgen', 'dummy_dep'], + required: get_option('gtk_doc')) + gnome = import('gnome') pkgconfig = import('pkgconfig') -- cgit v1.2.1