From 0444ceb8a1e538d129a6309b85fef217d00a1fbe Mon Sep 17 00:00:00 2001 From: Silas Della Contrada Date: Sat, 27 Jul 2024 20:56:21 +0200 Subject: [PATCH] build: fix configuration cache --- native/build.gradle.kts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/native/build.gradle.kts b/native/build.gradle.kts index 4902a2c..3ca5798 100644 --- a/native/build.gradle.kts +++ b/native/build.gradle.kts @@ -82,6 +82,9 @@ val compileNative = tasks.register("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) {