• Home
  • Raw
  • Download

Lines Matching +full:- +full:dzlib_root

1 #!/bin/bash -eu
8 # http://www.apache.org/licenses/LICENSE-2.0
23 ./configure --static --prefix=$WORK
24 make -j$(nproc) all
30 autoreconf -fi
32 --enable-static \
33 --disable-shared \
34 --disable-docs \
35 --disable-dependency-tracking \
36 --prefix=$WORK
37 make -j$(nproc)
45 --enable-static \
46 --disable-shared \
47 --disable-dependency-tracking \
48 --prefix=$WORK
49 make -j$(nproc)
55 mkdir -p build/linux
57 cmake -G "Unix Makefiles" \
58 -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX \
59 -DCMAKE_C_FLAGS="$CFLAGS" -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
60 -DCMAKE_INSTALL_PREFIX=$WORK -DCMAKE_INSTALL_LIBDIR=lib \
61 -DENABLE_SHARED=FALSE -DCONFIG_PIC=1 \
62 -DENABLE_EXAMPLES=0 -DENABLE_DOCS=0 -DENABLE_TESTS=0 \
63 -DCONFIG_SIZE_LIMIT=1 \
64 -DDECODE_HEIGHT_LIMIT=12288 -DDECODE_WIDTH_LIMIT=12288 \
65 -DDO_RANGE_CHECK_CLAMP=1 \
66 -DAOM_MAX_ALLOCABLE_MEMORY=536870912 \
67 -DAOM_TARGET_CPU=generic \
70 make -j$(nproc)
76 autoreconf -fi
78 --disable-shared \
79 --enable-static \
80 --disable-examples \
81 --disable-go \
82 --prefix=$WORK \
83 CPPFLAGS=-I$WORK/include
85 make -j$(nproc)
89 # libjpeg-turbo
90 pushd $SRC/libjpeg-turbo
91 cmake . -DCMAKE_INSTALL_PREFIX=$WORK -DENABLE_STATIC=TRUE -DENABLE_SHARED=FALSE -DWITH_TURBOJPEG=FA…
92 make -j$(nproc)
98 sed -ie "s/option WARNING /& disabled/" scripts/pnglibconf.dfa
99 autoreconf -fi
101 --prefix=$WORK \
102 --disable-shared \
103 --disable-dependency-tracking
104 make -j$(nproc)
110 cmake . -DCMAKE_INSTALL_PREFIX=$WORK -DSPNG_STATIC=TRUE -DSPNG_SHARED=FALSE -DZLIB_ROOT=$WORK
111 make -j$(nproc)
113 # Fix pkg-config file of libspng
114 sed -i'.bak' "s/-lspng/&_static/" $WORK/lib/pkgconfig/libspng.pc
119 autoreconf -fi
121 --enable-libwebpdemux \
122 --enable-libwebpmux \
123 --disable-shared \
124 --disable-jpeg \
125 --disable-tiff \
126 --disable-gif \
127 --disable-wic \
128 --disable-threading \
129 --disable-dependency-tracking \
130 --prefix=$WORK
131 make -j$(nproc)
138 autoreconf -fi
140 --disable-lzma \
141 --disable-shared \
142 --disable-dependency-tracking \
143 --prefix=$WORK
144 make -j$(nproc)
148 # jpeg-xl (libjxl)
150 sed -i'.bak' "/add_subdirectory(tools)/d" CMakeLists.txt
152 sed -i'.bak' "/set(CMAKE_EXE_LINKER_FLAGS/{N;d;}" CMakeLists.txt
153 cmake -G "Unix Makefiles" \
154 -DCMAKE_BUILD_TYPE=Release \
155 -DCMAKE_C_COMPILER=$CC \
156 -DCMAKE_CXX_COMPILER=$CXX \
157 -DCMAKE_C_FLAGS="$CFLAGS" \
158 -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
159 -DCMAKE_EXE_LINKER_FLAGS="$LDFLAGS" \
160 -DCMAKE_MODULE_LINKER_FLAGS="$LDFLAGS" \
161 -DCMAKE_INSTALL_PREFIX="$WORK" \
162 -DCMAKE_THREAD_LIBS_INIT="-lpthread" \
163 -DCMAKE_USE_PTHREADS_INIT=1 \
164 -DBUILD_SHARED_LIBS=0 \
165 -DBUILD_TESTING=0 \
166 -DJPEGXL_STATIC=1 \
167 -DJPEGXL_FORCE_SYSTEM_BROTLI=1 \
168 -DJPEGXL_ENABLE_FUZZERS=0 \
169 -DJPEGXL_ENABLE_MANPAGES=0 \
170 -DJPEGXL_ENABLE_BENCHMARK=0 \
171 -DJPEGXL_ENABLE_EXAMPLES=0 \
172 -DJPEGXL_ENABLE_SKCMS=0 \
173 -DJPEGXL_ENABLE_SJPEG=0 \
175 make -j$(nproc)
181 meson setup --prefix=$WORK --libdir=lib --default-library=static build
183 ninja -j$(nproc)
189 meson setup --prefix=$WORK --libdir=lib --default-library=static build
191 ninja -j$(nproc)
196 sed -i'.bak' "/test/d" Makefile.am
197 sed -i'.bak' "/tools/d" Makefile.am
198 PKG_CONFIG="pkg-config --static" ./autogen.sh \
199 --disable-shared \
200 --disable-modules \
201 --disable-gtk-doc \
202 --disable-gtk-doc-html \
203 --disable-dependency-tracking \
204 --prefix=$WORK
205 make -j$(nproc) CCLD=$CXX
209 mkdir -p fuzz/corpus
211 $SRC/afl-testcases/{gif*,jpeg*,png,tiff,webp}/full/images \
213 test/test-suite/images \
214 -type f -size -2k \
215 -exec bash -c 'hash=($(sha1sum {})); mv {} fuzz/corpus/$hash' ';'
216 zip -jrq $OUT/seed_corpus.zip fuzz/corpus
221 $CXX $CXXFLAGS -std=c++11 "$fuzzer" -o "$OUT/$target" \
222 -I$WORK/include \
223 -I/usr/include/glib-2.0 \
224 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include \
244 -Wl,-Bstatic \
245 -lfftw3 -lexpat -lbrotlienc -lbrotlidec -lbrotlicommon \
246 -lgmodule-2.0 -lgio-2.0 -lgobject-2.0 -lffi -lglib-2.0 \
247 -lresolv -lmount -lblkid -lselinux -lsepol -lpcre \
248 -Wl,-Bdynamic -pthread
249 ln -sf "seed_corpus.zip" "$OUT/${target}_seed_corpus.zip"
253 find fuzz -name '*_fuzzer.dict' -exec cp -v '{}' $OUT ';'
254 find fuzz -name '*_fuzzer.options' -exec cp -v '{}' $OUT ';'