From 04971a42105e57948fdf90cea8551205081aeb6b Mon Sep 17 00:00:00 2001 From: Silas Della Contrada Date: Sun, 28 Jul 2024 03:49:38 +0200 Subject: [PATCH] build: exclude subproject if native disabled --- settings.gradle.kts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/settings.gradle.kts b/settings.gradle.kts index fa4934f..c1803cb 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,2 +1,8 @@ rootProject.name = "ffmpeg-static" -include(":ffmpeg") + +val deployNative = if (extra.has("deploy.native")) { + extra.get("deploy.native")?.toString()?.toBoolean() ?: true +} else true +if (deployNative) { + include(":ffmpeg") +}