INNER CODE UNIT · Shell
version
CollaboraOnline/online · docker/from-source-gh-action/build.sh:139
version=${tarball#poco-}
version=${version%%-all.*}
test -n "$tarball" -a -n "$sha256" -a -n "$version" || return 1
mkdir -p external/tarballs || return 1
# POCO is not on the LibreOffice tarball mirror, it has its own bucket.
wget -nc -P external/tarballs \
"https://pocoproject.org/releases/poco-$version/$tarball" || return 1
echo "$sha256 external/tarballs/$tarball" | sha256sum -c - || return 1
make -j "$(nproc)" -C external/poco BUILDDIR="$engine_dir" ENVCFLAGSCXX="$engine_abi_flag"
}
if [ -z "$ENGINE_ASSETS" ]; then
# build engine from source
( cd "$engine_dir" && ./autogen.sh --with-distro=CPLinux-LOKit --disable-epm --without-package-format --disable-symbols ) || exit 1
( cd "$engine_dir" && make $ENGINE_BUILD_TARGET ) || exit 1
detect_engine_cxx_abi
else
# drop in prebuilt engine assets