2019-07-01 16:57:16 +00:00
|
|
|
if get_option('gtk_doc')
|
2020-01-28 15:50:53 +00:00
|
|
|
if not meson.version().version_compare('>=0.52.0')
|
|
|
|
error('Building the GTK documentation requires Meson 0.52.0')
|
|
|
|
endif
|
|
|
|
|
2019-05-25 16:27:32 +00:00
|
|
|
glib_prefix = dependency('glib-2.0').get_pkgconfig_variable('prefix')
|
|
|
|
glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')
|
2017-04-19 10:35:45 +00:00
|
|
|
|
2019-05-25 16:27:32 +00:00
|
|
|
cairo_prefix = dependency('cairo-gobject').get_pkgconfig_variable('prefix')
|
|
|
|
cairo_docpath = join_paths(cairo_prefix, 'share', 'gtk-doc', 'html', 'cairo')
|
2017-04-19 10:35:45 +00:00
|
|
|
|
2019-05-25 16:27:32 +00:00
|
|
|
gdkpixbuf_prefix = dependency('gdk-pixbuf-2.0').get_pkgconfig_variable('prefix')
|
|
|
|
gdkpixbuf_docpath = join_paths(gdkpixbuf_prefix, 'share', 'gtk-doc', 'html', 'gdk-pixbuf')
|
2017-04-19 10:35:45 +00:00
|
|
|
|
2019-05-25 16:27:32 +00:00
|
|
|
docpath = join_paths(gtk_datadir, 'gtk-doc', 'html')
|
2017-04-19 10:35:45 +00:00
|
|
|
|
2019-05-25 16:27:32 +00:00
|
|
|
version_conf = configuration_data()
|
|
|
|
version_conf.set('GTK_VERSION', meson.project_version())
|
2017-04-19 10:35:45 +00:00
|
|
|
|
2019-05-25 16:27:32 +00:00
|
|
|
src_dir_conf = configuration_data()
|
|
|
|
src_dir_conf.set('SRC_DIR', meson.source_root())
|
|
|
|
endif
|
2018-09-17 08:07:43 +00:00
|
|
|
|
2017-04-19 10:35:45 +00:00
|
|
|
subdir('gdk')
|
|
|
|
subdir('gsk')
|
|
|
|
subdir('gtk')
|