mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-13 06:24:27 +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,23 +1,31 @@
|
||||
AM_CPPFLAGS = -I$(top_srcdir)/src
|
||||
noinst_LTLIBRARIES = libwebpdsp.la
|
||||
|
||||
libwebpdsp_la_SOURCES =
|
||||
libwebpdsp_la_SOURCES += cpu.c
|
||||
libwebpdsp_la_SOURCES += dec.c
|
||||
libwebpdsp_la_SOURCES += dec_neon.c
|
||||
libwebpdsp_la_SOURCES += dec_sse2.c
|
||||
libwebpdsp_la_SOURCES += dsp.h
|
||||
libwebpdsp_la_SOURCES += enc.c
|
||||
libwebpdsp_la_SOURCES += enc_neon.c
|
||||
libwebpdsp_la_SOURCES += enc_sse2.c
|
||||
libwebpdsp_la_SOURCES += lossless.c
|
||||
libwebpdsp_la_SOURCES += lossless.h
|
||||
libwebpdsp_la_SOURCES += upsampling.c
|
||||
libwebpdsp_la_SOURCES += upsampling_sse2.c
|
||||
libwebpdsp_la_SOURCES += yuv.c
|
||||
libwebpdsp_la_SOURCES += yuv.h
|
||||
if BUILD_LIBWEBPDECODER
|
||||
noinst_LTLIBRARIES += libwebpdspdecode.la
|
||||
endif
|
||||
|
||||
COMMON_SOURCES =
|
||||
COMMON_SOURCES += cpu.c
|
||||
COMMON_SOURCES += dec.c
|
||||
COMMON_SOURCES += dec_neon.c
|
||||
COMMON_SOURCES += dec_sse2.c
|
||||
COMMON_SOURCES += dsp.h
|
||||
COMMON_SOURCES += lossless.c
|
||||
COMMON_SOURCES += lossless.h
|
||||
COMMON_SOURCES += upsampling.c
|
||||
COMMON_SOURCES += upsampling_sse2.c
|
||||
COMMON_SOURCES += yuv.c
|
||||
COMMON_SOURCES += yuv.h
|
||||
|
||||
ENC_SOURCES =
|
||||
ENC_SOURCES += enc.c
|
||||
ENC_SOURCES += enc_neon.c
|
||||
ENC_SOURCES += enc_sse2.c
|
||||
|
||||
libwebpdsp_la_SOURCES = $(COMMON_SOURCES) $(ENC_SOURCES)
|
||||
libwebpdspinclude_HEADERS = ../webp/types.h
|
||||
|
||||
noinst_HEADERS =
|
||||
noinst_HEADERS += ../dec/decode_vp8.h
|
||||
noinst_HEADERS += ../webp/decode.h
|
||||
@ -25,3 +33,12 @@ noinst_HEADERS += ../webp/decode.h
|
||||
libwebpdsp_la_LDFLAGS = -lm
|
||||
libwebpdsp_la_CPPFLAGS = $(USE_EXPERIMENTAL_CODE) $(USE_SWAP_16BIT_CSP)
|
||||
libwebpdspincludedir = $(includedir)/webp
|
||||
|
||||
if BUILD_LIBWEBPDECODER
|
||||
libwebpdspdecode_la_SOURCES = $(COMMON_SOURCES)
|
||||
libwebpdspdecodeinclude_HEADERS = $(libwebpdspinclude_HEADERS)
|
||||
|
||||
libwebpdspdecode_la_LDFLAGS = $(libwebpdsp_la_LDFLAGS)
|
||||
libwebpdspdecode_la_CPPFLAGS = $(libwebpdsp_la_CPPFLAGS)
|
||||
libwebpdspdecodeincludedir = $(libwebpdspincludedir)
|
||||
endif
|
||||
|
Reference in New Issue
Block a user