[rygel/wip/meson] wip: Enable doc generation
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/wip/meson] wip: Enable doc generation
- Date: Fri, 12 Oct 2018 06:38:38 +0000 (UTC)
commit e8b729fb9a192ed86a00428e96f0c5a2e90765e5
Author: Jens Georg <mail jensge org>
Date: Fri Oct 12 08:37:46 2018 +0200
wip: Enable doc generation
doc/meson.build | 1 +
doc/reference/librygel-core/meson.build | 52 +++++++++++++++++++++++++++++++++
doc/reference/meson.build | 1 +
meson.build | 3 ++
src/librygel-core/meson.build | 4 +--
5 files changed, 59 insertions(+), 2 deletions(-)
---
diff --git a/doc/meson.build b/doc/meson.build
index f8f089c3..41c733e5 100644
--- a/doc/meson.build
+++ b/doc/meson.build
@@ -1 +1,2 @@
subdir('man')
+subdir('reference')
diff --git a/doc/reference/librygel-core/meson.build b/doc/reference/librygel-core/meson.build
new file mode 100644
index 00000000..6c0dc80a
--- /dev/null
+++ b/doc/reference/librygel-core/meson.build
@@ -0,0 +1,52 @@
+custom_target('valadoc-core',
+ input: core_sources,
+ output: 'valadoc',
+ command :
+ [
+ valadoc,
+ '-o', 'valadoc',
+ '--package-name', 'librygel-core',
+ '--package-version', '2.6',
+ '-b', join_paths(meson.source_root(), 'src', 'librygel-core'),
+ '--target-glib=2.32',
+ '--pkg', 'rygel-build-config',
+ '--force',
+ '--directory', '@OUTPUT@',
+ '--pkg', 'gio-2.0',
+ '--pkg', 'gee-0.8',
+ '--pkg', 'gupnp-1.0',
+ '--pkg', 'gmodule-2.0',
+ '--pkg', 'posix',
+ core_sources
+ ]
+)
+
+custom_target('gtkdoc-core',
+ input: core_sources,
+ output: 'gtkdoc',
+ depends : core_lib,
+ command :
+ [
+ valadoc,
+ '--doclet', 'gtkdoc',
+ '-o', 'gtkdoc',
+ '--package-name', 'librygel-core',
+ '--package-version', '2.6',
+ '-X', join_paths(meson.build_root(), 'src/librygel-core/rygel-core.h'),
+ '-X', '-l',
+ '-X', join_paths(meson.build_root(), 'src/librygel-core/librygel-core-2.6.so'),
+ '-b', join_paths(meson.source_root(), 'src', 'librygel-core'),
+ '--target-glib=2.32',
+ '--pkg', 'rygel-build-config',
+ '--force',
+ '--directory', '@OUTPUT@',
+ '--pkg', 'gio-2.0',
+ '--pkg', 'gee-0.8',
+ '--pkg', 'gupnp-1.0',
+ '--pkg', 'gmodule-2.0',
+ '--pkg', 'posix',
+ core_sources
+ ]
+)
+
+
diff --git a/doc/reference/meson.build b/doc/reference/meson.build
new file mode 100644
index 00000000..21b1bf5e
--- /dev/null
+++ b/doc/reference/meson.build
@@ -0,0 +1 @@
+subdir('librygel-core')
diff --git a/meson.build b/meson.build
index 342df3d7..700ba6a0 100644
--- a/meson.build
+++ b/meson.build
@@ -56,6 +56,9 @@ config_include = include_directories('.')
add_global_arguments(['-include','config.h'], language : 'c')
+valadoc = find_program('valadoc', required : false)
+gtkdoc = dependency('gtk-doc', required : false)
+
vala = meson.get_compiler('vala')
gupnp = dependency('gupnp-1.0', version : '>= 0.24.14')
gee = dependency('gee-0.8', version: '>= 0.8.0')
diff --git a/src/librygel-core/meson.build b/src/librygel-core/meson.build
index 6f471932..048ac35d 100644
--- a/src/librygel-core/meson.build
+++ b/src/librygel-core/meson.build
@@ -1,4 +1,4 @@
-core_sources = [
+core_sources = files(
'rygel-connection-manager.vala',
'rygel-basic-management.vala',
'rygel-basic-management-test.vala',
@@ -29,7 +29,7 @@ core_sources = [
'rygel-xml-utils.vala',
'rygel-plugin-information.vala',
'rygel-energy-management-helper.c',
- 'rygel-build-config.vapi']
+ 'rygel-build-config.vapi')
build_config = declare_dependency(include_directories : config_include,
sources : 'rygel-build-config.vapi')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]