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 9d9e7b9b186067f7d77970c31fa5e3cec8caa168..4c02214e89c79348616545d9677b6e00f9f512ed 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 77dadcf09c8cfb9933e011a9fea053e6fa5ffb3c..8d0f4160e01d359fbd4cb627a0c69f092de9cb56 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 3b72173caf05913af0a1d19016346ee545dced8a..1fb32df8473843bd6bc4cf7b787be9f689829256 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 1389b2ba4d39943494adf2476f7103d08e94e755..b4eecef4f2b84905bb1252c6c50c4f1831198589 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 b3536475e588e0adb9a8dea7c34f237c9ee48c5b..fe9bb0f1b1c91afdd446fcb2e1d28d1e40f27468 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 8f748f3d46bf5507f1ebe439eadf7752381ad412..2458c6eb64245fb0bac487f64d8919fd10f573b6 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 eb1e9458a8a5b00d6c44813d3495c1a6dda1c30e..3c9e6db055aa0c7709f52c11f4b91f1f13c21d43 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 a98be6acaaade21c7872b84a2738c9e7b6adcd37..864deae0cdc81e90f87125d1f027d341ce6076e7 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 5d5460b66dd3ba2d24320208202e81e11cb44324..03409e72cffe9e7f602958017eaf5b24d110e1da 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 04ebd5228efbd8d683100291b70011a020325e95..52eb688aad16b7fe1d186dd9eb128c599a8087db 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',
 )