Debian Codegraph @

oss-fuzz/Makefile.am

raw
1 # FLAC - Free Lossless Audio Codec
2 # Copyright (C) 2019-2025 Xiph.Org Foundation
3 #
4 # This file is part the FLAC project. FLAC is comprised of several
5 # components distributed under different licenses. The codec libraries
6 # are distributed under Xiph.Org's BSD-like license (see the file
7 # COPYING.Xiph in this distribution). All other programs, libraries, and
8 # plugins are distributed under the GPL (see COPYING.GPL). The documentation
9 # is distributed under the Gnu FDL (see COPYING.FDL). Each file in the
10 # FLAC distribution contains at the top the terms under which it may be
11 # distributed.
12 #
13 # Since this particular file is relevant to all components of FLAC,
14 # it may be distributed under the Xiph.Org license, which is the least
15 # restrictive of those mentioned above. See the file COPYING.Xiph in this
16 # distribution.
17
18 AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/oss-fuzz
19
20 AM_CFLAGS = ${LIB_FUZZING_ENGINE}
21 AM_CXXFLAGS = -std=c++11 $(LIB_FUZZING_ENGINE)
22 LDADD = $(flac_libs)
23
24
25 EXTRA_DIST = \
26 fuzzer_encoder.dict \
27 common.h \
28 Readme.md \
29 fuzzing/datasource/datasource.hpp \
30 fuzzing/datasource/id.hpp \
31 fuzzing/exception.hpp \
32 fuzzing/memory.hpp \
33 fuzzing/types.hpp
34
35 noinst_PROGRAMS =
36
37 if USE_OSSFUZZERS
38 noinst_PROGRAMS += fuzzer_encoder fuzzer_encoder_v2 fuzzer_decoder fuzzer_seek fuzzer_metadata fuzzer_reencoder
39 if FLaC__CPU_IA32
40 else
41 noinst_PROGRAMS += fuzzer_tool_metaflac fuzzer_tool_flac
42 endif
43 endif
44
45 fuzzer_encoder_SOURCES = encoder.cc
46 fuzzer_encoder_v2_SOURCES = encoder_v2.cc
47 fuzzer_decoder_SOURCES = decoder.cc
48 fuzzer_seek_SOURCES = seek.cc
49 fuzzer_metadata_SOURCES = metadata.cc
50 fuzzer_reencoder_SOURCES = reencoder.cc
51 fuzzer_tool_flac_SOURCES = ${flac_SOURCES} empty.cc tool_flac.c # empty.cc is to force use of C++ linker, which is mandated by oss-fuzz
52 fuzzer_tool_flac_LDADD = \
53 $(top_builddir)/src/share/utf8/libutf8.la \
54 $(top_builddir)/src/share/grabbag/libgrabbag.la \
55 $(top_builddir)/src/share/getopt/libgetopt.la \
56 $(top_builddir)/src/share/replaygain_analysis/libreplaygain_analysis.la \
57 $(top_builddir)/src/share/replaygain_synthesis/libreplaygain_synthesis.la \
58 $(top_builddir)/src/libFLAC/libFLAC.la \
59 @LTLIBICONV@ \
60 -lm
61 fuzzer_tool_metaflac_SOURCES = ${metaflac_SOURCES} empty.cc tool_metaflac.c # empty.cc is to force use of C++ linker, which is mandated by oss-fuzz
62 fuzzer_tool_metaflac_LDADD = \
63 $(top_builddir)/src/share/utf8/libutf8.la \
64 $(top_builddir)/src/share/grabbag/libgrabbag.la \
65 $(top_builddir)/src/share/getopt/libgetopt.la \
66 $(top_builddir)/src/share/replaygain_analysis/libreplaygain_analysis.la \
67 $(top_builddir)/src/share/replaygain_synthesis/libreplaygain_synthesis.la \
68 $(top_builddir)/src/libFLAC/libFLAC.la \
69 @LTLIBICONV@ \
70 -lm
71
72 flac_libs = \
73 $(top_builddir)/src/libFLAC/libFLAC-static.la \
74 $(top_builddir)/src/libFLAC++/libFLAC++-static.la \
75 @OGG_LIBS@ \
76 -lm
77
78 flac_SOURCES = \
79 ${top_builddir}/src/flac/analyze.c \
80 ${top_builddir}/src/flac/decode.c \
81 ${top_builddir}/src/flac/encode.c \
82 ${top_builddir}/src/flac/foreign_metadata.c \
83 ${top_builddir}/src/flac/local_string_utils.c \
84 ${top_builddir}/src/flac/utils.c \
85 ${top_builddir}/src/flac/vorbiscomment.c \
86 ${top_builddir}/src/flac/analyze.h \
87 ${top_builddir}/src/flac/decode.h \
88 ${top_builddir}/src/flac/encode.h \
89 ${top_builddir}/src/flac/foreign_metadata.h \
90 ${top_builddir}/src/flac/local_string_utils.h \
91 ${top_builddir}/src/flac/utils.h \
92 ${top_builddir}/src/flac/vorbiscomment.h
93
94 metaflac_SOURCES = \
95 ${top_builddir}/src/metaflac/operations.c \
96 ${top_builddir}/src/metaflac/operations_shorthand_cuesheet.c \
97 ${top_builddir}/src/metaflac/operations_shorthand_picture.c \
98 ${top_builddir}/src/metaflac/operations_shorthand_seektable.c \
99 ${top_builddir}/src/metaflac/operations_shorthand_streaminfo.c \
100 ${top_builddir}/src/metaflac/operations_shorthand_vorbiscomment.c \
101 ${top_builddir}/src/metaflac/options.c \
102 ${top_builddir}/src/metaflac/usage.c \
103 ${top_builddir}/src/metaflac/utils.c \
104 ${top_builddir}/src/metaflac/operations.h \
105 ${top_builddir}/src/metaflac/operations_shorthand.h \
106 ${top_builddir}/src/metaflac/options.h \
107 ${top_builddir}/src/metaflac/usage.h \
108 ${top_builddir}/src/metaflac/utils.h