efl: add m4 macro to handle a way to enable/disable Eo API and EFL legacy API.
authorCedric Bail <cedric.bail@samsung.com>
Tue, 23 Apr 2013 10:53:16 +0000 (19:53 +0900)
committerDaniel Zaoui <daniel.zaoui@samsung.com>
Tue, 23 Apr 2013 13:44:39 +0000 (16:44 +0300)
configure.ac
m4/efl_eo.m4 [new file with mode: 0644]

index 23ec83a..82f14de 100644 (file)
@@ -379,6 +379,7 @@ esac
 
 EFL_ATTRIBUTE_VECTOR
 EFL_ATTRIBUTE_ALWAYS_INLINE
+EFL_ENABLE_EO_API_SUPPORT
 
 EFL_LIBS="${EFL_LIBS}"
 EFL_CFLAGS="${EFL_CFLAGS}"
diff --git a/m4/efl_eo.m4 b/m4/efl_eo.m4
new file mode 100644 (file)
index 0000000..08065ea
--- /dev/null
@@ -0,0 +1,12 @@
+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])
+])
+
+dnl use: EFL_DISABLE_LEGACY_API_SUPPORT
+AC_DEFUN([EFL_DISABLE_LEGACY_API_SUPPORT],
+[
+  AC_DEFINE([EFL_NOLEGACY_API_SUPPORT], [1], [Disable legacy EFL API])
+])
+