mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-28 14:38:21 +01:00
build: fix install race on shared headers
subdirectories with more than one target can have the install targets run in parallel with make -jN. group the shared headers in one place to produce a common install target. Change-Id: I1f3aa338a8ee6d681de1e5d0b2c6244d2c3d5451
This commit is contained in:
parent
42b611a491
commit
9048494df6
@ -15,11 +15,14 @@ if BUILD_LIBWEBPDECODER
|
|||||||
lib_LTLIBRARIES += libwebpdecoder.la
|
lib_LTLIBRARIES += libwebpdecoder.la
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
common_HEADERS =
|
||||||
|
common_HEADERS += webp/decode.h
|
||||||
|
common_HEADERS += webp/types.h
|
||||||
|
commondir = $(includedir)/webp
|
||||||
|
|
||||||
libwebp_la_SOURCES =
|
libwebp_la_SOURCES =
|
||||||
libwebpinclude_HEADERS =
|
libwebpinclude_HEADERS =
|
||||||
libwebpinclude_HEADERS += webp/decode.h
|
|
||||||
libwebpinclude_HEADERS += webp/encode.h
|
libwebpinclude_HEADERS += webp/encode.h
|
||||||
libwebpinclude_HEADERS += webp/types.h
|
|
||||||
noinst_HEADERS =
|
noinst_HEADERS =
|
||||||
noinst_HEADERS += webp/format_constants.h
|
noinst_HEADERS += webp/format_constants.h
|
||||||
|
|
||||||
@ -39,9 +42,6 @@ pkgconfig_DATA = libwebp.pc
|
|||||||
|
|
||||||
if BUILD_LIBWEBPDECODER
|
if BUILD_LIBWEBPDECODER
|
||||||
libwebpdecoder_la_SOURCES =
|
libwebpdecoder_la_SOURCES =
|
||||||
libwebpdecoderinclude_HEADERS =
|
|
||||||
libwebpdecoderinclude_HEADERS += webp/decode.h
|
|
||||||
libwebpdecoderinclude_HEADERS += webp/types.h
|
|
||||||
|
|
||||||
libwebpdecoder_la_LIBADD =
|
libwebpdecoder_la_LIBADD =
|
||||||
libwebpdecoder_la_LIBADD += dec/libwebpdecode.la
|
libwebpdecoder_la_LIBADD += dec/libwebpdecode.la
|
||||||
@ -49,7 +49,6 @@ if BUILD_LIBWEBPDECODER
|
|||||||
libwebpdecoder_la_LIBADD += utils/libwebputilsdecode.la
|
libwebpdecoder_la_LIBADD += utils/libwebputilsdecode.la
|
||||||
|
|
||||||
libwebpdecoder_la_LDFLAGS = -no-undefined -version-info 0:0:0
|
libwebpdecoder_la_LDFLAGS = -no-undefined -version-info 0:0:0
|
||||||
libwebpdecoderincludedir = $(includedir)/webp
|
|
||||||
pkgconfig_DATA += libwebpdecoder.pc
|
pkgconfig_DATA += libwebpdecoder.pc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -5,7 +5,10 @@ if BUILD_LIBWEBPDECODER
|
|||||||
noinst_LTLIBRARIES += libwebpdspdecode.la
|
noinst_LTLIBRARIES += libwebpdspdecode.la
|
||||||
endif
|
endif
|
||||||
|
|
||||||
COMMON_SOURCES =
|
common_HEADERS = ../webp/types.h
|
||||||
|
commondir = $(includedir)/webp
|
||||||
|
|
||||||
|
COMMON_SOURCES =
|
||||||
COMMON_SOURCES += cpu.c
|
COMMON_SOURCES += cpu.c
|
||||||
COMMON_SOURCES += dec.c
|
COMMON_SOURCES += dec.c
|
||||||
COMMON_SOURCES += dec_neon.c
|
COMMON_SOURCES += dec_neon.c
|
||||||
@ -19,13 +22,12 @@ COMMON_SOURCES += upsampling_sse2.c
|
|||||||
COMMON_SOURCES += yuv.c
|
COMMON_SOURCES += yuv.c
|
||||||
COMMON_SOURCES += yuv.h
|
COMMON_SOURCES += yuv.h
|
||||||
|
|
||||||
ENC_SOURCES =
|
ENC_SOURCES =
|
||||||
ENC_SOURCES += enc.c
|
ENC_SOURCES += enc.c
|
||||||
ENC_SOURCES += enc_neon.c
|
ENC_SOURCES += enc_neon.c
|
||||||
ENC_SOURCES += enc_sse2.c
|
ENC_SOURCES += enc_sse2.c
|
||||||
|
|
||||||
libwebpdsp_la_SOURCES = $(COMMON_SOURCES) $(ENC_SOURCES)
|
libwebpdsp_la_SOURCES = $(COMMON_SOURCES) $(ENC_SOURCES)
|
||||||
libwebpdspinclude_HEADERS = ../webp/types.h
|
|
||||||
|
|
||||||
noinst_HEADERS =
|
noinst_HEADERS =
|
||||||
noinst_HEADERS += ../dec/decode_vp8.h
|
noinst_HEADERS += ../dec/decode_vp8.h
|
||||||
@ -33,13 +35,10 @@ noinst_HEADERS += ../webp/decode.h
|
|||||||
|
|
||||||
libwebpdsp_la_LDFLAGS = -lm
|
libwebpdsp_la_LDFLAGS = -lm
|
||||||
libwebpdsp_la_CPPFLAGS = $(USE_EXPERIMENTAL_CODE) $(USE_SWAP_16BIT_CSP)
|
libwebpdsp_la_CPPFLAGS = $(USE_EXPERIMENTAL_CODE) $(USE_SWAP_16BIT_CSP)
|
||||||
libwebpdspincludedir = $(includedir)/webp
|
|
||||||
|
|
||||||
if BUILD_LIBWEBPDECODER
|
if BUILD_LIBWEBPDECODER
|
||||||
libwebpdspdecode_la_SOURCES = $(COMMON_SOURCES)
|
libwebpdspdecode_la_SOURCES = $(COMMON_SOURCES)
|
||||||
libwebpdspdecodeinclude_HEADERS = $(libwebpdspinclude_HEADERS)
|
|
||||||
|
|
||||||
libwebpdspdecode_la_LDFLAGS = $(libwebpdsp_la_LDFLAGS)
|
libwebpdspdecode_la_LDFLAGS = $(libwebpdsp_la_LDFLAGS)
|
||||||
libwebpdspdecode_la_CPPFLAGS = $(libwebpdsp_la_CPPFLAGS)
|
libwebpdspdecode_la_CPPFLAGS = $(libwebpdsp_la_CPPFLAGS)
|
||||||
libwebpdspdecodeincludedir = $(libwebpdspincludedir)
|
|
||||||
endif
|
endif
|
||||||
|
@ -5,7 +5,10 @@ if BUILD_LIBWEBPDECODER
|
|||||||
noinst_LTLIBRARIES += libwebputilsdecode.la
|
noinst_LTLIBRARIES += libwebputilsdecode.la
|
||||||
endif
|
endif
|
||||||
|
|
||||||
COMMON_SOURCES =
|
common_HEADERS = ../webp/types.h
|
||||||
|
commondir = $(includedir)/webp
|
||||||
|
|
||||||
|
COMMON_SOURCES =
|
||||||
COMMON_SOURCES += bit_reader.c
|
COMMON_SOURCES += bit_reader.c
|
||||||
COMMON_SOURCES += bit_reader.h
|
COMMON_SOURCES += bit_reader.h
|
||||||
COMMON_SOURCES += color_cache.c
|
COMMON_SOURCES += color_cache.c
|
||||||
@ -23,7 +26,7 @@ COMMON_SOURCES += thread.h
|
|||||||
COMMON_SOURCES += utils.c
|
COMMON_SOURCES += utils.c
|
||||||
COMMON_SOURCES += utils.h
|
COMMON_SOURCES += utils.h
|
||||||
|
|
||||||
ENC_SOURCES =
|
ENC_SOURCES =
|
||||||
ENC_SOURCES += bit_writer.c
|
ENC_SOURCES += bit_writer.c
|
||||||
ENC_SOURCES += bit_writer.h
|
ENC_SOURCES += bit_writer.h
|
||||||
ENC_SOURCES += huffman_encode.c
|
ENC_SOURCES += huffman_encode.c
|
||||||
@ -31,15 +34,8 @@ ENC_SOURCES += huffman_encode.h
|
|||||||
ENC_SOURCES += quant_levels.c
|
ENC_SOURCES += quant_levels.c
|
||||||
ENC_SOURCES += quant_levels.h
|
ENC_SOURCES += quant_levels.h
|
||||||
|
|
||||||
|
|
||||||
libwebputils_la_SOURCES = $(COMMON_SOURCES) $(ENC_SOURCES)
|
libwebputils_la_SOURCES = $(COMMON_SOURCES) $(ENC_SOURCES)
|
||||||
|
|
||||||
libwebputilsinclude_HEADERS = ../webp/types.h
|
|
||||||
libwebputilsincludedir = $(includedir)/webp
|
|
||||||
|
|
||||||
if BUILD_LIBWEBPDECODER
|
if BUILD_LIBWEBPDECODER
|
||||||
libwebputilsdecode_la_SOURCES = $(COMMON_SOURCES)
|
libwebputilsdecode_la_SOURCES = $(COMMON_SOURCES)
|
||||||
|
|
||||||
libwebputilsdecodeinclude_HEADERS = $(libwebputilsinclude_HEADERS)
|
|
||||||
libwebputilsdecodeincludedir = $(libwebputilsincludedir)
|
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user