gst-plugins-base : Add missing definition for pkg-config 31/270531/1
authorGilbok Lee <gilbok.lee@samsung.com>
Fri, 4 Feb 2022 07:34:03 +0000 (16:34 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Fri, 4 Feb 2022 07:34:26 +0000 (16:34 +0900)
Change-Id: Ia99e541c280e81e400b39b17d5cc0dd46d90e8dc

subprojects/gst-plugins-base/gst-libs/gst/allocators/meson.build
subprojects/gst-plugins-base/gst/videoconvert/meson.build

index ce73e64..50b4d91 100644 (file)
@@ -1,3 +1,5 @@
+gst_allocators_extra_defs = []
+
 gst_allocators_headers = files([
   'allocators.h',
   'allocators-prelude.h',
@@ -11,6 +13,7 @@ if tbm_dep.found()
   'gsttizenmemory.h',
   'gsttizenbufferpool.h',
   ])
+  gst_allocators_extra_defs += ['-DUSE_TBM']
 endif
 install_headers(gst_allocators_headers, subdir : 'gstreamer-1.0/gst/allocators/')
 
@@ -35,6 +38,7 @@ pkgconfig.generate(gstallocators,
   libraries : [gst_dep],
   variables : pkgconfig_variables,
   subdirs : pkgconfig_subdirs,
+  extra_cflags : gst_allocators_extra_defs,
   name : pkg_name,
   description : 'Allocators implementation',
 )
@@ -53,7 +57,7 @@ if build_gir
     'includes' : ['Gst-1.0'],
     'install' : true,
     'extra_args' : gst_gir_extra_args,
-    'dependencies' : [gst_dep]
+    'dependencies' : [gst_dep, video_dep, tbm_dep]
   }
   library_def += {'gir': [gir]}
   if not static_build
index 4943533..f8c04d7 100644 (file)
@@ -1,7 +1,13 @@
+vconvert_extra_defs = []
+
 vconvert_sources = [
   'gstvideoconvert.c',
 ]
 
+if tbm_dep.found()
+  vconvert_extra_defs += ['-DUSE_TBM']
+endif
+
 gstvideoconvert = library('gstvideoconvert',
   vconvert_sources,
   c_args : gst_plugins_base_args,
@@ -10,5 +16,6 @@ gstvideoconvert = library('gstvideoconvert',
   install : true,
   install_dir : plugins_install_dir,
 )
-pkgconfig.generate(gstvideoconvert, install_dir : plugins_pkgconfig_install_dir)
+pkgconfig.generate(gstvideoconvert, install_dir : plugins_pkgconfig_install_dir,
+  extra_cflags : vconvert_extra_defs)
 plugins += [gstvideoconvert]