Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1312a542
authored
Oct 09, 2019
by
sofijajvc
Committed by
Ian Baker
Oct 10, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Avoid sync failures if libgav1 isn't present
PiperOrigin-RevId: 273734495
parent
3d0886f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
extensions/av1/build.gradle
extensions/av1/build.gradle
View file @
1312a542
...
@@ -54,13 +54,15 @@ android {
...
@@ -54,13 +54,15 @@ android {
}
}
}
}
// Check that the Android NDK and CMake are present, to avoid gradle sync
// Check that the Android NDK, CMake and libgav1 are present, to avoid gradle
// failures if they aren't installed. To use the extension it is necessary to
// sync failures if the tools aren't installed or libgav1 is missing. To use
// install the NDK and CMake from the SDK Manager.
// the extension it is necessary to install the NDK and CMake from the SDK
// Manager and fetch libgav1 following the steps in README.
def
ndkDirectory
=
project
.
android
.
ndkDirectory
def
ndkDirectory
=
project
.
android
.
ndkDirectory
def
sdkDirectory
=
project
.
android
.
sdkDirectory
def
sdkDirectory
=
project
.
android
.
sdkDirectory
if
(
ndkDirectory
!=
null
&&
!
ndkDirectory
.
toString
().
isEmpty
()
if
(
ndkDirectory
!=
null
&&
!
ndkDirectory
.
toString
().
isEmpty
()
&&
new
File
(
sdkDirectory
.
toString
()
+
'/cmake'
).
exists
())
{
&&
new
File
(
sdkDirectory
.
toString
()
+
'/cmake'
).
exists
()
&&
project
.
file
(
'src/main/jni/libgav1'
).
exists
())
{
android
.
externalNativeBuild
.
cmake
.
path
=
'src/main/jni/CMakeLists.txt'
android
.
externalNativeBuild
.
cmake
.
path
=
'src/main/jni/CMakeLists.txt'
android
.
externalNativeBuild
.
cmake
.
version
=
'3.7.1+'
android
.
externalNativeBuild
.
cmake
.
version
=
'3.7.1+'
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment