зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1728666 - Allow building artifact builds without the NDK. r=nalexander
Looks like the new gradle version throws an exception now. Differential Revision: https://phabricator.services.mozilla.com/D124258
This commit is contained in:
Родитель
8bf1867b97
Коммит
44c6b0ba31
|
@ -22,9 +22,13 @@ def getNDKDirectory() {
|
|||
if (project.mozconfig.substs.ANDROID_NDK) {
|
||||
return project.mozconfig.substs.ANDROID_NDK
|
||||
}
|
||||
try {
|
||||
if (project.android.ndkDirectory) {
|
||||
return project.android.ndkDirectory
|
||||
}
|
||||
} catch (InvalidUserDataException ex) {
|
||||
// The NDK is not installed, that's ok.
|
||||
}
|
||||
def mozbuild = System.getenv('MOZBUILD_STATE_PATH') ?: "${System.getProperty('user.home')}/.mozbuild"
|
||||
def files = new FileNameFinder().getFileNames(mozbuild, "android-ndk-*/source.properties")
|
||||
if (files) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче