parent
421ac45f3a
commit
2ac1d3bc09
@ -0,0 +1,44 @@ |
|||||||
|
CROSS_FILE_NAME=crossfile-${ANDROID_ABI}.meson |
||||||
|
|
||||||
|
rm ${CROSS_FILE_NAME} |
||||||
|
|
||||||
|
cat > "${CROSS_FILE_NAME}" << EOF |
||||||
|
[binaries] |
||||||
|
c = '${FAM_CC}' |
||||||
|
cpp = '${FAM_CXX}' |
||||||
|
ar = '${FAM_AR}' |
||||||
|
strip = '${FAM_STRIP}' |
||||||
|
objcopy = '${FAM_OBJCOPY}' |
||||||
|
pkgconfig = '$(which pkg-config)' |
||||||
|
|
||||||
|
[properties] |
||||||
|
needs_exe_wrapper = true |
||||||
|
sys_root = '${SYSROOT_PATH}' |
||||||
|
|
||||||
|
[host_machine] |
||||||
|
system = 'linux' |
||||||
|
cpu_family = '${CPU_FAMILY}' |
||||||
|
cpu = '${TARGET_TRIPLE_MACHINE_BINUTILS}' |
||||||
|
endian = 'little' |
||||||
|
|
||||||
|
[paths] |
||||||
|
prefix = '${INSTALL_DIR}' |
||||||
|
EOF |
||||||
|
|
||||||
|
BUILD_DIRECTORY=build/${ANDROID_ABI} |
||||||
|
|
||||||
|
rm -rf ${BUILD_DIRECTORY} |
||||||
|
|
||||||
|
meson . ${BUILD_DIRECTORY} \ |
||||||
|
--cross-file ${CROSS_FILE_NAME} \ |
||||||
|
--default-library=static \ |
||||||
|
-Denable_asm=true \ |
||||||
|
-Denable_tools=false \ |
||||||
|
-Denable_tests=false \ |
||||||
|
-Denable_examples=false \ |
||||||
|
-Dtestdata_tests=false |
||||||
|
|
||||||
|
cd ${BUILD_DIRECTORY} |
||||||
|
|
||||||
|
${NINJA_EXECUTABLE} |
||||||
|
${NINJA_EXECUTABLE} install |
@ -0,0 +1,17 @@ |
|||||||
|
# Script to download Dav1d's source code |
||||||
|
|
||||||
|
# Exports SOURCES_DIR_libdav1d - path where actual sources are stored |
||||||
|
|
||||||
|
DAV1D_VERSION=0.5.1 |
||||||
|
echo "Using libdav1d $DAV1D_VERSION" |
||||||
|
DAV1D_SOURCES=dav1d-${DAV1D_VERSION} |
||||||
|
|
||||||
|
if [[ ! -d "$DAV1D_SOURCES" ]]; then |
||||||
|
TARGET_FILE_NAME=dav1d-${DAV1D_VERSION}.tar.gz |
||||||
|
|
||||||
|
curl https://code.videolan.org/videolan/dav1d/-/archive/${DAV1D_VERSION}/dav1d-${DAV1D_VERSION}.tar.gz --output ${TARGET_FILE_NAME} |
||||||
|
tar xf ${TARGET_FILE_NAME} -C . |
||||||
|
rm ${TARGET_FILE_NAME} |
||||||
|
fi |
||||||
|
|
||||||
|
export SOURCES_DIR_libdav1d=$(pwd)/${DAV1D_SOURCES} |
Loading…
Reference in new issue