meson: move custom_subproject definition for gst-full
authorStéphane Cerveau <scerveau@collabora.com>
Wed, 15 Jul 2020 13:46:49 +0000 (15:46 +0200)
committerStéphane Cerveau <scerveau@collabora.com>
Mon, 12 Oct 2020 08:27:55 +0000 (10:27 +0200)
In order to let any subproject to use gstreamer-full
declare the subprojects after gstreamer-full definition.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/203>

meson.build

index 99ce972..bafeea9 100644 (file)
@@ -158,14 +158,6 @@ plugins_doc_dep = custom_target('plugins-doc-cache',
   capture: true,
 )
 
-foreach custom_subproj: get_option('custom_subprojects').split(',')
-    if custom_subproj != ''
-        message ('Adding custom subproject ' + custom_subproj)
-        subproject(custom_subproj)
-        subprojects_names += [custom_subproj]
-    endif
-endforeach
-
 if meson.is_cross_build() or build_machine.system() == 'windows'
     if get_option('doc').enabled()
         error('Documentation enabled but building the doc while cross building or building on windows is not supported yet.')
@@ -324,6 +316,14 @@ if get_option('default_library') == 'static'
     subdirs : 'gstreamer-1.0')
 endif
 
+foreach custom_subproj: get_option('custom_subprojects').split(',')
+    if custom_subproj != ''
+        message ('Adding custom subproject ' + custom_subproj)
+        subproject(custom_subproj)
+        subprojects_names += [custom_subproj]
+    endif
+endforeach
+
 message('Building subprojects: ' + ', '.join(subprojects_names))
 setenv = find_program('gst-env.py')