audio: Merge simd libs into the main one
authorOlivier CrĂȘte <olivier.crete@collabora.com>
Thu, 16 Apr 2020 03:41:52 +0000 (23:41 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 13 Oct 2021 01:28:16 +0000 (01:28 +0000)
Actually extract the .o objects from the convience libraries and put
them into the main one. Without this, they will just be referenced by
the .pc file, but it will be unusable because they are not installed.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1122>

subprojects/gst-plugins-base/gst-libs/gst/audio/meson.build

index dcc79ec..b853ba6 100644 (file)
@@ -97,7 +97,7 @@ else
 endif
 
 simd_cargs = []
-simd_dependencies = []
+simd_objects = []
 
 if have_sse
   audio_resampler_sse = static_library('audio_resampler_sse',
@@ -109,7 +109,7 @@ if have_sse
     install : false
   )
   simd_cargs += ['-DHAVE_SSE']
-  simd_dependencies += audio_resampler_sse
+  simd_objects += audio_resampler_sse.extract_all_objects()
 endif
 
 if have_sse2
@@ -123,7 +123,7 @@ if have_sse2
   )
 
   simd_cargs += ['-DHAVE_SSE2']
-  simd_dependencies += audio_resampler_sse2
+  simd_objects += audio_resampler_sse2.extract_all_objects()
 endif
 
 if have_sse41
@@ -137,14 +137,14 @@ if have_sse41
   )
 
   simd_cargs += ['-DHAVE_SSE41']
-  simd_dependencies += audio_resampler_sse41
+  simd_objects += audio_resampler_sse41.extract_all_objects()
 endif
 
 gstaudio = library('gstaudio-@0@'.format(api_version),
   audio_src, gstaudio_h, gstaudio_c, orc_c, orc_h,
   c_args : gst_plugins_base_args + simd_cargs + ['-DBUILDING_GST_AUDIO'],
   include_directories: [configinc, libsinc],
-  link_with : simd_dependencies,
+  objects : simd_objects,
   version : libversion,
   soversion : soversion,
   darwin_versions : osxversion,