From 2bc0cdecb62726f3d594aababfd0d9d1ac290e80 Mon Sep 17 00:00:00 2001 From: Dragan Djuric Date: Tue, 21 Jan 2025 15:22:55 +0100 Subject: [PATCH] openblass_full inherits openblas ... and just redefines map(). --- .../openblas/presets/openblas_full.java | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/openblas/src/main/java/org/bytedeco/openblas/presets/openblas_full.java b/openblas/src/main/java/org/bytedeco/openblas/presets/openblas_full.java index feb2a18490..e854322092 100644 --- a/openblas/src/main/java/org/bytedeco/openblas/presets/openblas_full.java +++ b/openblas/src/main/java/org/bytedeco/openblas/presets/openblas_full.java @@ -41,29 +41,7 @@ @Platform( include = {"openblas_config.h", "cblas.h", "lapacke_config.h", "lapacke_mangling.h", "lapack.h", "lapacke.h", "lapacke_utils.h"})}) @NoException -public class openblas_full extends openblas_nolapack { - - @Override public void init(ClassProperties properties) { - super.init(properties); - - List links = properties.get("platform.link"); - List preloads = properties.get("platform.preload"); - - // Replace all occurences of "openblas_nolapack" with "openblas_full" (with LAPACK) - for (List l : new List[] {links, preloads}) { - ListIterator it = l.listIterator(); - while (it.hasNext()) { - String s = it.next(); - if (s.contains("openblas_nolapack")) { - it.remove(); - s = s.replace("openblas_nolapack", "openblas_full"); - if (!l.contains(s)) { - it.add(s); - } - } - } - } - } +public class openblas_full extends openblas { @Override public void map(InfoMap infoMap) { infoMap.put(new Info("lapack.h", "lapacke.h").linePatterns(".*LAPACK_GLOBAL.*").skip())