summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-04-13 16:11:44 -0700
committerCedric BAIL <cedric@osg.samsung.com>2016-04-14 15:52:50 -0700
commit66bc74bbe6668ca9606d9dbdae02f8c008d2d796 (patch)
treeb1ba56fb5a027aa7e66bdad2a4085ed2fd7c390e
parent41f68ac0d34f7379df1fa279b141232848dc834d (diff)
emile: make it possible to build the library alone.
-rw-r--r--configure.ac1
-rw-r--r--src/lib/emile/Makefile.am61
2 files changed, 62 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 5ff72cadbe..98e0e12867 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5485,6 +5485,7 @@ doc/widgets/Makefile
5485src/Makefile 5485src/Makefile
5486src/lib/evil/Makefile 5486src/lib/evil/Makefile
5487src/lib/eina/Makefile 5487src/lib/eina/Makefile
5488src/lib/emile/Makefile
5488src/benchmarks/eina/Makefile 5489src/benchmarks/eina/Makefile
5489src/benchmarks/eo/Makefile 5490src/benchmarks/eo/Makefile
5490src/benchmarks/evas/Makefile 5491src/benchmarks/evas/Makefile
diff --git a/src/lib/emile/Makefile.am b/src/lib/emile/Makefile.am
new file mode 100644
index 0000000000..09b093bcad
--- /dev/null
+++ b/src/lib/emile/Makefile.am
@@ -0,0 +1,61 @@
1
2### Library
3lib_LTLIBRARIES = libemile.la
4
5installed_emilemainheadersdir = $(includedir)/emile-@VMAJ@
6dist_installed_emilemainheaders_DATA = \
7Emile.h \
8emile_cipher.h \
9emile_compress.h \
10emile_image.h \
11emile_base64.h
12
13libemile_la_SOURCES = \
14emile_private.h \
15emile_main.c \
16emile_compress.c \
17emile_image.c \
18emile_base64.c \
19../../static_libs/rg_etc/rg_etc1.c \
20../../static_libs/rg_etc/rg_etc2.c \
21../../static_libs/rg_etc/rg_etc1.h \
22../../static_libs/rg_etc/etc2_encoder.c
23
24if ! ENABLE_LIBLZ4
25libemile_la_SOURCES += \
26../../static_libs/lz4/lz4.c \
27../../static_libs/lz4/lz4.h \
28../../static_libs/lz4/lz4hc.c \
29../../static_libs/lz4/lz4hc.h
30endif
31
32if HAVE_CRYPTO_GNUTLS
33libemile_la_SOURCES += emile_cipher_gnutls.c
34else
35if HAVE_CRYPTO_OPENSSL
36libemile_la_SOURCES += emile_cipher_openssl.c
37else
38libemile_la_SOURCES += emile_cipher.c
39endif
40endif
41
42libemile_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
43-I$(top_srcdir)/src/static_libs/rg_etc \
44-DPACKAGE_BIN_DIR=\"$(bindir)\" \
45-DPACKAGE_LIB_DIR=\"$(libdir)\" \
46-DPACKAGE_DATA_DIR=\"$(datadir)/emile\" \
47@EMILE_CFLAGS@ \
48@NEON_CFLAGS@
49
50if ! ENABLE_LIBLZ4
51libemile_la_CPPFLAGS += \
52-I$(top_srcdir)/src/static_libs/lz4
53endif
54
55libemile_la_LIBADD = @EMILE_SUBBUILD_LIBS@
56libemile_la_DEPENDENCIES = @EMILE_SUBBUILD_INTERNAL_LIBS@
57libemile_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
58
59if ENABLE_LIBLZ4
60libemile_la_LIBADD += @LIBLZ4_LIBS@
61endif