Revert "Merge branch 'tizen' into tizen_3.0" 11/102611/1
authorSeokHoon LEE <andy.shlee@samsung.com>
Tue, 6 Dec 2016 07:53:58 +0000 (23:53 -0800)
committerSeokHoon LEE <andy.shlee@samsung.com>
Tue, 6 Dec 2016 07:53:58 +0000 (23:53 -0800)
This reverts commit 573f6d473aa29ded40c85a5de4ec84e4dca592eb.

Change-Id: I6606261097a242573d8736212500fb5ec4d7ece0

configure.ac
packaging/libmm-wfd.spec
src/Makefile.am
src/include/mm_wfd_sink_config.h [deleted file]
src/mm_wfd_sink_config.c [deleted file]
src/mm_wfd_sink_priv.c

index a78a071012b5d405adfc5b7519444274e870af11..8488f12af801e4ee541e7f7d802d0af9fcd77438 100755 (executable)
@@ -93,10 +93,6 @@ PKG_CHECK_MODULES(TZPLATFORM_CONFIG, libtzplatform-config)
 AC_SUBST(TZPLATFORM_CONFIG_CFLAGS)
 AC_SUBST(TZPLATFORM_CONFIG_LIBS)
 
-PKG_CHECK_MODULES(CAPI_SYSTEM_INFO, capi-system-info)
-AC_SUBST(CAPI_SYSTEM_INFO_CFLAGS)
-AC_SUBST(CAPI_SYSTEM_INFO_LIBS)
-
 # for testsuite
 
 AC_ARG_ENABLE(sdk, AC_HELP_STRING([--enable-sdk], [sdk build]),
index edd96cb9f652a0b39b588392d943f079cdd2f8f6..99c41011326bc2c103b8a53956f657e20aa63ec1 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-wfd
 Summary:    Multimedia Framework Wifi-Display Library
-Version:    0.2.213
+Version:    0.2.212
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
@@ -20,20 +20,23 @@ BuildRequires: pkgconfig(evas)
 BuildRequires: pkgconfig(ecore-wayland)
 BuildRequires: pkgconfig(libtbm)
 BuildRequires: pkgconfig(libtzplatform-config)
-BuildRequires: pkgconfig(capi-system-info)
+
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+
 %description
 
 %package devel
 Summary:    Multimedia Framework Wifi-Display Library (DEV)
 Group:      Development/Libraries
 Requires:   %{name} = %{version}-%{release}
+
 %description devel
 
 %package factory
 Summary:    Multimedia Framework Wifi-Display Library (Factory)
 Group:      Development/Libraries
 Requires:   %{name} = %{version}-%{release}
+
 %description factory
 
 %prep
@@ -46,6 +49,9 @@ export CFLAGS+=" -Wwrite-strings -Wswitch-default"
 export CFLAGS+=" -DSYSCONFDIR=\\\"%{_sysconfdir}\\\""
 ./autogen.sh
 
+%if "%{?profile}" == "tv"
+CFLAGS+=" -DUSE_EXTERNAL_WL_DISPLAY_HANDLE"
+%endif
 CFLAGS+=" -DMMFW_DEBUG_MODE -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" "; export CFLAGS
 LDFLAGS+="-Wl,--rpath=%{_prefix}/lib -Wl,--hash-style=both -Wl,--as-needed"; export LDFLAGS
 
@@ -58,7 +64,6 @@ make %{?jobs:-j%jobs}
 
 %install
 rm -rf %{buildroot}
-
 %make_install
 mkdir -p %{buildroot}/%{TZ_SYS_RO_SHARE}/dbus-1/services/
 mkdir -p %{buildroot}/%{_datadir}/license
@@ -83,7 +88,6 @@ rm -rf %{buildroot}
 %defattr(-,root,root,-)
 %{_libdir}/*.so
 %{_includedir}/mmf/mm_wfd_sink.h
-%{_includedir}/mmf/mm_wfd_sink_config.h
 %{_includedir}/mmf/mm_wfd_sink_priv.h
 %{_includedir}/mmf/mm_wfd_sink_dlog.h
 %{_includedir}/mmf/mm_wfd_sink_util.h
index cf6cabd5b3d83514f2cf3fc8aacb95f4bae875bf..ee9c46449062dfa02a7f6408c482d0e55c518bc7 100644 (file)
@@ -4,7 +4,6 @@ includelibmmfwfdsinkdir = $(includedir)/mmf
 
 includelibmmfwfdsink_HEADERS = include/mm_wfd_sink.h \
                                include/mm_wfd_sink_ini.h \
-                               include/mm_wfd_sink_config.h \
                                include/mm_wfd_sink_priv.h \
                                include/mm_wfd_sink_dlog.h \
                                include/mm_wfd_sink_attrs.h \
@@ -16,7 +15,6 @@ libmmfwfdsink_la_SOURCES = mm_wfd_sink_attrs.c \
                                mm_wfd_sink_util.c \
                                mm_wfd_sink.c \
                                mm_wfd_sink_manager.c \
-                               mm_wfd_sink_config.c \
                                mm_wfd_sink_priv.c \
                                mm_wfd_sink_wayland.c
 
@@ -29,7 +27,6 @@ libmmfwfdsink_la_CFLAGS = -I$(srcdir)/include \
                        $(GST_PLUGINS_BASE_CFLAGS) \
                        $(GST_VIDEO_CFLAGS) \
                        $(TZPLATFORM_CONFIG_CFLAGS) \
-                       $(CAPI_SYSTEM_INFO_CFLAGS) \
                        $(AUDIOSESSIONMGR_CFLAGS)
 
 libmmfwfdsink_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
@@ -45,7 +42,6 @@ libmmfwfdsink_la_LIBADD = $(GST_LIBS) \
                        $(MMCOMMON_LIBS) \
                        $(AUDIOSESSIONMGR_LIBS) \
                        $(TZPLATFORM_CONFIG_LIBS) \
-                       $(CAPI_SYSTEM_INFO_LIBS) \
                        $(GST_VIDEO_LIBS)
 
 libmmfwfdsink_la_CFLAGS += $(MMLOG_CFLAGS) -DMMF_LOG_OWNER=0x02000000 -DMMF_DEBUG_PREFIX=\"MMF-WFD-SINK\"
diff --git a/src/include/mm_wfd_sink_config.h b/src/include/mm_wfd_sink_config.h
deleted file mode 100755 (executable)
index 9636491..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * libmm-wfd
- *
- * Copyright (c) 2011 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-typedef enum {
-       TIZEN_PROFILE_UNKNOWN = 0,
-       TIZEN_PROFILE_MOBILE = 0x1,
-       TIZEN_PROFILE_WEARABLE = 0x2,
-       TIZEN_PROFILE_TV = 0x4,
-       TIZEN_PROFILE_IVI = 0x8,
-       TIZEN_PROFILE_COMMON = 0x10,
-} tizen_profile_t;
-extern tizen_profile_t _get_tizen_profile();
-
-#define USE_EXTERNAL_WL_DISPLAY_HANDLE (_get_tizen_profile() & (TIZEN_PROFILE_TV))
-
diff --git a/src/mm_wfd_sink_config.c b/src/mm_wfd_sink_config.c
deleted file mode 100644 (file)
index 0644d8d..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * libmm-wfd
- *
- * Copyright (c) 2011 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#define _GNU_SOURCE
-#include <stdlib.h>
-#include <system_info.h>
-#include "mm_wfd_sink_config.h"
-
-
-tizen_profile_t _get_tizen_profile()
-{
-       static tizen_profile_t profile = TIZEN_PROFILE_UNKNOWN;
-       if (__builtin_expect(profile != TIZEN_PROFILE_UNKNOWN, 1))
-               return profile;
-
-       char *profileName;
-       system_info_get_platform_string("http://tizen.org/feature/profile", &profileName);
-       switch (*profileName) {
-               case 'm':
-               case 'M':
-                       profile = TIZEN_PROFILE_MOBILE;
-                       break;
-               case 'w':
-               case 'W':
-                       profile = TIZEN_PROFILE_WEARABLE;
-                       break;
-               case 't':
-               case 'T':
-                       profile = TIZEN_PROFILE_TV;
-                       break;
-               case 'i':
-               case 'I':
-                       profile = TIZEN_PROFILE_IVI;
-                       break;
-               default: // common or unknown ==> ALL ARE COMMON.
-                       profile = TIZEN_PROFILE_COMMON;
-       }
-       free(profileName);
-
-       return profile;
-}
index 35a96c173fa74e1ad78830ae03bcfe3a9948a5ba..4512305f4439d9414d5f4e2e807722fe39f52b46 100644 (file)
@@ -31,7 +31,6 @@
 #include "mm_wfd_sink_dlog.h"
 #include "mm_wfd_sink_enum.h"
 #include "mm_wfd_sink_wayland.h"
-#include "mm_wfd_sink_config.h"
 
 #define PRINT_WFD_REF_COUNT(wfd_sink)\
        do {\
@@ -4027,15 +4026,13 @@ static int __mm_wfd_sink_prepare_videosink(mm_wfd_sink_t *wfd_sink, GstElement *
                                                }
                                        }
                                        wfd_sink_debug("set video param : surface_id %d", wl_surface_id);
-
-                                       if(USE_EXTERNAL_WL_DISPLAY_HANDLE) {
-                                               gst_video_overlay_set_window_handle(GST_VIDEO_OVERLAY(video_sink),
+#ifdef USE_EXTERNAL_WL_DISPLAY_HANDLE
+                                       gst_video_overlay_set_window_handle(GST_VIDEO_OVERLAY(video_sink),
                                                                                                                wl_surface_id);
-                                       }
-                                       else {
-                                               gst_video_overlay_set_wl_window_wl_surface_id(GST_VIDEO_OVERLAY(video_sink),
+#else
+                                       gst_video_overlay_set_wl_window_wl_surface_id(GST_VIDEO_OVERLAY(video_sink),
                                                                                                                                wl_surface_id);
-                                       }
+#endif
 
                                        /* After setting window handle, set render rectangle */
                                        gst_video_overlay_set_render_rectangle(GST_VIDEO_OVERLAY(video_sink),