From a7fd2762a6adc1da26c18c620ce066573f42f39d Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Mon, 13 Sep 2021 18:33:01 -0300 Subject: [PATCH] ges:build: Disable python modules when statically building Introspection fails otherwise Part-of: --- subprojects/gst-editing-services/docs/meson.build | 11 ++++++++++- subprojects/gst-editing-services/meson.build | 10 ++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/subprojects/gst-editing-services/docs/meson.build b/subprojects/gst-editing-services/docs/meson.build index e8ff054bd6..baa4eee2ec 100644 --- a/subprojects/gst-editing-services/docs/meson.build +++ b/subprojects/gst-editing-services/docs/meson.build @@ -58,7 +58,16 @@ foreach extension: required_hotdoc_extensions endif endforeach -if not build_gir or static_build +if static_build + if get_option('doc').enabled() + error('Documentation enabled but not supported when building statically.') + endif + + message('Building statically, can\'t build the documentation') + subdir_done() +endif + +if not build_gir if get_option('doc').enabled() error('Documentation enabled but introspection not built.') endif diff --git a/subprojects/gst-editing-services/meson.build b/subprojects/gst-editing-services/meson.build index 583af26afd..054751ba81 100644 --- a/subprojects/gst-editing-services/meson.build +++ b/subprojects/gst-editing-services/meson.build @@ -139,7 +139,14 @@ gir_init_section = [ '--add-init-section=' + \ 'ges_init();', '--quiet'] has_python = false -if build_gir +static_build = get_option('default_library') == 'static' +if static_build + if get_option('python').enabled() + error('Want to build python based modules but it is not supported while static building') + else + message('Disabling python support as it is not supported on static builds') + endif +elif build_gir pymod = import('python') python = pymod.find_installation(required: get_option('python')) if python.found() @@ -254,7 +261,6 @@ pkgconfig = import('pkgconfig') pkgconfig_subdirs = ['gstreamer-1.0'] configinc = include_directories('.') -static_build = get_option('default_library') == 'static' libraries = [] subdir('ges')