summaryrefslogtreecommitdiff
path: root/src/Makefile.am
blob: e5b2341d44a3240de1bd7fa8e100e13e957e83b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# The mux and demux libraries depend on libwebp, thus the '.' to force
# the build order so it's available to them.
SUBDIRS = dec enc dsp utils .
if BUILD_MUX
  SUBDIRS += mux
endif
if BUILD_DEMUX
  SUBDIRS += demux
endif

lib_LTLIBRARIES = libwebp.la

if BUILD_LIBWEBPDECODER
  lib_LTLIBRARIES += libwebpdecoder.la
endif

common_HEADERS =
common_HEADERS += webp/decode.h
common_HEADERS += webp/types.h
commondir = $(includedir)/webp

libwebp_la_SOURCES =
libwebpinclude_HEADERS =
libwebpinclude_HEADERS += webp/encode.h

noinst_HEADERS =
noinst_HEADERS += webp/format_constants.h

libwebp_la_LIBADD =
libwebp_la_LIBADD += dec/libwebpdecode.la
libwebp_la_LIBADD += dsp/libwebpdsp.la
libwebp_la_LIBADD += enc/libwebpencode.la
libwebp_la_LIBADD += utils/libwebputils.la

# Use '-no-undefined' to declare that libwebp does not depend on any libraries
# other than the ones listed on the command line, i.e., after linking, it will
# not have unresolved symbols. Some platforms (Windows among them) require all
# symbols in shared libraries to be resolved at library creation.
libwebp_la_LDFLAGS = -no-undefined -version-info 8:3:1
libwebpincludedir = $(includedir)/webp
pkgconfig_DATA = libwebp.pc

if BUILD_LIBWEBPDECODER
  libwebpdecoder_la_SOURCES =

  libwebpdecoder_la_LIBADD =
  libwebpdecoder_la_LIBADD += dec/libwebpdecode.la
  libwebpdecoder_la_LIBADD += dsp/libwebpdspdecode.la
  libwebpdecoder_la_LIBADD += utils/libwebputilsdecode.la

  libwebpdecoder_la_LDFLAGS = -no-undefined -version-info 4:3:1
  pkgconfig_DATA += libwebpdecoder.pc
endif

${pkgconfig_DATA}: ${top_builddir}/config.status