forked from AuroraMiddleware/gtk
0ba2a3a191
Stop using gtk-doc, and switch to gi-docgen. The gi-docgen tool generates API references through the introspection data, which has various benefits: - it does not parse C code - it does not generate and run C code to introspect types at build time - it does not present a different API from the one we're exporting Additionally, gi-docgen: - does not generate DocBook XML in order to generate HTML - does not go through xsltproc - parses proper Markdown Which makes it markedly faster than gtk-doc has ever been.
28 lines
1022 B
Meson
28 lines
1022 B
Meson
if get_option('gtk_doc')
|
|
glib_prefix = dependency('glib-2.0').get_variable(pkgconfig: 'prefix', default_value: '/usr')
|
|
glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')
|
|
|
|
cairo_prefix = dependency('cairo-gobject').get_variable(pkgconfig: 'prefix', default_value: '/usr')
|
|
cairo_docpath = join_paths(cairo_prefix, 'share', 'gtk-doc', 'html', 'cairo')
|
|
|
|
gdkpixbuf_prefix = dependency('gdk-pixbuf-2.0').get_variable(pkgconfig: 'prefix', default_value: '/usr')
|
|
gdkpixbuf_docpath = join_paths(gdkpixbuf_prefix, 'share', 'gtk-doc', 'html', 'gdk-pixbuf')
|
|
|
|
docpath = join_paths(gtk_datadir, 'gtk-doc', 'html')
|
|
|
|
version_conf = configuration_data()
|
|
version_conf.set('GTK_VERSION', meson.project_version())
|
|
|
|
src_dir_conf = configuration_data()
|
|
src_dir_conf.set('SRC_DIR', meson.source_root())
|
|
endif
|
|
|
|
toml_conf = configuration_data()
|
|
toml_conf.set('version', meson.project_version())
|
|
|
|
gidocgen = find_program('gi-docgen', required: get_option('gtk_doc'))
|
|
|
|
subdir('gdk')
|
|
subdir('gsk')
|
|
subdir('gtk')
|