apply meson option and fix build error 98/269298/3
authorEunhye Choi <eunhae1.choi@samsung.com>
Wed, 12 Jan 2022 20:57:38 +0000 (05:57 +0900)
committerEunhye Choi <eunhae1.choi@samsung.com>
Thu, 13 Jan 2022 09:31:22 +0000 (18:31 +0900)
- apply meson option
- fix packaging error
- .gbs.conf will be applied after

Change-Id: Ic53c05c010f88e43500fbd09334f0d12f1a38aa5

.gbs.conf [deleted file]
gst/meson.build
meson.build
meson_options.txt
packaging/common.tar.gz [deleted file]
packaging/gstreamer.manifest [new file with mode: 0644]
packaging/gstreamer.spec

diff --git a/.gbs.conf b/.gbs.conf
deleted file mode 100644 (file)
index 8d1776a..0000000
--- a/.gbs.conf
+++ /dev/null
@@ -1,3 +0,0 @@
-[general]
-upstream_branch = upstream/1.16
-upstream_tag = ${upstreamversion}
index c70998c..7c01950 100644 (file)
@@ -246,7 +246,7 @@ libgst = library('gstreamer-1.0', gst_sources,
     # HACK, change include paths in .y and .l in final version.
     include_directories('parse')],
   install : true,
-  dependencies : [gobject_dep, gmodule_dep, glib_dep, mathlib, dl_dep] + backtrace_deps
+  dependencies : [gobject_dep, gmodule_dep, glib_dep, mathlib, dl_dep, dlog_dep] + backtrace_deps
                    + platform_deps,
 )
 
index bed8c4e..34e48d2 100644 (file)
@@ -562,6 +562,20 @@ if bashcomp_dep.found()
   endif
 endif
 
+# TIZEN BUILD OPTION
+
+dlog_dep = dependency('dlog', required : get_option('dlog'))
+if dlog_dep.found()
+  cdata.set('TIZEN_DLOG', 1)
+endif
+
+tv_dep = dependency('tv-profile', required : get_option('tv-profile'))
+if tv_dep.found()
+  cdata.set('TIZEN_TV_PROFILE', 1)
+endif
+
+# TIZEN BUILD OPTION end
+
 plugins_install_dir = join_paths(get_option('libdir'), 'gstreamer-1.0')
 
 pkgconfig = import('pkgconfig')
index 7363bdb..ab9c7bd 100644 (file)
@@ -46,3 +46,9 @@ option('package-origin', type : 'string', value : 'Unknown package origin', yiel
        description : 'package origin URL to use in plugins')
 option('doc', type : 'feature', value : 'auto', yield: true,
        description: 'Enable documentation.')
+
+# Tizen options
+option('dlog', type : 'boolean', value : true,
+       description : 'dlog')
+option('tv-profile', type : 'boolean', value : false,
+       description : 'tv-profile')
\ No newline at end of file
diff --git a/packaging/common.tar.gz b/packaging/common.tar.gz
deleted file mode 100644 (file)
index 927d320..0000000
Binary files a/packaging/common.tar.gz and /dev/null differ
diff --git a/packaging/gstreamer.manifest b/packaging/gstreamer.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
index 39e489c..2fe94c8 100644 (file)
@@ -8,7 +8,7 @@ License:        LGPL-2.0+
 Group:          Multimedia/Framework
 Url:            http://gstreamer.freedesktop.org/
 Source0:        http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-%{version}.tar.xz
-Source100:      common.tar.gz
+Source1001:     gstreamer.manifest
 BuildRequires:  meson >= 0.48.0
 BuildRequires:  bison
 BuildRequires:  gettext-tools
@@ -59,7 +59,7 @@ to develop applications that require these.
 
 %prep
 %setup -q -n gstreamer-%{version}
-%setup -q -T -D -a 100
+cp %{SOURCE1001} .
 
 %build
 export CFLAGS="%{optflags} \
@@ -90,6 +90,9 @@ export CFLAGS="%{optflags} \
   -D examples=disabled \
   -D tests=disabled \
   -D doc=disabled \
+%if "%{tizen_profile_name}" == "tv"
+  -D tv-profile=true \
+%endif
   -D ptp-helper-permissions=none
 
 %meson_build
@@ -103,6 +106,7 @@ mv %{name}-%{gst_branch}.lang %{name}.lang
 rm -rf %{buildroot}%{_datadir}/gtk-doc
 rm -rf %{buildroot}%{_docdir}/%{name}/manual
 rm -rf %{buildroot}%{_docdir}/%{name}/pwg
+rm -rf %{buildroot}%{_libexecdir}/gstreamer-%{gst_branch}/gst-plugins-doc-cache-generator
 mkdir -p %{buildroot}%{_datadir}/gstreamer-%{gst_branch}/presets
 %fdupes %{buildroot}
 
@@ -121,6 +125,7 @@ mkdir -p %{buildroot}%{_datadir}/gstreamer-%{gst_branch}/presets
 %{_libdir}/gstreamer-%{gst_branch}/*.so
 %dir %{_libexecdir}/gstreamer-%{gst_branch}
 %{_libexecdir}/gstreamer-%{gst_branch}/gst-plugin-scanner
+%{_libexecdir}/gstreamer-%{gst_branch}/gst-hotdoc-plugins-scanner
 %{_libexecdir}/gstreamer-%{gst_branch}/gst-ptp-helper
 %{_libdir}/*.so.*
 %{_libdir}/girepository-1.0/Gst-1.0.typelib