1
0
mirror of git://f0xx.org/android_cast synced 2026-07-29 04:18:09 +03:00
This commit is contained in:
Anton Afanasyeu
2026-05-18 15:55:02 +02:00
parent f547770288
commit f7e200fa94
121 changed files with 140 additions and 10838 deletions

View File

@@ -16,14 +16,17 @@ The app loads `libandroidcast_codecs.so` for availability probes and future soft
1. `git submodule update --init third-party/libvpx`
2. Build `libvpx.a` for your ABI: `./scripts/build-native-codecs.sh arm64-v8a`
(If the repo path has **spaces**, the script uses `/tmp/androidcast-libvpx-$USER` automatically.)
3. Rebuild the APK with the static library path:
3. Build **each ABI** you ship (Gradle links `build/native/<abi>/libvpx.a` automatically):
```bash
export ANDROIDCAST_LIBVPX_LIB=/path/to/libvpx.a
./scripts/build-native-codecs.sh arm64-v8a
./scripts/build-native-codecs.sh armeabi-v7a # if armeabi-v7a is in your APK
./gradlew assembleDebug
```
CMake defines `ANDROIDCAST_HAVE_LIBVPX=1` and links the archive when the variable is set.
Optional override: `ANDROIDCAST_LIBVPX_LIB` only applies when its path contains the current ABI name (e.g. `.../arm64-v8a/libvpx.a`).
ABIs without a matching `libvpx.a` still build; software VPx is disabled on those architectures.
## Stream protection defaults