Skip to content

Commit

Permalink
Skip QmlImport scanner if the ABI is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
strseb committed Aug 31, 2022
1 parent e55107d commit 27e803b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions android/buildSrc/src/main/kotlin/QtConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@ open class QTConfigurationExtension
// Runs QMLImportscanner from qt_host against the
// qt_android_<abi> folder, to find out what we need to bundle for qml
private fun getQMLImports(abi: String): JSONArray {
val path = getPath(abi)
val abiFolder = File(path)
if (!abiFolder.exists()) {
return JSONArray()
}
val importScanner = File("$host/libexec/qmlimportscanner")
if (!importScanner.exists()) {
error("Did not found qmlimportscanner in $host/libexec/qmlimportscanner")
Expand Down

0 comments on commit 27e803b

Please sign in to comment.