Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
fdintino committed Sep 11, 2023
1 parent 70d544c commit ff834f4
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions wheelbuild/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,12 @@ function build_libsharpyuv {
"${cmake_flags[@]}" \
&& ninja sharpyuv)

cp libwebp-$LIBWEBP_SHA/build/libsharpyuv.a /usr/local/lib
cp libwebp-$LIBWEBP_SHA/build/sharpyuv/libsharpyuv.pc /usr/local/lib/pkgconfig
mkdir -p /usr/local/include/webp/sharpyuv
cp libwebp-$LIBWEBP_SHA/sharpyuv/*.h /usr/local/include/webp/sharpyuv

require_package libsharpyuv
group_end
touch libsharpyuv-stamp
}
Expand Down Expand Up @@ -407,7 +413,7 @@ function build_libyuv {
-DBUILD_SHARED_LIBS=OFF \
-DCMAKE_BUILD_TYPE=Release \
"${cmake_flags[@]}" .. \
&& ninja yuv)
&& ninja install)
group_end
touch libyuv-stamp
}
Expand Down Expand Up @@ -464,20 +470,15 @@ function build_libavif {
group_end

build_libsharpyuv
ln -s $PWD/libwebp-$LIBWEBP_SHA libavif-$LIBAVIF_VERSION/ext/libwebp
LIBAVIF_CMAKE_FLAGS+=(-DAVIF_LOCAL_LIBSHARPYUV=ON)

build_libyuv
ln -s $PWD/libyuv-$LIBYUV_SHA libavif-$LIBAVIF_VERSION/ext/libyuv
LIBAVIF_CMAKE_FLAGS+=(-DAVIF_LOCAL_LIBYUV=ON)

group_start "Build libavif"

mkdir -p libavif-$LIBAVIF_VERSION/build

(cd libavif-$LIBAVIF_VERSION/build \
&& cmake .. \
-DBUILD_SHARED_LIBS=OFF \
-DCMAKE_INSTALL_PREFIX=$BUILD_PREFIX \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
Expand Down

0 comments on commit ff834f4

Please sign in to comment.