private_libvips_headers = [ 'include/vips/almostdeprecated.h', 'include/vips/deprecated.h', 'include/vips/vips7compat.h', 'include/vips/dispatch.h', 'include/vips/enumtypes.h', 'include/vips/internal.h', 'include/vips/thread.h', 'include/vips/intl.h', 'include/vips/format.h', 'include/vips/mask.h', 'include/vips/private.h', 'include/vips/video.h', # ignore all .h files in libvips/*, these are internal 'arithmetic/binary.h', 'arithmetic/hough.h', 'arithmetic/nary.h', 'arithmetic/parithmetic.h', 'arithmetic/statistic.h', 'arithmetic/unary.h', 'arithmetic/unaryconst.h', 'colour/pcolour.h', 'colour/profiles.h', 'conversion/bandary.h', 'conversion/pconversion.h', 'convolution/correlation.h', 'convolution/pconvolution.h', 'create/pcreate.h', 'create/pmask.h', 'create/point.h', 'draw/drawink.h', 'draw/pdraw.h', 'foreign/dbh.h', 'foreign/jpeg.h', 'foreign/magick.h', 'foreign/pforeign.h', 'foreign/quantise.h', 'foreign/tiff.h', 'foreign/libnsgif/lzw.h', 'foreign/libnsgif/nsgif.h', 'foreign/libnsgif/test/cli.h', 'freqfilt/pfreqfilt.h', 'histogram/hist_unary.h', 'histogram/phistogram.h', 'iofuncs/sink.h', 'iofuncs/vipsmarshal.h', 'morphology/pmorphology.h', 'mosaicing/global_balance.h', 'mosaicing/pmosaicing.h', 'resample/presample.h', 'resample/templates.h' ] private_headers = [] foreach private_libvips_header : private_libvips_headers private_headers += [join_paths(meson.project_source_root(), 'libvips', private_libvips_header)] endforeach markdown_content_files = files( 'How-it-works.md', 'libvips-from-C++.md', 'Using-vipsthumbnail.md', 'How-it-opens-files.md', 'Examples.md', 'Cite.md', 'binding.md', 'Making-image-pyramids.md', ) pandoc = find_program('pandoc', required: false) if pandoc.found() # we have some files in markdown ... convert to docbook for gtk-doc gen = generator(pandoc, output: '@BASENAME@.xml', arguments: [ '@INPUT@', '--template=@0@'.format(join_paths(meson.current_source_dir(), 'pandoc-docbook-template.docbook')), '--wrap=none', '-V', 'title=@BASENAME@', '-f', 'markdown+smart', '-t', 'docbook', '-o', '@OUTPUT@', ] ) markdown_content_files_generated = gen.process(markdown_content_files) # pandoc makes section headers, we want refsect3 for gtk-doc markdown_content_files_docbook = custom_target('gen-docs', output: 'generated', input: markdown_content_files_generated, command: [ 'sed', '-i', '-e', 's|