Skip to content

Commit

Permalink
build: fix configuration cache
Browse files Browse the repository at this point in the history
  • Loading branch information
silenium-dev committed Jul 27, 2024
1 parent 288f267 commit 0444ceb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions native/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ val compileNative = tasks.register<Exec>("compileNative") {
tasks.processResources {
dependsOn(compileNative)
// Required for configuration cache
val platformString = findProperty("ffmpeg.platform")?.toString()
val withGPL: Boolean = findProperty("ffmpeg.gpl").toString().toBoolean()
val platformExtension = "-gpl".takeIf { withGPL }.orEmpty()
val platform = platformString?.let { Platform(it, platformExtension) } ?: NativePlatform.platform(platformExtension)

from(compileNative.get().outputs.files) {
Expand Down

0 comments on commit 0444ceb

Please sign in to comment.