summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-04-13 16:23:45 -0700
committerCedric BAIL <cedric@osg.samsung.com>2016-04-14 16:07:32 -0700
commitf4441e5a21601dbde946bfe9a61772befe206882 (patch)
treef81e7a47224e4f78eb9ac3bb82029a1aa1b6b57b
parente109341fdbf11318aaca6903c5ab6e50308d207f (diff)
eo: make it possible to build the library alone.
-rw-r--r--configure.ac1
-rw-r--r--src/Makefile_Eolian_Helper.am2
-rw-r--r--src/Makefile_Eolian_Subbuild_Helper.am6
-rw-r--r--src/lib/eo/Makefile.am44
4 files changed, 52 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index f9049d2775..c65d1aea65 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5487,6 +5487,7 @@ src/lib/evil/Makefile
5487src/lib/eina/Makefile 5487src/lib/eina/Makefile
5488src/lib/emile/Makefile 5488src/lib/emile/Makefile
5489src/lib/eet/Makefile 5489src/lib/eet/Makefile
5490src/lib/eo/Makefile
5490src/benchmarks/eina/Makefile 5491src/benchmarks/eina/Makefile
5491src/benchmarks/eo/Makefile 5492src/benchmarks/eo/Makefile
5492src/benchmarks/evas/Makefile 5493src/benchmarks/evas/Makefile
diff --git a/src/Makefile_Eolian_Helper.am b/src/Makefile_Eolian_Helper.am
index ddf09e54a4..6fb7db5203 100644
--- a/src/Makefile_Eolian_Helper.am
+++ b/src/Makefile_Eolian_Helper.am
@@ -3,7 +3,7 @@ EOLIAN_GEN = @eolian_gen@
3_EOLIAN_GEN_DEP = @eolian_gen@ 3_EOLIAN_GEN_DEP = @eolian_gen@
4else 4else
5EOLIAN_GEN = EFL_RUN_IN_TREE=1 $(top_builddir)/src/bin/eolian/eolian_gen${EXEEXT} 5EOLIAN_GEN = EFL_RUN_IN_TREE=1 $(top_builddir)/src/bin/eolian/eolian_gen${EXEEXT}
6_EOLIAN_GEN_DEP = bin/eolian/eolian_gen${EXEEXT} 6_EOLIAN_GEN_DEP = $(top_builddir)/src/bin/eolian/eolian_gen${EXEEXT}
7endif 7endif
8 8
9include $(top_srcdir)/src/Makefile_Eolian_Files_Helper.am 9include $(top_srcdir)/src/Makefile_Eolian_Files_Helper.am
diff --git a/src/Makefile_Eolian_Subbuild_Helper.am b/src/Makefile_Eolian_Subbuild_Helper.am
new file mode 100644
index 0000000000..58686ed98b
--- /dev/null
+++ b/src/Makefile_Eolian_Subbuild_Helper.am
@@ -0,0 +1,6 @@
1EOLIAN_GEN = EFL_RUN_IN_TREE=1 $(top_builddir)/src/bin/eolian/eolian_gen${EXEEXT}
2_EOLIAN_GEN_DEP =
3
4EOLIAN_FLAGS += -I$(top_srcdir)/src/
5
6include $(top_srcdir)/src/Makefile_Eolian_Files_Helper.am
diff --git a/src/lib/eo/Makefile.am b/src/lib/eo/Makefile.am
new file mode 100644
index 0000000000..c86764bf27
--- /dev/null
+++ b/src/lib/eo/Makefile.am
@@ -0,0 +1,44 @@
1EOLIAN_FLAGS = -I$(srcdir)
2
3include ../../Makefile_Eolian_Subbuild_Helper.am
4
5### Library
6eo_eolian_files = \
7 eo_base.eo \
8 eo_abstract_class.eo \
9 eo_interface.eo
10
11eo_eolian_c = $(eo_eolian_files:%.eo=%.eo.c)
12eo_eolian_h = $(eo_eolian_files:%.eo=%.eo.h)
13
14BUILT_SOURCES = $(eo_eolian_c) \
15 $(eo_eolian_h)
16
17CLEANFILES = $(eo_eolian_c) \
18 $(eo_eolian_h)
19
20lib_LTLIBRARIES = libeo.la
21
22installed_eomainheadersdir = $(includedir)/eo-@VMAJ@
23dist_installed_eomainheaders_DATA = Eo.h
24
25nodist_installed_eomainheaders_DATA = $(eo_eolian_h)
26
27libeo_la_SOURCES = \
28eo.c \
29eo_ptr_indirection.c \
30eo_ptr_indirection.h \
31eo_base_class.c \
32eo_class_class.c \
33eo_add_fallback.c \
34eo_add_fallback.h \
35eo_private.h
36
37libeo_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl @EO_CFLAGS@
38libeo_la_LIBADD = @EO_SUBBUILD_LIBS@
39libeo_la_DEPENDENCIES = @EO_SUBBUILD_INTERNAL_LIBS@
40libeo_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
41
42eoeolianfilesdir = $(datadir)/eolian/include/eo-@VMAJ@
43eoeolianfiles_DATA = $(eo_eolian_files) \
44 eina_types.eot # We don't generate .c/.h on purpose