From 3751c9a8e2ff4e1aff7997ee82ac4f06933acfea Mon Sep 17 00:00:00 2001 From: Bindea Cristian Date: Wed, 17 Apr 2024 16:07:01 +0300 Subject: [PATCH] ci: add an specific path, for arm and apple, to the xmls used by regmap Signed-off-by: Bindea Cristian --- plugins/regmap/src/utils.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/regmap/src/utils.cpp b/plugins/regmap/src/utils.cpp index 22536ae71e..51bd9b52a1 100644 --- a/plugins/regmap/src/utils.cpp +++ b/plugins/regmap/src/utils.cpp @@ -4,6 +4,7 @@ #include "logging_categories.h" #include "scopy-regmapplugin_config.h" +#include #include #include #include @@ -55,11 +56,16 @@ QDir Utils::setXmlPath() if(xmlsPath.entryList().empty()) { #ifdef Q_OS_WINDOWS xmlsPath.setPath(REGMAP_XML_PATH_LOCAL); +#elif defined __APPLE__ + xmlsPath.setPath(QCoreApplication::applicationDirPath() + "/plugins/plugins/xmls";); +#elif defined(__arm__) + xmlsPath.setPath(QCoreApplication::applicationDirPath() + "/../share/plugins/xmls"); #else xmlsPath.setPath(REGMAP_XML_SYSTEM_PATH); #endif } + qDebug(CAT_REGMAP) << "XML folder found: " << xmlsPath; if(!xmlsPath.entryList().empty()) { return xmlsPath; }