Fix build error with TV profile
authorSangjin, Sim <sangjin0924.sim@samsung.com>
Tue, 27 Jun 2017 04:55:52 +0000 (13:55 +0900)
committerSangjin, Sim <sangjin0924.sim@samsung.com>
Tue, 27 Jun 2017 08:18:04 +0000 (17:18 +0900)
Signed-off-by: Sangjin, Sim <sangjin0924.sim@samsung.com>
Change-Id: I4e1010d5577ceb50df55b09940eed2401ad14f53
Signed-off-by: Sangjin, Sim <sangjin0924.sim@samsung.com>
Makefile.am
configure.ac
packaging/gst-plugins-base.spec

index 70e4499..3e22b05 100644 (file)
@@ -6,7 +6,11 @@ else
 SUBDIRS_EXT =
 endif
 
+if HAVE_TV_PRODUCT
+SUBDIRS_TOOLS =
+else
 SUBDIRS_TOOLS = tools
+endif
 
 SUBDIRS =                      \
        pkgconfig               \
index bd82923..02c13ae 100644 (file)
@@ -167,6 +167,17 @@ AC_ARG_ENABLE(tbmbuf, AC_HELP_STRING([--enable-use-tbmbuf], [use tbm buf]),
         [BOARD_USE_TBM_BUF=yes])
 AM_CONDITIONAL([BOARD_USE_TBM_BUF], [test "x$BOARD_USE_TBM_BUF" = "xyes"])
 
+dnl Check for tv-product
+AC_ARG_ENABLE(tv, AC_HELP_STRING([--enable-tv], [use tv]),
+        [
+          case "${enableval}" in
+           yes) HAVE_TV_PRODUCT=yes ;;
+           no)  HAVE_TV_PRODUCT=no ;;
+           *)   AC_MSG_ERROR(bad value ${enableval} for --enable-tv) ;;
+          esac
+        ],)
+AM_CONDITIONAL([HAVE_TV_PRODUCT], [test "x$HAVE_TV_PRODUCT" = "xyes"])
+
 dnl check for gobject-introspection
 GOBJECT_INTROSPECTION_CHECK([1.31.1])
 
index aad3285..fa6667a 100755 (executable)
@@ -17,7 +17,9 @@ BuildRequires:  pkgconfig(glib-2.0) >= 2.32
 BuildRequires:  pkgconfig(gstreamer-1.0)
 BuildRequires:  orc >= 0.4.16
 BuildRequires:  python
+%if "%{TIZEN_PRODUCT_TV}" != "1"
 BuildRequires:  update-desktop-files
+%endif
 BuildRequires:  pkgconfig(gobject-introspection-1.0) >= 1.31.1
 BuildRequires:  pkgconfig(alsa) >= 0.9.1
 BuildRequires:  pkgconfig(freetype2) >= 2.0.9