Add the necessary cflags in gstreamer-1.0 pkgconfig 48/274348/2
authorGilbok Lee <gilbok.lee@samsung.com>
Wed, 27 Apr 2022 01:56:40 +0000 (10:56 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Wed, 27 Apr 2022 02:04:18 +0000 (11:04 +0900)
- missing related definition of tv-profile on gstreamer-1.0 pkgconfig

[Version] 1.20.0-20
[Issue Type] Fix bugs

Change-Id: I2423ea108b4c6b2b06a253db1387cf064ffd1752

packaging/gstreamer.spec
subprojects/gstreamer/gst/meson.build

index 5f135a2..1c0a79b 100644 (file)
@@ -60,7 +60,7 @@
 
 Name:           %{_name}
 Version:        1.20.0
-Release:        20
+Release:        21
 Summary:        Streaming-Media Framework Runtime
 License:        LGPL-2.0+
 Group:          Multimedia/Framework
index 3a932ba..e41a437 100644 (file)
@@ -250,6 +250,12 @@ libgst = library('gstreamer-1.0', gst_sources,
                    + platform_deps,
 )
 
+
+gstreamer_extra_args += ['-DTIZEN_FEATURE_DISABLE_DEPRECATED_DECLARATION]
+if get_option('tv-profile')
+  gstreamer_extra_args += ['-DTIZEN_PROFILE_TV', '-DTIZEN_FEATURE_TRUSTZONE']
+endif
+
 pkg_name = 'gstreamer-1.0'
 library_def = {'lib': libgst}
 pkgconfig.generate(libgst,
@@ -257,7 +263,7 @@ pkgconfig.generate(libgst,
   variables : pkgconfig_variables,
   uninstalled_variables: pkgconfig_uninstalled_variables,
   subdirs : pkgconfig_subdirs,
-  extra_cflags : ['-DTIZEN_FEATURE_DISABLE_DEPRECATED_DECLARATION'],
+  extra_cflags : gstreamer_extra_args,
   name : pkg_name,
   description : 'Streaming media framework',
 )