Skip to content

Commit

Permalink
ci/kuiper: arm specific fixes regarding plugins path, translations pa…
Browse files Browse the repository at this point in the history
…th, decoders path and required Python components

Signed-off-by: Bindea Cristian <[email protected]>
  • Loading branch information
bindea-cristian committed Apr 10, 2024
1 parent bed58e2 commit cfed54f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions common/src/scopyconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ QString scopy::config::localPluginFolderPath()

#if defined __APPLE__
return QCoreApplication::applicationDirPath() + "/plugins/plugins";
#elif defined(__ARM_ARCH_6__)
return QCoreApplication::applicationDirPath() + "/../share/plugins";
#endif

return SCOPY_PLUGIN_BUILD_PATH;
Expand All @@ -36,6 +38,8 @@ QString scopy::config::localTranslationFolderPath()
{
#if defined __APPLE__
return QCoreApplication::applicationDirPath() + "/translations";
#elif defined(__ARM_ARCH_6__)
return QCoreApplication::applicationDirPath() + "/../share/plugins";
#endif

return SCOPY_TRANSLATION_BUILD_PATH;
Expand Down
6 changes: 5 additions & 1 deletion core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ endif()
option(WITH_PYTHON "Enable Python" ON)
if(${WITH_PYTHON})
set(Python_ADDITIONAL_VERSIONS 3)
find_package(Python3 REQUIRED COMPONENTS Interpreter Development)
if(CMAKE_SYSTEM_PROCESSOR MATCHES arm)
find_package(Python3 REQUIRED COMPONENTS Interpreter)
else()
find_package(Python3 REQUIRED COMPONENTS Interpreter Development)
endif()
set(PYTHON_VERSION python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR})
set(PYTHON_VERSION ${PYTHON_VERSION} PARENT_SCOPE)
if(NOT Python3_FOUND)
Expand Down
2 changes: 2 additions & 0 deletions core/src/scopymainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,8 @@ void ScopyMainWindow::loadDecoders()
#if defined(WITH_SIGROK) && defined(WITH_PYTHON)
#if defined __APPLE__
QString path = QCoreApplication::applicationDirPath() + "/decoders";
#elif defined(__ARM_ARCH_6__)
QString path = QCoreApplication::applicationDirPath() + "/../share/plugins";
#else
QString path = "decoders";
#endif
Expand Down

0 comments on commit cfed54f

Please sign in to comment.