[gnome-builder/wip/tingping/meson-build] fixup! build: Initial conversion to Meson
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/tingping/meson-build] fixup! build: Initial conversion to Meson
- Date: Tue, 4 Oct 2016 17:56:31 +0000 (UTC)
commit 1e9651de0ca999c318a282f3fb60c7cc290eb2c4
Author: Patrick Griffis <tingping tingping se>
Date: Tue Oct 4 13:56:20 2016 -0400
fixup! build: Initial conversion to Meson
data/gsettings/meson.build | 32 ++++++++++++++++++-
doc/reference/libide/meson.build | 39 ++++++++++++++++++++++++
doc/reference/libide/xml/gtkdocentities.ent.in | 7 ++++
doc/reference/libide/xml/meson.build | 13 ++++++++
meson.build | 1 +
meson_options.txt | 1 +
6 files changed, 91 insertions(+), 2 deletions(-)
---
diff --git a/data/gsettings/meson.build b/data/gsettings/meson.build
index ca468f9..dfc5ef7 100644
--- a/data/gsettings/meson.build
+++ b/data/gsettings/meson.build
@@ -1,6 +1,34 @@
+schema_dir = get_option('datadir') + '/glib-2.0/schemas'
+
+# Perhaps this should be moved to the plugin
+ctags_path = 'ctags'
+ctags = find_program('ctags-exuberant', required: false)
+if not ctags.found()
+ ctags = find_program('exctags', required: false)
+ if not ctags.found()
+ ctags = find_program('ectags', required: false)
+ if not ctags.found()
+ ctags = find_program('ctags', required: false)
+ endif
+ endif
+endif
+if ctags.found()
+ ctags_path = ctags.path()
+endif
+
+schema_conf = configuration_data()
+schema_conf.set('ECTAGS', ctags_path)
+
+configure_file(
+ input: 'org.gnome.builder.code-insight.gschema.xml.in',
+ output: 'org.gnome.builder.code-insight.gschema.xml',
+ configuration: schema_conf,
+ install: true,
+ install_dir: schema_dir,
+)
+
install_data([
'org.gnome.builder.build.gschema.xml',
- 'org.gnome.builder.code-insight.gschema.xml',
'org.gnome.builder.editor.gschema.xml',
'org.gnome.builder.editor.language.gschema.xml',
'org.gnome.builder.extension-type.gschema.xml',
@@ -9,4 +37,4 @@ install_data([
'org.gnome.builder.project-tree.gschema.xml',
'org.gnome.builder.terminal.gschema.xml',
'org.gnome.builder.workbench.gschema.xml',
-], install_dir: get_option('datadir') + '/glib-2.0/schemas')
+], install_dir: schema_dir)
diff --git a/doc/reference/libide/meson.build b/doc/reference/libide/meson.build
new file mode 100644
index 0000000..15c46a4
--- /dev/null
+++ b/doc/reference/libide/meson.build
@@ -0,0 +1,39 @@
+if get_option('with_docs')
+
+doc_conf = configuration_data()
+doc_conf.set('LIBIDE_VERSION', libide_api_version)
+
+subdir('xml')
+
+doc_version_xml = configure_file(
+ input: 'version.xml.in',
+ output: 'version.xml',
+ configuration: doc_conf,
+)
+
+# FIXME: Correct prefix for system docs
+doc_dir_arg = '--extra-dir=@0@/@1@/gtk-doc/html/'.format('/usr', get_option('datadir'))
+
+
+gnome.gtkdoc('libide',
+ #meson.source_root() + '/libide',
+ main_sgml: 'libide-docs.sgml',
+ src_dir: meson.source_root() + '/libide',
+ dependencies: libide_dep,
+ install: true,
+ scan_args: [
+ '--rebuild-types',
+ '--ignore-headers=config.h',
+ ],
+ fixxref_args: [
+ doc_dir_arg + 'glib',
+ doc_dir_arg + 'gmodule',
+ doc_dir_arg + 'gobject',
+ doc_dir_arg + 'gio',
+ doc_dir_arg + 'gtk',
+ doc_dir_arg + 'gtksourceview-3.0',
+ ],
+ #content_files: doc_version_xml,
+)
+
+endif
diff --git a/doc/reference/libide/xml/gtkdocentities.ent.in b/doc/reference/libide/xml/gtkdocentities.ent.in
new file mode 100644
index 0000000..fd86c16
--- /dev/null
+++ b/doc/reference/libide/xml/gtkdocentities.ent.in
@@ -0,0 +1,7 @@
+<!ENTITY package "@PACKAGE@">
+<!ENTITY package_bugreport "@PACKAGE_BUGREPORT@">
+<!ENTITY package_name "@PACKAGE_NAME@">
+<!ENTITY package_string "@PACKAGE_STRING@">
+<!ENTITY package_tarname "@PACKAGE_TARNAME@">
+<!ENTITY package_url "@PACKAGE_URL@">
+<!ENTITY package_version "@PACKAGE_VERSION@">
diff --git a/doc/reference/libide/xml/meson.build b/doc/reference/libide/xml/meson.build
new file mode 100644
index 0000000..732ee70
--- /dev/null
+++ b/doc/reference/libide/xml/meson.build
@@ -0,0 +1,13 @@
+doc_conf.set('PACKAGE', 'gnome-builder')
+doc_conf.set('PACKAGE_NAME', 'gnome-builder')
+doc_conf.set('PACKAGE_BUGREPORT', 'FIXME')
+doc_conf.set('PACKAGE_STRING', 'gnome-builder')
+doc_conf.set('PACKAGE_TARNAME', 'gnome-builder-' + meson.project_version())
+doc_conf.set('PACKAGE_URL', 'FIXME')
+doc_conf.set('PACKAGE_VERSION', meson.project_version())
+
+configure_file(
+ input: 'gtkdocentities.ent.in',
+ output: 'gtkdocentities.ent',
+ configuration: doc_conf,
+)
diff --git a/meson.build b/meson.build
index c379acf..6c169c2 100644
--- a/meson.build
+++ b/meson.build
@@ -63,6 +63,7 @@ subdir('contrib/search')
subdir('contrib/tmpl')
subdir('contrib/xml')
subdir('libide')
+subdir('doc/reference/libide')
subdir('plugins')
subdir('po')
diff --git a/meson_options.txt b/meson_options.txt
index c468929..56c26fa 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -7,6 +7,7 @@ option('enable_profiling', type: 'boolean', value: false)
option('with_editorconfig', type: 'boolean')
option('with_webkit', type: 'boolean')
option('with_introspection', type: 'boolean')
+option('with_docs', type: 'boolean', value: false)
# Plugins
option('with_autotools', type: 'boolean')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]