summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorIñigo Martínez <inigomartinez@gmail.com>2017-06-09 22:38:19 +0200
committerBastien Nocera <hadess@hadess.net>2017-06-23 18:00:40 +0200
commit95256079d3457056fbcdf48e5d618a6e57af0439 (patch)
tree82339e1cce1701f965b65eb49a236f666fe8ec1a /docs
parenta1da1b32da5f4c1aa307a170cff80154f210c172 (diff)
downloadtotem-95256079d3457056fbcdf48e5d618a6e57af0439.tar.gz
build: Port to meson build system
With additional testing and patches from Bastien Nocera <hadess@hadess.net> https://bugzilla.gnome.org/show_bug.cgi?id=783205
Diffstat (limited to 'docs')
-rw-r--r--docs/meson.build1
-rw-r--r--docs/reference/Makefile.am4
-rw-r--r--docs/reference/meson.build98
3 files changed, 101 insertions, 2 deletions
diff --git a/docs/meson.build b/docs/meson.build
new file mode 100644
index 000000000..ead14c401
--- /dev/null
+++ b/docs/meson.build
@@ -0,0 +1 @@
+subdir('reference')
diff --git a/docs/reference/Makefile.am b/docs/reference/Makefile.am
index ab52bd545..25ad41393 100644
--- a/docs/reference/Makefile.am
+++ b/docs/reference/Makefile.am
@@ -137,8 +137,8 @@ GTKDOC_CFLAGS = \
-I$(top_srcdir)/src/plugins \
$(PLAYER_CFLAGS)
GTKDOC_LIBS = \
- $(top_builddir)/src/libtotem.la \
- $(top_builddir)/libgd/libgd.la \
+ $(top_builddir)/src/libtotem.la \
+ $(top_builddir)/subprojects/libgd/libgd.la \
$(PLAYER_LIBS)
# This includes the standard gtk-doc make rules, copied by gtkdocize.
diff --git a/docs/reference/meson.build b/docs/reference/meson.build
new file mode 100644
index 000000000..16f64bb85
--- /dev/null
+++ b/docs/reference/meson.build
@@ -0,0 +1,98 @@
+private_headers = [
+ 'bacon-resize.h',
+ 'bacon-time-label.h',
+ 'bacon-video-controls-actor.h',
+ 'bacon-video-spinner-actor.h',
+ 'bacon-video-widget-common.h',
+ 'bacon-video-widget-gst-missing-plugins.h',
+ 'bacon-video-widget-properties.h',
+ 'clock.h',
+ 'debug.h',
+ 'gd-fullscreen-filter.h',
+ 'gd-tagged-entry.h',
+ 'gnome-screenshot-widget.h',
+ 'gsd-media-keys-window.h',
+ 'gstscreenshot.h',
+ 'icon-helpers.h',
+ 'screenshot-filename-builder.h',
+ 'totem-aspect-frame.h',
+ 'totem-chapters-utils.h',
+ 'totem-cmml-parser.h',
+ 'totem-dnd-menu.h',
+ 'totem-dvb-setup.h',
+ 'totem-edit-chapter.h',
+ 'totem-fullscreen.h',
+ 'totem-gallery-progress.h',
+ 'totem-gallery.h',
+ 'totem-grilo.h',
+ 'totem-gst-helpers.h',
+ 'totem-gst-pixbuf-helpers.h',
+ 'totem-main-toolbar.h',
+ 'totem-menu.h',
+ 'totem-module.h',
+ 'totem-open-location.h',
+ 'totem-options.h',
+ 'totem-playlist.h',
+ 'totem-plugins-engine.h',
+ 'totem-plugin-manager.h',
+ 'totem-preferences.h',
+ 'totem-private.h',
+ 'totem-profile.h',
+ 'totem-properties-view.h',
+ 'totem-python-plugin.h',
+ 'totem-resources.h',
+ 'totem-sample-vala-plugin.h',
+ 'totem-screenshot-plugin.h',
+ 'totem-screenshot.h',
+ 'totem-search-entry.h',
+ 'totem-selection-toolbar.h',
+ 'totem-session.h',
+ 'totem-skipto-plugin.h',
+ 'totem-skipto.h',
+ 'totem-statusbar.h',
+ 'totem-subtitle-encoding.h',
+ 'totem-time-entry.h',
+ 'totem-time-helpers.h',
+ 'totem-time-label.h',
+ 'totem-tracker-widget.h',
+ 'totem-uri.h',
+ 'video-utils.h'
+]
+
+version_conf = configuration_data()
+version_conf.set('TOTEM_VERSION_MAJOR', totem_major_version)
+version_conf.set('TOTEM_VERSION_MINOR', totem_minor_version)
+version_conf.set('TOTEM_VERSION_MICRO', totem_micro_version)
+
+version_xml = 'version.xml'
+
+configure_file(
+ input: version_xml + '.in',
+ output: version_xml,
+ configuration: version_conf
+)
+
+doc_path = join_paths(totem_datadir, 'gtk-doc', 'html', meson.project_name())
+
+gnome.gtkdoc(
+ meson.project_name(),
+ main_xml: meson.project_name() + '-docs.xml',
+ src_dir: [
+ top_inc,
+ src_inc,
+ plugins_inc,
+ backend_inc
+ ],
+ dependencies: libtotem_dep,
+ scan_args: [
+ '--rebuild-types',
+ '--ignore-headers=' + ' '.join(private_headers),
+ ],
+ mkdb_args: [
+ '--sgml-mode',
+ '--output-format=xml',
+ '--name-space=' + meson.project_name()
+ ],
+ install: true,
+ install_dir: doc_path
+)