This commit uses gi-docgen and obsolete gtk-doc.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
--- /dev/null
+[library]
+version = "@VERSION@"
+description = "alsahwdep"
+authors = "Takashi Sakamoto"
+license = "LGPL-3.0-or-later"
+website_url = "https://alsa-project.github.io/alsa-gobject-docs/alsahwdep/"
+browse_url = "https://github.com/alsa-project/alsa-gobject"
+repository_url = "https://github.com/alsa-project/alsa-gobject.git"
+
+dependencies = [
+ "GLib-2.0",
+ "GObject-2.0",
+]
+
+[dependencies."GLib-2.0"]
+name = "GLib"
+description = "The base utility library"
+docs_url = "https://docs.gtk.org/glib/"
+
+[dependencies."GObject-2.0"]
+name = "GObject"
+description = "The base type system and object class"
+docs_url = "https://docs.gtk.org/gobject/"
+
+[source-location]
+base_url = "https://github.com/alsa-project/alsa-gobject/blob/master/"
+file_format = "{filename}#L{line}"
+
+[extra]
+content_files = [
+ "overview.md",
+]
+
+urlmap_file = "urlmap.js"
--- /dev/null
+ext_contents = [
+ 'overview.md',
+]
+
+doc_toml = configure_file(
+ input: 'alsahwdep.toml.in',
+ output: 'alsahwdep.toml',
+ configuration: conf,
+)
+
+custom_target('alsahwdep-doc',
+ input: [ doc_toml, alsahwdep_gir[0] ],
+ output: 'alsahwdep',
+ command: [
+ gidocgen,
+ 'generate',
+ '--no-namespace-dir',
+ '--config=@INPUT0@',
+ '--output-dir=@OUTPUT@',
+ '--content-dir=@0@'.format(meson.current_source_dir()),
+ '@INPUT1@',
+ ],
+ depend_files: [ ext_contents ],
+ build_by_default: true,
+ install: true,
+ install_dir: doc_dir,
+)
--- /dev/null
+Title: Overview
+
+This library is designed for applications to manipulate ALSA hwdep character device and retrieve
+common information of hardware dependent functionality abstracted as hwdep device. As the design
+concept means; hardware dependent, this library has no further functionality. Each applications
+should implement it by their own. file descriptor and creates GSource for event dispatching by
+GLib's GMainContext/GMainLoop.
--- /dev/null
+baseURLs = [
+ [ 'GLib', 'https://docs.gtk.org/glib/' ],
+ [ 'GObject', 'https://docs.gtk.org/gobject/' ],
+]
gidocgen = find_program('gi-docgen')
subdir('ctl')
+subdir('hwdep')
subdir('reference')
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-<!ENTITY % local.common.attrib "xmlns:xi CDATA #FIXED 'http://www.w3.org/2003/XInclude'">
-<!ENTITY version SYSTEM "../version.xml">
-]>
-
-<book id="index" xmlns:xi="http://www.w3.org/2003/XInclude">
- <bookinfo>
- <title>ALSAHwdep Reference Manual</title>
- <releaseinfo>This document is for the ALSAHwdep library, version &version;.
- </releaseinfo>
- </bookinfo>
-
- <chapter id="introduction">
- <title>Introduction</title>
- <para>This library is designed for applications to manipulate ALSA
- hwdep character device and retrieve common information of hardware
- dependent functionality abstracted as hwdep device. As the design
- concept means; hardware dependent, this library has no further
- functionality. Each applications should implement it by their own.
- </para>
- </chapter>
-
- <chapter id="alsahwdep-enumerations">
- <title>ALSAHwdep enumerations</title>
- <xi:include href="xml/alsahwdep-enum-types.xml"/>
- </chapter>
-
- <chapter id="alsahwdep-global-methods">
- <title>ALSAHwdep global methods</title>
- <xi:include href="xml/query.xml"/>
- </chapter>
-
- <chapter id="alsahwdep-objects">
- <title>ALSAHwdep objects</title>
- <xi:include href="xml/device-info.xml"/>
- </chapter>
-
- <index id="index-all">
- <title>Index of all symbols</title>
- <xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include>
- </index>
-
- <xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include>
-
-</book>
+++ /dev/null
-alsahwdep_device_info_get_type
+++ /dev/null
-gnome.gtkdoc('alsahwdep',
- src_dir : alsahwdep_dir,
- main_xml : 'alsahwdep-docs.xml',
- scan_args: [
- '--ignore-headers=privates.h',
- ],
- gobject_typesfile: 'alsahwdep.types',
- dependencies: alsahwdep_dependency,
- install : true,
-)
subdir('timer')
subdir('seq')
-subdir('hwdep')
subdir('rawmidi')
)
# Generate metadata for gobject introspection.
-gnome.generate_gir(library,
+alsahwdep_gir = gnome.generate_gir(library,
sources: enums + headers + sources,
nsversion: '0.0',
namespace: namespace,
header: 'alsahwdep.h',
install: true,
)
-
-# For documentation of gtk-doc.
-alsahwdep_dir = include_directories('.')
-alsahwdep_dependency = declare_dependency(
- link_with: library,
- dependencies: dependencies,
-)