q66 pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=9e91672a4f6ce8f89ce18fd996a055f02df60a22
commit 9e91672a4f6ce8f89ce18fd996a055f02df60a22 Author: Daniel Kolesa <d.kol...@samsung.com> Date: Mon Dec 8 11:38:04 2014 +0000 elua: initial skeleton for the Elua library Because of Bob and other things, it is required to separate the functionality currently provided by the elua binary into a library. This library will then be used by the elua binary as well as any other project. --- src/Makefile_Elua.am | 18 +++++++++++++++ src/lib/elua/Elua.h | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++ src/lib/elua/elua.c | 1 + 3 files changed, 82 insertions(+) diff --git a/src/Makefile_Elua.am b/src/Makefile_Elua.am index 3b731fc..47bdade 100644 --- a/src/Makefile_Elua.am +++ b/src/Makefile_Elua.am @@ -1,5 +1,23 @@ if HAVE_ELUA +lib_LTLIBRARIES += lib/elua/libelua.la + +installed_eluamainheadersdir = $(includedir)/elua-@VMAJ@ +dist_installed_eluamainheaders_DATA = \ +lib/elua/Elua.h + +lib_elua_libelua_la_SOURCES = \ +lib/elua/elua.c + +lib_elua_libelua_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl @ELUA_CFLAGS@ +if HAVE_WIN32 +lib_elua_libelua_la_LIBADD = -L$(top_builddir)/src/lib/evil @ELUA_LIBS@ +else +lib_elua_libelua_la_LIBADD = @ELUA_LIBS@ +endif +lib_elua_libelua_la_DEPENDENCIES = @ELUA_INTERNAL_LIBS@ +lib_elua_libelua_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@ + bin_PROGRAMS += bin/elua/elua bin_elua_elua_SOURCES = \ diff --git a/src/lib/elua/Elua.h b/src/lib/elua/Elua.h new file mode 100644 index 0000000..c037f32 --- /dev/null +++ b/src/lib/elua/Elua.h @@ -0,0 +1,63 @@ +/** + * @file Elua.h + * @brief Elua Library + * + * @defgroup Elua Elua + */ + +/** + * + * @section intro Elua library + * + * The Elua library was created to ease integration of EFL Lua into other EFL + * libraries or applications. Using the Elua library you can easily create a + * Lua state that is fully set up for running EFL Lua bindings. + * + * You can find the API documentation at @ref Elua +*/ +#ifndef _ELUA_H +#define _ELUA_H + +#ifdef EAPI +# undef EAPI +#endif + +#ifdef _WIN32 +# ifdef EFL_ELUA_BUILD +# ifdef DLL_EXPORT +# define EAPI __declspec(dllexport) +# else +# define EAPI +# endif /* ! DLL_EXPORT */ +# else +# define EAPI __declspec(dllimport) +# endif /* ! EFL_ELUA_BUILD */ +#else +# ifdef __GNUC__ +# if __GNUC__ >= 4 +# define EAPI __attribute__ ((visibility("default"))) +# else +# define EAPI +# endif +# else +# define EAPI +# endif +#endif /* ! _WIN32 */ + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef HAVE_CONFIG_H +# include <config.h> +#endif + +#ifdef EFL_BETA_API_SUPPORT + +#endif + +#ifdef __cplusplus +} // extern "C" { +#endif + +#endif diff --git a/src/lib/elua/elua.c b/src/lib/elua/elua.c new file mode 100644 index 0000000..fc4b894 --- /dev/null +++ b/src/lib/elua/elua.c @@ -0,0 +1 @@ +#include "Elua.h" --