1# The mux and demux libraries depend on libwebp, thus the '.' to force
2# the build order so it's available to them.
3SUBDIRS = dec enc dsp utils .
4if BUILD_MUX
5  SUBDIRS += mux
6endif
7if BUILD_DEMUX
8  SUBDIRS += demux
9endif
10
11lib_LTLIBRARIES = libwebp.la
12
13if BUILD_LIBWEBPDECODER
14  lib_LTLIBRARIES += libwebpdecoder.la
15endif
16
17common_HEADERS =
18common_HEADERS += webp/decode.h
19common_HEADERS += webp/types.h
20commondir = $(includedir)/webp
21
22libwebp_la_SOURCES =
23libwebpinclude_HEADERS =
24libwebpinclude_HEADERS += webp/encode.h
25
26noinst_HEADERS =
27noinst_HEADERS += webp/format_constants.h
28
29libwebp_la_LIBADD =
30libwebp_la_LIBADD += dec/libwebpdecode.la
31libwebp_la_LIBADD += dsp/libwebpdsp.la
32libwebp_la_LIBADD += enc/libwebpencode.la
33libwebp_la_LIBADD += utils/libwebputils.la
34
35# Use '-no-undefined' to declare that libwebp does not depend on any libraries
36# other than the ones listed on the command line, i.e., after linking, it will
37# not have unresolved symbols. Some platforms (Windows among them) require all
38# symbols in shared libraries to be resolved at library creation.
39libwebp_la_LDFLAGS = -no-undefined -version-info 7:4:0
40libwebpincludedir = $(includedir)/webp
41pkgconfig_DATA = libwebp.pc
42
43if BUILD_LIBWEBPDECODER
44  libwebpdecoder_la_SOURCES =
45
46  libwebpdecoder_la_LIBADD =
47  libwebpdecoder_la_LIBADD += dec/libwebpdecode.la
48  libwebpdecoder_la_LIBADD += dsp/libwebpdspdecode.la
49  libwebpdecoder_la_LIBADD += utils/libwebputilsdecode.la
50
51  libwebpdecoder_la_LDFLAGS = -no-undefined -version-info 3:4:0
52  pkgconfig_DATA += libwebpdecoder.pc
53endif
54
55${pkgconfig_DATA}: ${top_builddir}/config.status
56