Skip to content

Commit

Permalink
[SkipCI][2/2][Issue #9] Don't put empty Libs or Requires entries in p…
Browse files Browse the repository at this point in the history
…kg-config.pc
  • Loading branch information
ViliusSutkus89 committed Nov 1, 2023
1 parent 590c584 commit c44a913
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions buildSrc/src/main/kotlin/com/android/ndkports/PortTask.kt
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,14 @@ abstract class PortTask(objects: ObjectFactory) : DefaultTask() {
}
}
(libs + libsPrivate).joinToString(" ").trim().let { libsWithPrivates ->
sb.appendLine("Libs: $libsWithPrivates")
if (libsWithPrivates.isNotEmpty()) {
sb.appendLine("Libs: $libsWithPrivates")
}
}
(requires + requiresPrivate).joinToString(" ").trim().let { requiresWithPrivates ->
sb.appendLine("Requires: $requiresWithPrivates")
if (requiresWithPrivates.isNotEmpty()) {
sb.appendLine("Requires: $requiresWithPrivates")
}
}
dst.writeText(sb.toString())
}
Expand Down

0 comments on commit c44a913

Please sign in to comment.