ecore-drm: Deprecate Ecore_Drm library
authorChris Michael <cpmichael@osg.samsung.com>
Tue, 31 May 2016 14:04:17 +0000 (10:04 -0400)
committerChris Michael <cpmichael@osg.samsung.com>
Tue, 31 May 2016 14:05:28 +0000 (10:05 -0400)
Small patch to deprecate Ecore_Drm. This patch also adds a configure
option to enable ecore_drm for older code. This option is disabled by
default, so must be explicitly specified during build.

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
configure.ac
src/lib/ecore_drm/Ecore_Drm.h

index 07e7ec4..3eef79c 100644 (file)
@@ -1651,6 +1651,17 @@ AC_ARG_ENABLE([ecore_wayland],
    ],
    [want_ecore_wayland="no"])
 
+AC_ARG_ENABLE([ecore_drm],
+   [AS_HELP_STRING([--enable-ecore-drm],[enable legacy Ecore_Drm support. @<:@default=disabled@:>@])],
+   [
+    if test "x${enableval}" = "xyes" ; then
+       want_ecore_drm="yes"
+    else
+       want_ecore_drm="no"
+    fi
+   ],
+   [want_ecore_drm="no"])
+
 ### Default values
 
 if test "${have_windows}" = "yes"; then
@@ -2098,7 +2109,7 @@ AC_ARG_ENABLE([drm],
       fi
       want_drm="yes"
     else
-       want_drm="no"
+      want_drm="no"
     fi
    ],
    [want_drm="no"])
@@ -3511,7 +3522,7 @@ AM_CONDITIONAL([HAVE_EEZE_TIZEN], [test "x${want_tizen}" = "xyes"])
 
 #### Ecore_Drm
 have_libinput_new="no"
-EFL_LIB_START_OPTIONAL([Ecore_Drm], [test "${want_drm}" = "yes"])
+EFL_LIB_START_OPTIONAL([Ecore_Drm], [test "${want_ecore_drm}" = "yes"])
 
 ### Additional options to configure
 SUID_CFLAGS=-fPIE
@@ -5796,6 +5807,8 @@ echo "Ecore_File......: yes"
 echo "Ecore_IMF.......: yes (${features_ecore_imf})"
 echo "Ecore_X.........: ${with_x11} (${features_ecore_x})"
 echo "Ecore_SDL.......: $want_sdl"
+echo "Ecore_Drm.......: $want_ecore_drm"
+echo "Ecore_Drm2......: $want_drm"
 echo "Ecore_Wayland...: $want_ecore_wayland"
 echo "Ecore_Wl2.......: $want_wayland"
 echo "IVI-Shell.......: $want_wayland_ivi_shell"
index a1a1317..62717e5 100644 (file)
@@ -30,6 +30,8 @@
 #  endif // ifdef __GNUC__
 # endif // ifdef _MSC_VER
 
+# warning The Ecore_Drm library has been deprecated. Please use the Ecore_Drm2 library
+
 # ifdef __cplusplus
 extern "C" {
 # endif