elementary: fix build without public Eo API turned on.

This commit is contained in:
Cedric Bail 2013-06-28 10:22:52 +09:00
parent 27f6087892
commit a0f3716168
4 changed files with 20 additions and 12 deletions

View File

@ -240,6 +240,8 @@ PKG_CHECK_MODULES([ELEMENTARY],
]
)
EFL_ENABLE_EO_API_SUPPORT
requirement_elm="edje >= 1.7.99 ecore-file >= 1.7.99 ecore-evas >= 1.7.99 ecore >= 1.7.99 evas >= 1.7.99 eet >= 1.7.99 eina >= 1.7.99 ${requirement_elm}"
PKG_CHECK_MODULES([ELEMENTARY_ECORE_IMF],

View File

@ -0,0 +1,6 @@
dnl use: EFL_ENABLE_EO_API_SUPPORT
AC_DEFUN([EFL_ENABLE_EO_API_SUPPORT],
[
AC_DEFINE([EFL_EO_API_SUPPORT], [1], [Enable access to unstable EFL Eo API])
])

View File

@ -56,6 +56,18 @@
* @{
*/
/**
* @brief Types of zoom available.
*/
typedef enum
{
ELM_PHOTOCAM_ZOOM_MODE_MANUAL = 0, /**< Zoom controlled normally by elm_photocam_zoom_set */
ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT, /**< Zoom until photo fits in photocam */
ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL, /**< Zoom until photo fills photocam */
ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT_IN, /**< Zoom in until photo fits in photocam */
ELM_PHOTOCAM_ZOOM_MODE_LAST
} Elm_Photocam_Zoom_Mode;
#ifdef EFL_EO_API_SUPPORT
#include "elm_photocam_eo.h"
#endif

View File

@ -2,18 +2,6 @@
const Eo_Class *elm_obj_photocam_pan_class_get(void) EINA_CONST;
/**
* @brief Types of zoom available.
*/
typedef enum
{
ELM_PHOTOCAM_ZOOM_MODE_MANUAL = 0, /**< Zoom controlled normally by elm_photocam_zoom_set */
ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT, /**< Zoom until photo fits in photocam */
ELM_PHOTOCAM_ZOOM_MODE_AUTO_FILL, /**< Zoom until photo fills photocam */
ELM_PHOTOCAM_ZOOM_MODE_AUTO_FIT_IN, /**< Zoom in until photo fits in photocam */
ELM_PHOTOCAM_ZOOM_MODE_LAST
} Elm_Photocam_Zoom_Mode;
#define ELM_OBJ_PHOTOCAM_CLASS elm_obj_photocam_class_get()
const Eo_Class *elm_obj_photocam_class_get(void) EINA_CONST;