Fix build error in tv profile 44/272444/3 accepted/tizen/unified/20220323.062839 submit/tizen/20220318.052318
authorGilbok Lee <gilbok.lee@samsung.com>
Thu, 17 Mar 2022 00:35:28 +0000 (09:35 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Thu, 17 Mar 2022 05:16:28 +0000 (14:16 +0900)
- Add the necessary cflags in pkgconfig
- Add missed build define

[Version] 1.20.0-10
[Issue Type] Bug fix

Change-Id: Id86be2511a21c711e55ca2636d12625871b24d4a

packaging/gstreamer.spec
subprojects/gst-plugins-bad/gst-libs/gst/meson.build
subprojects/gst-plugins-bad/meson.build
subprojects/gst-plugins-base/gst-libs/gst/video/meson.build
subprojects/gst-plugins-base/meson.build
subprojects/gst-plugins-good/meson.build
subprojects/gst-plugins-good/meson_options.txt
subprojects/gst-plugins-ugly/meson.build
subprojects/gstreamer/gst/gstquery.h
subprojects/gstreamer/libs/gst/base/meson.build

index 9d9e7b9..4c02214 100644 (file)
@@ -59,7 +59,7 @@
 
 Name:           %{_name}
 Version:        1.20.0
-Release:        9
+Release:        10
 Summary:        Streaming-Media Framework Runtime
 License:        LGPL-2.0+
 Group:          Multimedia/Framework
index 77dadcf..8d0f416 100644 (file)
@@ -1,22 +1,24 @@
-subdir('uridownloader')
+subdir('codecparsers')
+subdir('mpegts')
+subdir('codecs')
+subdir('sctp')
+subdir('transcoder')
+subdir('wayland')
+subdir('webrtc')
 
+if not (get_option('tv-profile'))
+subdir('uridownloader')
 subdir('adaptivedemux')
 subdir('audio')
 subdir('basecamerabinsrc')
-subdir('codecparsers')
-subdir('codecs')
 subdir('d3d11')
 subdir('insertbin')
 subdir('interfaces')
 subdir('isoff')
-subdir('mpegts')
 subdir('opencv')
 subdir('play')
 subdir('player')
-subdir('sctp')
-subdir('transcoder')
 subdir('va')
 subdir('vulkan')
-subdir('wayland')
-subdir('webrtc')
 subdir('winrt')
+endif
index 3b72173..1fb32df 100644 (file)
@@ -455,6 +455,15 @@ cdata.set('TIZEN_FEATURE_HLSDEMUX_DISCONT', true)
 cdata.set('TIZEN_FEATURE_WEBRTC_MODIFICATION', true)
 cdata.set('TIZEN_FEATURE_WEBRTC_IMPORT_NETSIM', true)
 cdata.set('TIZEN_FEATURE_PITCH_AUDIO_META', true)
+if get_option('tv-profile')
+  cdata.set('TIZEN_PROFILE_TV', true)
+  cdata.set('TIZEN_FEATURE_TRUSTZONE', true)
+endif
+
+# TIZEN_GLOBAL_BUILD_OPTION
+cdata.set('TIZEN_FEATURE_BASEPARSE_MODIFICATION', true)
+cdata.set('TIZEN_FEATURE_WAYLAND_ENHANCEMENT', true)
+cdata.set('USE_TBM', true)
 
 # For plugins from libnice
 libnice_dep = dependency('nice', version : '>=0.1.17', required : get_option('nice'))
index 1389b2b..b4eecef 100644 (file)
@@ -147,13 +147,18 @@ gstvideo = library('gstvideo-@0@'.format(api_version),
   dependencies : gstvideo_deps,
 )
 
+extra_defs = ['-DTIZEN_FEATURE_WAYLAND_ENHANCEMENT']
+if get_option('tv-profile')
+  extra_defs += ['-DTIZEN_PROFILE_TV']
+endif
+
 library_def = {'lib': gstvideo}
 pkg_name = 'gstreamer-video-1.0'
 pkgconfig.generate(gstvideo,
   libraries : [gst_dep, gst_base_dep],
   variables : pkgconfig_variables,
   subdirs : pkgconfig_subdirs,
-  extra_cflags : ['-DTIZEN_FEATURE_WAYLAND_ENHANCEMENT'],
+  extra_cflags : extra_defs,
   name : pkg_name,
   description : 'Video base classes and helper functions',
 )
index b353647..fe9bb0f 100644 (file)
@@ -402,6 +402,9 @@ else
   core_conf.set('TIZEN_FEATURE_RESOURCE_MANAGER', true)
 endif
 
+# TIZEN_GLOBAL_BUILD_OPTION
+core_conf.set('TIZEN_FEATURE_BASEPARSE_MODIFICATION', true)
+
 # TIZEN_BUILD_OPTION end
 
 # Used to build SSE* things in audio-resampler
index 8f748f3..2458c6e 100644 (file)
@@ -451,6 +451,15 @@ cdata.set('TIZEN_FEATURE_V4L2_SKIP_ADD_COLORSPACE', true)
 cdata.set('TIZEN_FEATURE_GST_MUX_ENHANCEMENT', true)
 cdata.set('TIZEN_FEATURE_V4L2_DISABLE_COLORIMETRY', true)
 
+if get_option('tv-profile')
+  cdata.set('TIZEN_PROFILE_TV', true)
+  cdata.set('TIZEN_FEATURE_TRUSTZONE', true)
+endif
+
+# TIZEN_GLOBAL_BUILD_OPTION
+cdata.set('TIZEN_FEATURE_BASEPARSE_MODIFICATION', true)
+cdata.set('TIZEN_FEATURE_WAYLAND_ENHANCEMENT', true)
+
 gio_dep = dependency('gio-2.0')
 
 # TIZEN_BUILD_OPTION end
index eb1e945..3c9e6db 100644 (file)
@@ -115,3 +115,5 @@ option('doc', type : 'feature', value : 'auto', yield: true,
 # Tizen Options
 option('tbm', type : 'boolean', value : true,
        description : 'tizen buffer manager')
+option('tv-profile', type : 'boolean', value : false,
+       description : 'tv-profile')
index a98be6a..864deae 100644 (file)
@@ -182,6 +182,11 @@ endif
 cdata.set('TIZEN_FEATURE_ASFDEMUX_CHECK_DATA_SIZE', true)
 cdata.set('TIZEN_FEATURE_ASFDEMUX_DISABLE_UNSUPPORTED_FORMAT', true)
 cdata.set('TIZEN_FEATURE_ASFDEMUX_POST_TAG_MSG', true)
+
+if get_option('tv-profile')
+  cdata.set('TIZEN_PROFILE_TV', true)
+  cdata.set('TIZEN_FEATURE_TRUSTZONE', true)
+endif
 # TIZEN_BUILD_OPTION end
 
 ugly_args = ['-DHAVE_CONFIG_H']
@@ -197,15 +202,6 @@ else
   gst_debug_disabled = cc.has_header_symbol('gst/gstconfig.h', 'GST_DISABLE_GST_DEBUG', dependencies: gst_dep)
 endif
 
-# TIZEN_OPTION
-
-if get_option('tv-profile')
-  core_conf.set('TIZEN_PROFILE_TV', true)
-  core_conf.set('TIZEN_FEATURE_TRUSTZONE', true)
-endif
-
-# TIZEN_OPTION end
-
 if gst_debug_disabled
   message('GStreamer debug system is disabled')
   if cc.has_argument('-Wno-unused')
index 5d5460b..03409e7 100644 (file)
@@ -127,7 +127,7 @@ typedef enum {
   GST_QUERY_CONTEXT      = GST_QUERY_MAKE_TYPE (190, _FLAG(BOTH)),
   GST_QUERY_BITRATE      = GST_QUERY_MAKE_TYPE (200, _FLAG(DOWNSTREAM)),
 #ifdef TIZEN_PROFILE_TV
-  GST_QUERY_RESOURCE     = GST_QUERY_MAKE_TYPE (210, FLAG (BOTH)), /*< skip >*/
+  GST_QUERY_RESOURCE     = GST_QUERY_MAKE_TYPE (210, _FLAG (BOTH)), /*< skip >*/
 #endif
 } GstQueryType;
 #undef _FLAG
index 04ebd52..52eb688 100644 (file)
@@ -1,3 +1,5 @@
+extra_defs = []
+
 gst_base_sources = files(
   'gstadapter.c',
   'gstaggregator.c',
@@ -49,6 +51,11 @@ gst_base = library('gstbase-@0@'.format(apiversion),
   dependencies : [gobject_dep, glib_dep, gst_dep],
 )
 
+extra_defs += ['-DTIZEN_FEATURE_BASEPARSE_MODIFICATION']
+if get_option('tv-profile')
+  extra_defs += ['-DTIZEN_PROFILE_TV', '-DTIZEN_FEATURE_TRUSTZONE']
+endif
+
 library_def = {'lib': gst_base}
 pkg_name = 'gstreamer-base-1.0'
 gst_base_gen_sources = []
@@ -56,6 +63,7 @@ pkgconfig.generate(gst_base,
   libraries : [libgst],
   variables : pkgconfig_variables,
   subdirs : pkgconfig_subdirs,
+  extra_cflags : extra_defs,
   name : pkg_name,
   description : 'Base classes for GStreamer elements',
 )