mirror of
git://f0xx.org/android_cast
synced 2026-07-29 04:18:09 +03:00
snap
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user