mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-15 21:39:59 +02:00
Provide an option to build decoder library.
When the config option '--enable-libwebpdecoder' is specified, the lean decoder library 'libwebpdecoder' will be created in addition to libwebp. Also dwebp binary will be linked to libwebpdecoder, if this config option is specified. Change-Id: I9de3e149b59c9a8390fae2ba660941749640e54a
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
SUBDIRS = dec enc dsp utils
|
||||
|
||||
if WANT_MUX
|
||||
SUBDIRS += mux
|
||||
endif
|
||||
@ -9,6 +10,10 @@ endif
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/src
|
||||
lib_LTLIBRARIES = libwebp.la
|
||||
|
||||
if BUILD_LIBWEBPDECODER
|
||||
lib_LTLIBRARIES += libwebpdecoder.la
|
||||
endif
|
||||
|
||||
libwebp_la_SOURCES =
|
||||
libwebpinclude_HEADERS =
|
||||
libwebpinclude_HEADERS += webp/decode.h
|
||||
@ -30,5 +35,20 @@ libwebp_la_LIBADD += utils/libwebputils.la
|
||||
libwebp_la_LDFLAGS = -no-undefined -version-info 4:1:0
|
||||
libwebpincludedir = $(includedir)/webp
|
||||
|
||||
if BUILD_LIBWEBPDECODER
|
||||
libwebpdecoder_la_SOURCES =
|
||||
libwebpdecoderinclude_HEADERS =
|
||||
libwebpdecoderinclude_HEADERS += webp/decode.h
|
||||
libwebpdecoderinclude_HEADERS += webp/types.h
|
||||
|
||||
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:1:0
|
||||
libwebpdecoderincludedir = $(includedir)/webp
|
||||
endif
|
||||
|
||||
pkgconfig_DATA = libwebp.pc
|
||||
${pkgconfig_DATA}: ${top_builddir}/config.status
|
||||
|
Reference in New Issue
Block a user