mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
zstd: build with cmake-make and remove host dependancy of ccache:host
ccache:host now uses zstd to build, so update the dependancies and force the use of the LOCAL_CC and LOCAL_CXX compilers.
This commit is contained in:
parent
9f9de20cee
commit
e9c49900ab
@ -7,16 +7,33 @@ PKG_SHA256="3ea06164971edec7caa2045a1932d757c1815858e4c2b68c7ef812647535c23f"
|
||||
PKG_LICENSE="BSD/GPLv2"
|
||||
PKG_SITE="http://www.zstd.net"
|
||||
PKG_URL="https://github.com/facebook/zstd/releases/download/v${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}.tar.zst"
|
||||
PKG_DEPENDS_HOST="ccache:host meson:host ninja:host"
|
||||
PKG_DEPENDS_HOST="cmake:host make:host"
|
||||
PKG_DEPENDS_TARGET="toolchain"
|
||||
PKG_LONGDESC="A fast real-time compression algorithm."
|
||||
# Override toolchain as meson and ninja are not built yet
|
||||
# and zstd is a dependency of ccache
|
||||
PKG_TOOLCHAIN="cmake-make"
|
||||
|
||||
configure_package() {
|
||||
PKG_MESON_SCRIPT="${PKG_BUILD}/build/meson/meson.build"
|
||||
PKG_CMAKE_SCRIPT="${PKG_BUILD}/build/cmake/CMakeLists.txt"
|
||||
}
|
||||
|
||||
PKG_MESON_OPTS_HOST="-Dlegacy_level=0 \
|
||||
-Dbin_programs=false \
|
||||
-Dzlib=disabled \
|
||||
-Dlzma=disabled \
|
||||
-Dlz4=disabled"
|
||||
configure_host() {
|
||||
# custom cmake build to override the LOCAL_CC/CXX
|
||||
setup_toolchain host:cmake-make
|
||||
cp ${CMAKE_CONF} cmake-zstd.conf
|
||||
|
||||
echo "SET(CMAKE_C_COMPILER $LOCAL_CC)" >> cmake-zstd.conf
|
||||
echo "SET(CMAKE_CXX_COMPILER $LOCAL_CXX)" >> cmake-zstd.conf
|
||||
|
||||
cmake -DCMAKE_TOOLCHAIN_FILE=cmake-zstd.conf \
|
||||
-DCMAKE_INSTALL_PREFIX=${TOOLCHAIN} \
|
||||
-DZSTD_LEGACY_SUPPORT=0 \
|
||||
-DZSTD_BUILD_PROGRAMS=OFF \
|
||||
-DZSTD_BUILD_TESTS=OFF \
|
||||
${PKG_CMAKE_SCRIPT%/*}
|
||||
}
|
||||
|
||||
make_host() {
|
||||
:
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user