gst-rtsp-server: Add build option 63/275863/1 accepted/tizen/unified/20220608.140019 submit/tizen/20220607.095434
authorHyunsoo Park <hance.park@samsung.com>
Fri, 3 Jun 2022 07:38:59 +0000 (16:38 +0900)
committerHyunsoo Park <hance.park@samsung.com>
Fri, 3 Jun 2022 07:44:18 +0000 (16:44 +0900)
[Version] 1.20.0-28
[Issue Type] Add option

 - Add tv profile option for branching TV dependent logic.

Change-Id: I9843cca6765b08ce405e9b3d757c4d8a15c5ad8b
Signed-off-by: Hyunsoo Park <hance.park@samsung.com>
packaging/gstreamer.spec
subprojects/gst-rtsp-server/meson.build
subprojects/gst-rtsp-server/meson_options.txt

index 293b2ff32598430a13dd4ec753a8b7f1a9fe1865..c0492f4aa77bb7c0b7be281daa5a713d335ce912 100644 (file)
@@ -60,7 +60,7 @@
 
 Name:           %{_name}
 Version:        1.20.0
-Release:        27
+Release:        28
 Summary:        Streaming-Media Framework Runtime
 License:        LGPL-2.0+
 Group:          Multimedia/Framework
@@ -710,6 +710,9 @@ meson --auto-features=disabled --prefix=/usr --libdir=%{_libdir} --datadir=%{_da
   %endif # profile
 %endif # plugin
 %if "%{plugin}" == "all" || "%{plugin}" == "rs"
+  %if "%{tizen_profile_name}" == "tv"
+    -D %{_rs_opt}tv-profile=true \
+  %endif # profile
   -D %{_rs_opt}rtspclientsink=enabled \
   -D %{_rs_opt}introspection=disabled \
 %endif
index 35953af72c06837a352395c7315bda94ec344b83..d335a4a5a83fedbfc3c466ab8981d7926bce3999 100644 (file)
@@ -159,6 +159,12 @@ if host_machine.system() != 'windows'
     fallback : ['gstreamer', 'gst_check_dep'])
 endif
 
+# TIZEN BUILD OPTION
+if get_option('tv-profile')
+  cdata.set('TIZEN_PROFILE_TV', true)
+endif
+# TIZEN_BUILD_OPTION end
+
 # Disable compiler warnings for unused variables and args if gst debug system is disabled
 if gst_dep.type_name() == 'internal'
   gst_debug_disabled = not subproject('gstreamer').get_variable('gst_debug')
index 5ff326bdee2f85fe4749ad6062d0a77aae447aeb..8cfd33ae7c02fe03b33bf093e99095ea02c86c7a 100644 (file)
@@ -23,3 +23,7 @@ option('package-origin', type : 'string',
        description : 'package origin URL to use in plugins')
 option('doc', type : 'feature', value : 'auto', yield: true,
        description: 'Enable documentation.')
+
+# Tizen Options
+option('tv-profile', type : 'boolean', value : false,
+       description : 'tv-profile')
\ No newline at end of file