Skip to content

Commit

Permalink
ci: add an specific path, for arm and apple, to the xmls used by regmap
Browse files Browse the repository at this point in the history
Signed-off-by: Bindea Cristian <[email protected]>
  • Loading branch information
bindea-cristian committed Apr 18, 2024
1 parent eb175fd commit 3751c9a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/regmap/src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "logging_categories.h"
#include "scopy-regmapplugin_config.h"

#include <QApplication>
#include <QDir>
#include <QLayout>
#include <QPushButton>
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 3751c9a

Please sign in to comment.