X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=subprojects%2Fgst-docs%2Fmeson.build;h=3f7087a27976d846397fb890b53d261ab31ef3af;hb=bf6ce1d64a0697e7910826147b48f8f658366a5a;hp=06e0cdf0fca419b043d0b686c2a7436a51b466f4;hpb=a7f54159b724d4966686c84a1f93688ef157e3f2;p=platform%2Fupstream%2Fgstreamer.git diff --git a/subprojects/gst-docs/meson.build b/subprojects/gst-docs/meson.build index 06e0cdf..3f7087a 100644 --- a/subprojects/gst-docs/meson.build +++ b/subprojects/gst-docs/meson.build @@ -1,6 +1,6 @@ project('GStreamer manuals and tutorials', 'c', - version: '1.19.2', - meson_version : '>= 0.54') + version: '1.22.5', + meson_version : '>= 0.62') hotdoc_p = find_program('hotdoc') if not hotdoc_p.found() @@ -9,7 +9,7 @@ if not hotdoc_p.found() endif hotdoc_req = '>= 0.12.2' -hotdoc_version = run_command(hotdoc_p, '--version').stdout() +hotdoc_version = run_command(hotdoc_p, '--version', check: false).stdout() if not hotdoc_version.version_compare(hotdoc_req) error('Hotdoc version @0@ not found, got @1@'.format(hotdoc_req, hotdoc_version)) endif @@ -44,11 +44,12 @@ with open(fname, 'r') as f: # gst-build will generate this file for us to consume so that subproject # changes can still work - fname = join_paths(meson.build_root(), 'GstDocumentedSubprojects') + fname = join_paths(meson.project_build_root(), '..', '..', 'GstDocumentedSubprojects') cmdres = run_command( python3, '-c', read_file_contents, fname, + check: false, ) if cmdres.returncode() == 0 built_subprojects = cmdres.stdout().strip() @@ -66,13 +67,13 @@ if built_subprojects != '' if sub.get_variable('build_hotdoc') message('Building @0@ documentation'.format(project_name)) - foreach lib: sub.get_variable('libs_doc') + foreach lib: sub.get_variable('libs_doc', []) hotdoc_subprojects += [lib] libs += lib.full_path() + pathsep deps += [lib] endforeach - foreach plugin_doc: sub.get_variable('plugins_doc') + foreach plugin_doc: sub.get_variable('plugins_doc', []) plugins_doc += plugin_doc.full_path() + pathsep hotdoc_subprojects += [plugin_doc] deps += [plugin_doc] @@ -123,8 +124,13 @@ gstreamer_doc = hotdoc.generate_doc('GStreamer', build_always_stale: true, edit_on_github_repository: 'https://gitlab.freedesktop.org/gstreamer/gst-docs/', previous_symbol_index: join_paths(meson.current_source_dir(), 'symbols', 'symbol_index.json'), + fatal_warnings: get_option('fatal_warnings') ) +# For devhelp +meson.add_devenv({'XDG_DATA_DIRS': meson.current_build_dir() / 'GStreamer-doc'}, + method: 'prepend') + cdata = configuration_data() cdata.set('GST_API_VERSION', apiversion) readme = configure_file(input: 'scripts/RELEASE_README.md', @@ -138,3 +144,5 @@ run_target('release', meson.current_build_dir()], depends: [gstreamer_doc] ) + +meson.add_dist_script('scripts/gen-changelog.py', meson.project_name(), '1.20.0', meson.project_version())