summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-05-02 10:21:00 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-05-27 11:57:53 -0400
commita0d3b955bfa18e807ef1067aa612a63d99bf7681 (patch)
tree5a8b1671da7187b597f12b6b98e8e147ea3ac66e /configure.ac
parent072674dbe2118a26d8616b56b4169a6e543805ef (diff)
ecore-drm2: Add start of Ecore_Drm2 library
This new library is going to replace the existing Ecore_Drm. This will refactor a lot of the code, bring improvements over the existing API, and provide additional support for missing features. @feature Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac78
1 files changed, 63 insertions, 15 deletions
diff --git a/configure.ac b/configure.ac
index cae4e39..0912ac2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2085,19 +2085,32 @@ if test "x${have_cocoa}" = "xyes"; then
2085fi 2085fi
2086AC_SUBST(cocoa_coreservices_ldflags) 2086AC_SUBST(cocoa_coreservices_ldflags)
2087 2087
2088AC_ARG_ENABLE([elput],
2089 [AS_HELP_STRING([--enable-elput],[enable elput library. @<:@default=disabled@:>@])],
2090 [
2091 if test "x${enableval}" = "xyes" ; then
2092 want_elput="yes"
2093 else
2094 want_elput="no"
2095 fi
2096 ],
2097 [want_elput="no"])
2098
2088# Drm 2099# Drm
2089AC_ARG_ENABLE([drm], 2100AC_ARG_ENABLE([drm],
2090 [AS_HELP_STRING([--enable-drm],[enable drm engine. @<:@default=disabled@:>@])], 2101 [AS_HELP_STRING([--enable-drm],[enable drm engine. @<:@default=disabled@:>@])],
2091 [ 2102 [
2092 if test "x${enableval}" = "xyes" ; then 2103 if test "x${enableval}" = "xyes" ; then
2093 want_drm="yes" 2104 if test "x${want_elput}" != "xyes" ; then
2105 AC_MSG_ERROR([elput is required to build drm support])
2106 fi
2107 want_drm="yes"
2094 else 2108 else
2095 want_drm="no" 2109 want_drm="no"
2096 fi 2110 fi
2097 ], 2111 ],
2098 [want_drm="no"]) 2112 [want_drm="no"])
2099 2113
2100
2101AC_ARG_ENABLE([gl-drm], 2114AC_ARG_ENABLE([gl-drm],
2102 [AC_HELP_STRING([--enable-gl-drm], 2115 [AC_HELP_STRING([--enable-gl-drm],
2103 [enable gl drm engine. @<:@default=disabled@:>@])], 2116 [enable gl drm engine. @<:@default=disabled@:>@])],
@@ -2296,17 +2309,6 @@ AC_ARG_ENABLE([ecore-buffer],
2296 ], 2309 ],
2297 [want_ecore_buffer="no"]) 2310 [want_ecore_buffer="no"])
2298 2311
2299AC_ARG_ENABLE([elput],
2300 [AS_HELP_STRING([--enable-elput],[enable elput library. @<:@default=disabled@:>@])],
2301 [
2302 if test "x${enableval}" = "xyes" ; then
2303 want_elput="yes"
2304 else
2305 want_elput="no"
2306 fi
2307 ],
2308 [want_elput="no"])
2309
2310# Image Loaders 2312# Image Loaders
2311 2313
2312ARG_ENABLE_EVAS_IMAGE_LOADER(BMP, static) 2314ARG_ENABLE_EVAS_IMAGE_LOADER(BMP, static)
@@ -3633,7 +3635,52 @@ EFL_EVAL_PKGS([ELPUT])
3633### Checks for library functions 3635### Checks for library functions
3634 3636
3635EFL_LIB_END_OPTIONAL([Elput]) 3637EFL_LIB_END_OPTIONAL([Elput])
3636#### End of Ecore_Drm 3638#### End of Elput
3639
3640#### Ecore_Drm2
3641have_libinput_new="no"
3642EFL_LIB_START_OPTIONAL([Ecore_Drm2], [test "${want_drm}" = "yes"])
3643
3644### Additional options to configure
3645SUID_CFLAGS=-fPIE
3646SUID_LDFLAGS=-pie
3647AC_SUBST([SUID_CFLAGS])
3648AC_SUBST([SUID_LDFLAGS])
3649
3650### Default values
3651
3652### Checks for programs
3653
3654### Checks for libraries
3655EFL_INTERNAL_DEPEND_PKG([ECORE_DRM2], [eo])
3656EFL_INTERNAL_DEPEND_PKG([ECORE_DRM2], [efl])
3657EFL_INTERNAL_DEPEND_PKG([ECORE_DRM2], [eina])
3658EFL_INTERNAL_DEPEND_PKG([ECORE_DRM2], [ecore])
3659EFL_INTERNAL_DEPEND_PKG([ECORE_DRM2], [elput])
3660EFL_INTERNAL_DEPEND_PKG([ECORE_DRM2], [eeze])
3661
3662EFL_DEPEND_PKG([ECORE_DRM2], [DRM], [libdrm >= 2.4 gbm])
3663
3664EFL_ADD_LIBS([ECORE_DRM2], [-lm])
3665
3666AC_CHECK_LIB(drm, drmModeAtomicCommit, AC_DEFINE(HAVE_ATOMIC_DRM, [], [Atomic modeset supported]))
3667
3668EFL_EVAL_PKGS([ECORE_DRM2])
3669
3670### Checks for header files
3671
3672### Checks for types
3673
3674### Checks for structures
3675
3676### Checks for compiler characteristics
3677
3678### Checks for linker characteristics
3679
3680### Checks for library functions
3681
3682EFL_LIB_END_OPTIONAL([Ecore_Drm2])
3683#### End of Ecore_Drm2
3637 3684
3638 3685
3639#### Ecore_Audio 3686#### Ecore_Audio
@@ -5260,7 +5307,7 @@ EFL_OPTIONAL_INTERNAL_DEPEND_PKG([ELEMENTARY], [${have_ps3}], [ecore_psl1ght])
5260EFL_OPTIONAL_INTERNAL_DEPEND_PKG([ELEMENTARY], [${want_sdl}], [ecore_sdl]) 5307EFL_OPTIONAL_INTERNAL_DEPEND_PKG([ELEMENTARY], [${want_sdl}], [ecore_sdl])
5261EFL_OPTIONAL_INTERNAL_DEPEND_PKG([ELEMENTARY], [${want_ecore_evas_gl_cocoa}], [ecore_cocoa]) 5308EFL_OPTIONAL_INTERNAL_DEPEND_PKG([ELEMENTARY], [${want_ecore_evas_gl_cocoa}], [ecore_cocoa])
5262EFL_OPTIONAL_INTERNAL_DEPEND_PKG([ELEMENTARY], [${build_ecore_evas_win32}], [ecore_win32]) 5309EFL_OPTIONAL_INTERNAL_DEPEND_PKG([ELEMENTARY], [${build_ecore_evas_win32}], [ecore_win32])
5263EFL_OPTIONAL_INTERNAL_DEPEND_PKG([ELEMENTARY], [${want_drm}], [ecore_drm]) 5310EFL_OPTIONAL_INTERNAL_DEPEND_PKG([ELEMENTARY], [${want_drm}], [ecore_drm2])
5264EFL_OPTIONAL_INTERNAL_DEPEND_PKG([ELEMENTARY], [${build_ecore_evas_wayland}], [ecore_wl2]) 5311EFL_OPTIONAL_INTERNAL_DEPEND_PKG([ELEMENTARY], [${build_ecore_evas_wayland}], [ecore_wl2])
5265 5312
5266dnl Special case deps for ecore_drm 5313dnl Special case deps for ecore_drm
@@ -5605,6 +5652,7 @@ pc/elua.pc
5605pc/elementary.pc 5652pc/elementary.pc
5606pc/elementary-cxx.pc 5653pc/elementary-cxx.pc
5607pc/elput.pc 5654pc/elput.pc
5655pc/ecore-drm2.pc
5608dbus-services/org.enlightenment.Ethumb.service 5656dbus-services/org.enlightenment.Ethumb.service
5609systemd-services/ethumb.service 5657systemd-services/ethumb.service
5610$po_makefile_in 5658$po_makefile_in