Skip to content

Commit 8900194

Browse files
committed
dav1d use meson and support android
1 parent 61bab30 commit 8900194

20 files changed

+237
-71
lines changed

.github/workflows/dav1d.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,22 @@ on:
55
pull_request:
66
branches: [master]
77

8-
name: Create dav1d Release
8+
name: Dav1d
99

1010
jobs:
1111
build:
12-
name: compile dav1d then deploy
12+
name: compile apple and android dav1d then deploy
1313
runs-on: macos-14
1414
env:
1515
GH_TOKEN: ${{ github.token }}
1616
steps:
1717
- name: Checkout code
1818
uses: actions/checkout@v4
19+
- uses: nttld/setup-ndk@v1
20+
id: setup-ndk
21+
with:
22+
ndk-version: r21e
23+
add-to-path: false
24+
local-cache: true
1925
- name: One Step
2026
run: .github/workflows/onestep.sh dav1d all

configs/libs/dav1d.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ export LIB_NAME='dav1d'
2020
export LIPO_LIBS="libdav1d"
2121
export LIB_DEPENDS_BIN="meson ninja nasm"
2222
export GIT_LOCAL_REPO=extra/dav1d
23-
export GIT_COMMIT=1.5.0
23+
export GIT_COMMIT=1.5.1
2424
export GIT_WITH_SUBMODULE=0
2525
export REPO_DIR=dav1d
26-
export GIT_REPO_VERSION=1.5.0
26+
export GIT_REPO_VERSION=1.5.1
2727
export PRE_COMPILE_TAG=dav1d-1.5.0-241227150820
2828

2929
# you can export GIT_DAV1D_UPSTREAM=git@xx:yy/dav1d.git use your mirror
File renamed without changes.

configs/meson-crossfiles/arm64-ios-simulator.meson

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
# these might not work for you. Use the googels and xcrun.
44
# https://mesonbuild.com/Reference-tables.html#cpu-families
55

6+
[binaries]
7+
c = 'clang'
8+
cpp = 'clang++'
9+
ar = 'ar'
10+
strip = 'strip'
11+
pkgconfig = 'pkg-config'
612

713
[built-in options]
814
c_args = ['-arch', 'arm64', '-mios-simulator-version-min=9.0', '-Os', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk']

configs/meson-crossfiles/arm64-ios.meson

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
# Apple keeps changing the location and names of files so
33
# these might not work for you. Use the googels and xcrun.
44

5+
[binaries]
6+
c = 'clang'
7+
cpp = 'clang++'
8+
ar = 'ar'
9+
strip = 'strip'
10+
pkgconfig = 'pkg-config'
11+
512
[built-in options]
613
c_args = ['-arch', 'arm64', '-miphoneos-version-min=9.0', '-Os', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk']
714
cpp_args = ['-arch', 'arm64', '-miphoneos-version-min=9.0', '-Os', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk']

configs/meson-crossfiles/arm64-macos.meson

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
# Apple keeps changing the location and names of files so
33
# these might not work for you. Use the googels and xcrun.
44

5+
[binaries]
6+
c = 'clang'
7+
cpp = 'clang++'
8+
ar = 'ar'
9+
strip = 'strip'
10+
pkgconfig = 'pkg-config'
11+
512
[built-in options]
613
c_args = ['-arch', 'arm64', '-mmacosx-version-min=10.11', '-Os']
714
cpp_args = ['-arch', 'arm64', '-mmacosx-version-min=10.11', '-Os']

configs/meson-crossfiles/arm64-tvos-simulator.meson

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
# Apple keeps changing the location and names of files so
33
# these might not work for you. Use the googels and xcrun.
44

5+
[binaries]
6+
c = 'clang'
7+
cpp = 'clang++'
8+
ar = 'ar'
9+
strip = 'strip'
10+
pkgconfig = 'pkg-config'
11+
512
[built-in options]
613
c_args = ['-arch', 'arm64', '-mtvos-simulator-version-min=12.0', '-Os', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator.sdk']
714
cpp_args = ['-arch', 'arm64', '-mtvos-simulator-version-min=12.0', '-Os', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator.sdk']

configs/meson-crossfiles/arm64-tvos.meson

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
# Apple keeps changing the location and names of files so
33
# these might not work for you. Use the googels and xcrun.
44

5+
[binaries]
6+
c = 'clang'
7+
cpp = 'clang++'
8+
ar = 'ar'
9+
strip = 'strip'
10+
pkgconfig = 'pkg-config'
11+
512
[built-in options]
613
c_args = ['-arch', 'arm64', '-mtvos-version-min=12.0', '-Os', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk']
714
cpp_args = ['-arch', 'arm64', '-mtvos-version-min=12.0', '-Os', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk']

configs/meson-crossfiles/arm-android.meson renamed to configs/meson-crossfiles/armv7a-android.meson

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[binaries]
2-
c = 'armv7a-linux-androideabi19-clang'
3-
cpp = 'armv7a-linux-androideabi19-clang++'
2+
c = 'armv7a-linux-androideabi21-clang'
3+
cpp = 'armv7a-linux-androideabi21-clang++'
44
ar = 'llvm-ar'
55
strip = 'llvm-strip'
66
pkgconfig = 'pkg-config'

configs/meson-crossfiles/x86-android.meson

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[binaries]
2-
c = 'i686-linux-android19-clang'
3-
cpp = 'i686-linux-android19-clang++'
2+
c = 'i686-linux-android21-clang'
3+
cpp = 'i686-linux-android21-clang++'
44
ar = 'llvm-ar'
55
strip = 'llvm-strip'
66
pkgconfig = 'pkg-config'

0 commit comments

Comments
 (0)