This commit uses gi-docgen and obsolete gtk-doc.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
subdir('ctl')
subdir('hwdep')
subdir('rawmidi')
+subdir('timer')
subdir('reference')
configuration : conf,
)
-subdir('timer')
subdir('seq')
+++ /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>ALSATimer Reference Manual</title>
- <releaseinfo>This document is for the ALSATimer library, version &version;.
- </releaseinfo>
- </bookinfo>
-
- <chapter id="introduction">
- <title>Introduction</title>
- <para>This library is designed for applications to manipulate ALSA
- timer character device and operate timer functionality abstracted
- as timer device and user instance. ALSATimerUserInstance represents
- the user instance. It holds file descriptor and creates GSource for
- event dispatching by GLib's GMainContext/GMainLoop.</para>
- </chapter>
-
- <chapter id="alsatimer-enumerations">
- <title>ALSATimer enumerations</title>
- <xi:include href="xml/alsatimer-enum-types.xml"/>
- </chapter>
-
- <chapter id="alsatimer-global-methods">
- <title>ALSATimer global methods</title>
- <xi:include href="xml/query.xml"/>
- </chapter>
-
- <chapter id="alsatimer-objects">
- <title>ALSATimer objects</title>
- <xi:include href="xml/user-instance.xml"/>
- <xi:include href="xml/device-id.xml"/>
- <xi:include href="xml/device-info.xml"/>
- <xi:include href="xml/device-status.xml"/>
- <xi:include href="xml/device-params.xml"/>
- <xi:include href="xml/instance-info.xml"/>
- <xi:include href="xml/instance-status.xml"/>
- <xi:include href="xml/instance-params.xml"/>
- <xi:include href="xml/event.xml"/>
- <xi:include href="xml/event-data-tick.xml"/>
- <xi:include href="xml/event-data-tstamp.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
-alsatimer_class_get_type
-alsatimer_slave_class_get_type
-alsatimer_specific_global_device_get_type
-alsatimer_device_info_flag_get_type
-alsatimer_instance_param_flag_get_type
-alsatimer_event_type_get_type
-alsatimer_event_data_type_get_type
-alsatimer_device_id_get_type
-alsatimer_device_info_get_type
-alsatimer_device_status_get_type
-alsatimer_device_params_get_type
-alsatimer_user_instance_get_type
-alsatimer_instance_info_get_type
-alsatimer_instance_params_get_type
-alsatimer_instance_status_get_type
-alsatimer_event_get_type
-alsatimer_event_data_tick_get_type
-alsatimer_event_data_tstamp_get_type
+++ /dev/null
-gnome.gtkdoc('alsatimer',
- src_dir : alsatimer_dir,
- main_xml : 'alsatimer-docs.xml',
- scan_args: [
- '--ignore-headers=privates.h',
- ],
- gobject_typesfile: 'alsatimer.types',
- dependencies: alsatimer_dependency,
- install : true,
-)
--- /dev/null
+[library]
+version = "@VERSION@"
+description = "alsatimer"
+authors = "Takashi Sakamoto"
+license = "LGPL-3.0-or-later"
+website_url = "https://alsa-project.github.io/alsa-gobject-docs/alsatimer/"
+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: 'alsatimer.toml.in',
+ output: 'alsatimer.toml',
+ configuration: conf,
+)
+
+custom_target('alsatimer-doc',
+ input: [ doc_toml, alsatimer_gir[0] ],
+ output: 'alsatimer',
+ 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 timer character device and operate
+timer functionality abstracted as timer device and user instance. ALSATimerUserInstance represents
+the user instance. It holds 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/' ],
+]
)
# Generate metadata for gobject introspection.
-gnome.generate_gir(library,
+alsarawmidi_gir = gnome.generate_gir(library,
sources: enums + headers + sources,
nsversion: '0.0',
namespace: namespace,
header: 'alsarawmidi.h',
install: true,
)
-
-# For documentation of gtk-doc.
-alsarawmidi_dir = include_directories('.')
-alsarawmidi_dependency = declare_dependency(
- link_with: library,
- dependencies: dependencies,
-)
install: true,
)
-# For documentation of gtk-doc.
-alsatimer_dir = include_directories('.')
alsatimer_dependency = declare_dependency(
link_with: library,
dependencies: dependencies,