mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Build cmake AV1 outside of CITC
PiperOrigin-RevId: 323988640
This commit is contained in:
parent
12bd36d41a
commit
7b300ca411
1 changed files with 11 additions and 2 deletions
|
|
@ -29,8 +29,17 @@ android {
|
||||||
// Configure the native build only if libgav1 is present to avoid gradle sync
|
// Configure the native build only if libgav1 is present to avoid gradle sync
|
||||||
// failures if libgav1 hasn't been built according to the README instructions.
|
// failures if libgav1 hasn't been built according to the README instructions.
|
||||||
if (project.file('src/main/jni/libgav1').exists()) {
|
if (project.file('src/main/jni/libgav1').exists()) {
|
||||||
android.externalNativeBuild.cmake.path = 'src/main/jni/CMakeLists.txt'
|
android.externalNativeBuild.cmake {
|
||||||
android.externalNativeBuild.cmake.version = '3.7.1+'
|
path = 'src/main/jni/CMakeLists.txt'
|
||||||
|
version = '3.7.1+'
|
||||||
|
if (project.hasProperty('externalNativeBuildDir')) {
|
||||||
|
if (!new File(externalNativeBuildDir).isAbsolute()) {
|
||||||
|
ext.externalNativeBuildDir =
|
||||||
|
new File(rootDir, it.externalNativeBuildDir)
|
||||||
|
}
|
||||||
|
buildStagingDirectory = "${externalNativeBuildDir}/${project.name}"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue