| 1 finch_doc_content_files = [] |
|
| 2 |
|
| 3 if get_option('doc') |
|
| 4 finch_toml = configure_file( |
|
| 5 input : 'finch.toml.in', |
|
| 6 output : 'finch.toml', |
|
| 7 configuration : version_conf, |
|
| 8 install : true, |
|
| 9 install_dir : docs_dir / 'finch', |
|
| 10 ) |
|
| 11 |
|
| 12 finch_doc = custom_target('finch-doc', |
|
| 13 input : [ finch_toml, libfinch_gir[0] ], |
|
| 14 output : 'finch', |
|
| 15 command : [ |
|
| 16 gidocgen, |
|
| 17 'generate', |
|
| 18 '--quiet', |
|
| 19 '--fatal-warnings', |
|
| 20 '--config=@INPUT0@', |
|
| 21 '--output-dir=@OUTPUT@', |
|
| 22 '--no-namespace-dir', |
|
| 23 '--content-dir=@0@'.format(meson.current_source_dir()), |
|
| 24 '--add-include-path=@0@'.format(meson.global_build_root() / 'subprojects/birb/birb'), |
|
| 25 '--add-include-path=@0@'.format(meson.global_build_root() / 'subprojects/gplugin/gplugin'), |
|
| 26 '--add-include-path=@0@'.format(meson.global_build_root() / 'subprojects/libgnt'), |
|
| 27 '--add-include-path=@0@'.format(meson.project_build_root() / 'libpurple'), |
|
| 28 '@INPUT1@' |
|
| 29 ], |
|
| 30 depends: [ libpurple_gir[0] ], |
|
| 31 depend_files : [ finch_doc_content_files ], |
|
| 32 build_by_default : true, |
|
| 33 install : true, |
|
| 34 install_dir : docs_dir, |
|
| 35 ) |
|
| 36 endif |
|
| 37 |
|