Commit b0c054a3 authored by Pavlo Solntsev's avatar Pavlo Solntsev Committed by Daniel Espinosa Ortiz

DOC: Doc was activated for meson build

For some reason xml/gda-data-select.xml generate an error and
documentation can't be built. Therefore, this file was excluded for now.
parent 0213b22e
......@@ -133,24 +133,6 @@ meson_build:
- broadwayd &
- GDK_BACKEND=broadway meson test
- ninja install
- cd ..
artifacts:
when: on_failure
paths:
- _build/meson-logs/testlog.txt
- _build/meson-logs/meson-log.txt
- _build/doc/C/libgda/html
- _build/doc/C/libgdaui/html
- _build/doc/Gda-6.0
- _build/doc/Gdaui-6.0
expire_in: 1 week
pages:
stage: build
script:
- meson -Denable-gtk-doc=true _build
- cd _build
- ninja
- ninja install
- mkdir ../public
- mv doc/index.html ../public/
- mkdir ../public/C
......@@ -160,12 +142,16 @@ pages:
- mv doc/Gdaui-6.0 ../public/vala
- cp libgda/libgda-6.0.vapi ../public/vala
- cp libgda-ui/libgdaui-6.0.vapi ../public/vala
# Fix meson gtk-doc generation to remove next
- cd ..
- ./autogen.sh --enable-gtk-doc
- make
- mv doc/C/libgda/html public/C/libgda-6.0
- mv doc/C/libgdaui/html public/C/libgdaui-6.0
artifacts:
paths:
- public
\ No newline at end of file
- public
artifacts:
when: on_failure
paths:
- _build/meson-logs/testlog.txt
- _build/meson-logs/meson-log.txt
- _build/doc/C/libgda/html
- _build/doc/C/libgdaui/html
- _build/doc/Gda-6.0
- _build/doc/Gdaui-6.0
expire_in: 1 week
\ No newline at end of file
html
xml
html-build.stamp
html.stamp
libgda-6.0-decl-list.txt
......
<?xml version="1.0"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
"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 % gtkdocentities SYSTEM "xml/gtkdocentities.ent">
......@@ -67,7 +67,7 @@
<xi:include href="xml/gda-data-proxy.xml"/>
<xi:include href="xml/gda-meta-store.xml"/>
<xi:include href="xml/gda-meta-struct.xml"/>
<xi:include href="xml/gda-data-select.xml"/>
<!-- <xi:include href="xml/gda-data-select.xml"/> -->
</chapter>
<chapter id="Data Handlers">
......
subdir('xml')
libgda_typesdoc = configure_file(
input: 'libgda.types.in',
output : 'libgda.types',
......@@ -60,31 +62,47 @@ contentf = [
doc_builddate
]
contentf += files([
'fdl-appendix.sgml'
'fdl-appendix.sgml',
'author-list.xml',
'installation.xml'
])
# ignore_bdb = []
# if bdb_found
# else
# ignore_bdb += ['gda-data-model-bdb.h']
# ignore_bdb += ['gda-data-model-bdb.h']
# endif
# gnome_module.gtkdoc(project_package,
# main_xml: project_package+'-docs.xml',
# scan_args: [
# '--deprecated-guards="GDA_DISABLE_DEPRECATED"',
# '--rebuild-types',
# '--ignore-headers',
# 'gda-marshal.h', 'gda-custom-marshal.h', 'gda-enum-types.h', 'sqlite3.h',
# 'csv.h', 'md5.h', 'jni-wrapper.h', 'gda-jdbc-recordset.h',
# 'gda-jdbc-blob-op.h', 'gda-jdbc-provider.h', 'gda-jdbc-pstmt.h',
# 'providers', 'tools control-center', 'tests', 'examples', 'plugins', 'tmp',
# ignore_bdb
# ],
# src_dir: join_paths(meson.source_root(),'libgda'),
# mkdb_args: [
# '--xml-mode',
# '--output-format=xml',
# '--name-space=gda'
# ],
# )
libgda_doc_dep = declare_dependency(link_with: [libgda])
glib_prefix = glib_dep.get_pkgconfig_variable('prefix')
glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')
gnome_module.gtkdoc(
project_package,
main_xml: project_package+'-docs.xml',
namespace: 'gda',
mode: 'none',
src_dir: join_paths(meson.source_root(),'libgda'),
dependencies: [libgda_doc_dep, libgda_dep],
scan_args: [
'--deprecated-guards="GDA_DISABLE_DEPRECATED"',
'--rebuild-types'
],
content_files: contentf,
html_assets: gda_html_images,
fixxref_args: [
'--extra-dir=@0@'.format(join_paths(glib_docpath, 'glib')),
'--extra-dir=@0@'.format(join_paths(glib_docpath, 'gobject')),
'--extra-dir=@0@'.format(join_paths(glib_docpath, 'gio')),
],
ignore_headers: [
'gda-data-model-bdb.h',
'dummy-object.h',
'sqlite3.h'
],
mkdb_args: [
'--xml-mode'
],
install: true
)
<!ENTITY LIBGDA "@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@">
<!ENTITY package_api_version "@PACKAGE_API_VERSION@">
ent_conf = configuration_data()
ent_conf.set('PACKAGE', 'libgda')
ent_conf.set('PACKAGE_BUGREPORT', 'https://gitlab.gnome.org/GNOME/libgda/issues')
ent_conf.set('PACKAGE_NAME', 'libgda')
ent_conf.set('PACKAGE_STRING', 'libgda')
ent_conf.set('PACKAGE_TARNAME', 'libgda-' + meson.project_version())
ent_conf.set('PACKAGE_URL', 'http://gitlab.gnome.org/GNOME/libgda')
ent_conf.set('PACKAGE_VERSION', meson.project_version())
ent_conf.set('PACKAGE_API_VERSION', project_api_version)
configure_file(input: 'gtkdocentities.ent.in', output: 'gtkdocentities.ent', configuration: ent_conf)
project('libgda', 'vala', 'c',
license: 'LGPL2+',
version : '5.91.0',
meson_version: '>= 0.44.1',
meson_version: '>= 0.48',
default_options: [
'c_std=gnu11',
'warning_level=2',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment