summaryrefslogtreecommitdiff
path: root/src/Makefile_Eet.am
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2014-08-12 09:37:33 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2014-08-22 16:27:28 +0200
commit3fe554e0b648a9f03ca150ec3b44f20f277b261c (patch)
tree91099b28f71242f57c0159fccec848de4e31ee99 /src/Makefile_Eet.am
parent8c8a2b1098932ebd6f40ef064dfa652bbdf7edc0 (diff)
build: Allow to use external liblz4 instead of embedded copy
While we are likely will keep the embedded copy for a while to avoid a really new dependency we allow now to use the external liblz4. You need at least revision r120 and a package that ships the pc file for it. Personally I would like to get rid of it rather sooner than later due to the security implications and a bunch of code we ship but have no idea about. Reality is that it will need some time until this new lib is actually packaged and shipped with releases for a a majority of people. This patch was co-worked with Doug Newgard <scimmia22@outlook.com>
Diffstat (limited to 'src/Makefile_Eet.am')
-rw-r--r--src/Makefile_Eet.am21
1 files changed, 16 insertions, 5 deletions
diff --git a/src/Makefile_Eet.am b/src/Makefile_Eet.am
index d5a308b10c..8e7f56a675 100644
--- a/src/Makefile_Eet.am
+++ b/src/Makefile_Eet.am
@@ -17,27 +17,38 @@ lib/eet/eet_image.c \
17lib/eet/eet_lib.c \ 17lib/eet/eet_lib.c \
18lib/eet/eet_node.c \ 18lib/eet/eet_node.c \
19lib/eet/eet_utils.c \ 19lib/eet/eet_utils.c \
20static_libs/lz4/lz4.c \
21static_libs/lz4/lz4.h \
22static_libs/lz4/lz4hc.c \
23static_libs/lz4/lz4hc.h \
24static_libs/rg_etc/rg_etc1.c \ 20static_libs/rg_etc/rg_etc1.c \
25static_libs/rg_etc/rg_etc2.c \ 21static_libs/rg_etc/rg_etc2.c \
26static_libs/rg_etc/etc2_encoder.c \ 22static_libs/rg_etc/etc2_encoder.c \
27static_libs/rg_etc/rg_etc1.h 23static_libs/rg_etc/rg_etc1.h
24if ! ENABLE_LIBLZ4
25lib_eet_libeet_la_SOURCES += \
26static_libs/lz4/lz4.c \
27static_libs/lz4/lz4.h \
28static_libs/lz4/lz4hc.c \
29static_libs/lz4/lz4hc.h
30endif
28 31
29lib_eet_libeet_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \ 32lib_eet_libeet_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
30-I$(top_srcdir)/src/static_libs/lz4 \
31-I$(top_srcdir)/src/static_libs/rg_etc \ 33-I$(top_srcdir)/src/static_libs/rg_etc \
32-DPACKAGE_BIN_DIR=\"$(bindir)\" \ 34-DPACKAGE_BIN_DIR=\"$(bindir)\" \
33-DPACKAGE_LIB_DIR=\"$(libdir)\" \ 35-DPACKAGE_LIB_DIR=\"$(libdir)\" \
34-DPACKAGE_DATA_DIR=\"$(datadir)/eet\" \ 36-DPACKAGE_DATA_DIR=\"$(datadir)/eet\" \
35@EET_CFLAGS@ 37@EET_CFLAGS@
38if ! ENABLE_LIBLZ4
39lib_eet_libeet_la_CPPFLAGS += \
40-I$(top_srcdir)/src/static_libs/lz4
41endif
36lib_eet_libeet_la_LIBADD = @EET_LIBS@ @EVIL_LIBS@ 42lib_eet_libeet_la_LIBADD = @EET_LIBS@ @EVIL_LIBS@
43if ENABLE_LIBLZ4
44lib_eet_libeet_la_LIBADD += @LIBLZ4_LIBS@
45endif
37lib_eet_libeet_la_DEPENDENCIES = @EET_INTERNAL_LIBS@ 46lib_eet_libeet_la_DEPENDENCIES = @EET_INTERNAL_LIBS@
38lib_eet_libeet_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@ 47lib_eet_libeet_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
39 48
49if ! ENABLE_LIBLZ4
40EXTRA_DIST += static_libs/lz4/README 50EXTRA_DIST += static_libs/lz4/README
51endif
41 52
42### Binary 53### Binary
43 54