summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-12-08 11:38:04 +0000
committerDaniel Kolesa <d.kolesa@samsung.com>2014-12-08 11:38:14 +0000
commit9e91672a4f6ce8f89ce18fd996a055f02df60a22 (patch)
tree506b161819c2715ac5a5768c3c89d98127ebf425
parent353a533ff5cd27de06064484b55eadef25e12ef3 (diff)
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.
-rw-r--r--src/Makefile_Elua.am18
-rw-r--r--src/lib/elua/Elua.h63
-rw-r--r--src/lib/elua/elua.c1
3 files changed, 82 insertions, 0 deletions
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 @@
1if HAVE_ELUA 1if HAVE_ELUA
2 2
3lib_LTLIBRARIES += lib/elua/libelua.la
4
5installed_eluamainheadersdir = $(includedir)/elua-@VMAJ@
6dist_installed_eluamainheaders_DATA = \
7lib/elua/Elua.h
8
9lib_elua_libelua_la_SOURCES = \
10lib/elua/elua.c
11
12lib_elua_libelua_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl @ELUA_CFLAGS@
13if HAVE_WIN32
14lib_elua_libelua_la_LIBADD = -L$(top_builddir)/src/lib/evil @ELUA_LIBS@
15else
16lib_elua_libelua_la_LIBADD = @ELUA_LIBS@
17endif
18lib_elua_libelua_la_DEPENDENCIES = @ELUA_INTERNAL_LIBS@
19lib_elua_libelua_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
20
3bin_PROGRAMS += bin/elua/elua 21bin_PROGRAMS += bin/elua/elua
4 22
5bin_elua_elua_SOURCES = \ 23bin_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 @@
1/**
2 * @file Elua.h
3 * @brief Elua Library
4 *
5 * @defgroup Elua Elua
6 */
7
8/**
9 *
10 * @section intro Elua library
11 *
12 * The Elua library was created to ease integration of EFL Lua into other EFL
13 * libraries or applications. Using the Elua library you can easily create a
14 * Lua state that is fully set up for running EFL Lua bindings.
15 *
16 * You can find the API documentation at @ref Elua
17*/
18#ifndef _ELUA_H
19#define _ELUA_H
20
21#ifdef EAPI
22# undef EAPI
23#endif
24
25#ifdef _WIN32
26# ifdef EFL_ELUA_BUILD
27# ifdef DLL_EXPORT
28# define EAPI __declspec(dllexport)
29# else
30# define EAPI
31# endif /* ! DLL_EXPORT */
32# else
33# define EAPI __declspec(dllimport)
34# endif /* ! EFL_ELUA_BUILD */
35#else
36# ifdef __GNUC__
37# if __GNUC__ >= 4
38# define EAPI __attribute__ ((visibility("default")))
39# else
40# define EAPI
41# endif
42# else
43# define EAPI
44# endif
45#endif /* ! _WIN32 */
46
47#ifdef __cplusplus
48extern "C" {
49#endif
50
51#ifdef HAVE_CONFIG_H
52# include <config.h>
53#endif
54
55#ifdef EFL_BETA_API_SUPPORT
56
57#endif
58
59#ifdef __cplusplus
60} // extern "C" {
61#endif
62
63#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"