From 2a325b4bc8ef19ee05354b99bcbe9e1cc75297fe Mon Sep 17 00:00:00 2001 From: Iaroslav Postovalov Date: Thu, 18 Feb 2021 19:37:12 +0700 Subject: [PATCH] Add stub of lib downloading --- kmath-gsl/build.gradle.kts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/kmath-gsl/build.gradle.kts b/kmath-gsl/build.gradle.kts index d49b4b941..4c8b696ea 100644 --- a/kmath-gsl/build.gradle.kts +++ b/kmath-gsl/build.gradle.kts @@ -6,14 +6,21 @@ import ru.mipt.npm.gradle.Maturity plugins { id("ru.mipt.npm.mpp") + id("de.undercouch.download") } kotlin { explicitApiWarning() + data class DownloadLinks(val gsl: String) + + lateinit var downloadLinks: DownloadLinks val nativeTarget = when (System.getProperty("os.name")) { // "Mac OS X" -> macosX64() - "Linux" -> linuxX64() + "Linux" -> { + downloadLinks = DownloadLinks(gsl = "") + linuxX64() + } else -> { logger.warn("Current OS cannot build any of kmath-gsl targets.")